Skip to content

PinedaTec-EU/SphereIntegrationHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

709 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sphere Integration Hub

Ask DeepWiki License MIT npm npm downloads MCP NuGet Version NuGet Version GitHub Release GitHub commits GitHub Issues GitHub Stars Twitter Follow LinkedIn

SphereIntegrationHub icon

SphereIntegrationHub: API integration testing and reproducible API workflows for CI

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.

What problem does SIH solve?

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.

Why SIH?

  • 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.

Start here

Common use cases

  • 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

Quick install

npm / npx

npm install -g @pinedatec.eu/sphere-integration-hub
sih --version
npx @pinedatec.eu/sphere-integration-hub

dotnet tool

dotnet tool install -g SphereIntegrationHub.Tool
dotnet tool install -g SphereIntegrationHub.Mcp.Tool

NuGet packages: CLI · MCP

Release integrity

When 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.json must persist that four-part release as sihReleaseVersion

Release publication is only valid when all three checks pass:

  • the GitHub release tag v<sihReleaseVersion> exists before npm publish
  • the published npm package contains sihReleaseVersion with 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.

First run

Validate a workflow without calling endpoints:

sih \
  --workflow ./src/resources/workflows/create-account.workflow \
  --env pre \
  --dry-run \
  --verbose

Execute it with inputs:

sih \
  --workflow ./src/resources/workflows/create-account.workflow \
  --env pre \
  --input username=user \
  --input password=secret \
  --input accountName=Acme

Generate JSON + HTML execution artifacts:

sih \
  --workflow ./src/resources/workflows/create-account.workflow \
  --env pre \
  --report-format both \
  --capture-http bodies

Create 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.json

See 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.

When to use SIH instead of other tools

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.

Core concepts

  • Workflows are plain YAML and remain the single source of truth for orchestration.
  • API contracts live in versioned api.catalog definitions 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, or api.catalog baselineSnapshot.

Examples

More examples and usage patterns live in getting-started.md and the sample files under samples/.

Documentation map

Product and adoption

Authoring and execution

Integrations

Community

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.

About

API integration testing, reproducible API workflows, and OpenAPI contract validation for CI/CD

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages