SphereIntegrationHub (SIH) helps teams run workflow-based API integration tests, OpenAPI contract validation pipelines, and reproducible API workflows from Git-friendly YAML.
Use it when Postman/Newman collections, Bruno exports, custom scripts, or ad hoc CI jobs start drifting away from the API contracts they are supposed to validate.
SIH turns multi-step API scenarios into version-controlled workflows that can be dry-run validated against OpenAPI catalogs, executed locally or in CI/CD, and reviewed through JSON and HTML execution reports.
Multi-step API flows usually fail for boring reasons:
- The smoke test in CI uses one environment while the API contract changed in another.
- A Postman or Bruno collection works locally but the exported artifact is hard to review in Git.
- Custom Python, Bash, or JavaScript scripts grow into unmaintained test infrastructure.
- A workflow calls several endpoints, but nobody validates the endpoint references before runtime.
- Failures leave logs, but not a reusable execution trace that explains the full API scenario.
SIH is built for teams that need API integration testing in CI, contract-aware API smoke tests, reproducible API workflow automation, and GitOps-friendly API test assets.
- Workflow-based API testing: model real API scenarios as YAML stages, including parent-child workflows.
- OpenAPI-aware validation: dry-run workflows against versioned API catalogs before live execution.
- CI/CD native: run the same workflow from a laptop, GitHub Actions, or any pipeline that can execute a CLI.
- Git-friendly artifacts: review YAML workflow changes instead of opaque GUI exports or one-off scripts.
- Reproducible reports: generate machine-readable JSON and self-contained HTML traces for each execution.
- Regression baselines: create snapshot JSON from known-good runs and compare later executions visually or from the CLI.
- Assertion diagnostics: record stage/end-stage assertions, blocking behavior, and pass/fail state in JSON and HTML reports.
- Offline-first execution: use local workflow, catalog, and contract cache files without a hosted control plane.
The runtime stays focused on API workflow orchestration. Protocol and channel behavior is delivered through plugins such as HTTP, OpenAI LLM, and secret providers like Vaultwarden.
Documentation hubGetting startedWorkflow runtime semanticsWorkflow schemaMCP authoring quick referenceMCP ServerSDK language hostsPlugins
- API integration testing in CI/CD
- API contract validation pipelines
- Reproducible API smoke tests
- Git-friendly replacement for fragile API automation scripts
- Multi-step API workflow execution across environments
- Environment bootstrap flows and regression API scenarios
- AI-assisted API workflow authoring through the SIH MCP server
npm install -g @pinedatec.eu/sphere-integration-hub
sih --versionnpx @pinedatec.eu/sphere-integration-hubdotnet tool install -g SphereIntegrationHub.Tool
dotnet tool install -g SphereIntegrationHub.Mcp.ToolWhen publishing the npm package, the npm semver and the GitHub release tag are intentionally not identical:
- npm publishes
major.minor.patch - GitHub releases publish
major.minor.patch.build npm/sphere-integration-hub/package.jsonmust persist that four-part release assihReleaseVersion
Release publication is only valid when all three checks pass:
- the GitHub release tag
v<sihReleaseVersion>exists beforenpm publish - the published npm package contains
sihReleaseVersionwith that exact four-part value - the npm postinstall regression test passes before publication
The canonical release path is ./scripts/release.sh, which enforces these checks before publishing npm.
Validate a workflow without calling endpoints:
sih \
--workflow ./src/resources/workflows/create-account.workflow \
--env pre \
--dry-run \
--verboseExecute it with inputs:
sih \
--workflow ./src/resources/workflows/create-account.workflow \
--env pre \
--input username=user \
--input password=secret \
--input accountName=AcmeGenerate JSON + HTML execution artifacts:
sih \
--workflow ./src/resources/workflows/create-account.workflow \
--env pre \
--report-format both \
--capture-http bodiesCreate and compare a regression snapshot:
sih snapshot create ./output/create-account.01J....workflow.report.json --name happy-path
sih snapshot compare ./output/create-account.01K....workflow.report.json \
--snapshot ./snapshots/create-account.happy-path.workflow.snapshot.jsonSee getting-started.md for install modes, CLI usage, GitHub Action usage, and SDK direction.
The planned language SDK contracts are documented in .doc/sdk-language-hosts.md.
Use Postman, Apidog, or Bruno for interactive API exploration, manual debugging, and team-facing API documentation.
Use SphereIntegrationHub when the same API scenario must become a repeatable pipeline asset: stored in Git, reviewed as YAML, validated against OpenAPI, executed by a CLI, and reported consistently.
Use custom scripts when you need full programming control. Use SIH when the workflow itself should be the maintained artifact and the runtime should provide validation, context propagation, reporting, and reusable workflow composition.
- Workflows are plain YAML and remain the single source of truth for orchestration.
- API contracts live in versioned
api.catalogdefinitions with cached OpenAPI documents. - Validation can inspect workflows, references, and contract compatibility before runtime.
- Workflow stages can call endpoints, invoke child workflows, iterate collections, and expose outputs back to parent flows.
- Assertions can validate stage outputs and final workflow outputs, with blocking or non-blocking failure behavior.
- Execution reports persist machine-readable JSON plus a self-contained HTML trace viewer with baseline comparison, assertions, compact metrics, and a workflow graph.
- Snapshot baselines (
*.workflow.snapshot.json) provide stable regression references that can be loaded automatically from output folders,snapshots/, explicit paths, orapi.catalogbaselineSnapshot.
samples/sample-bootstrap.workflow: explicitHttpplugin stage with plugin-specificconfig.samples/openai-llm/sample-openai-llm.workflow: OpenAI plugin withkind: LLM, structured output, limits, timeout, and token usage.samples/workflows.config: explicit plugin activation and reporting defaults.samples/api.catalog: catalog definition with plugin binding.samples/vaultwarden-secrets: Vaultwarden secret provider feeding{{env:...}}tokens.
More examples and usage patterns live in getting-started.md and the sample files under samples/.
Getting startedWorkflow schemaVariables and contextDry-run validationWorkflow runtime semanticsExecution reportingConditional expressionsOpenAPI catalogSDK language hostsMCP authoring quick reference
MCP ServerGitHub ActionPluginsHTTP pluginOpenAI LLM pluginSecret providersVaultwarden secret providerOpenTelemetry
If you use SphereIntegrationHub in your company or project, we would like to hear about it.
- Give the repository a star on GitHub.
- Share your use case on LinkedIn with
#SphereIntegrationHub. - Contact sih@pinedatec.eu.