Release candidate — 1.0.0-rc.1
StitchAPI

Integrations

First-party companion packages that bridge a stitch to the framework, frontend, logger, and store you already run — each a thin layer over a stable seam, never a re-implementation.

A stitch is plain TypeScript with no framework and no node:*, so it already runs anywhere. The packages here are the companions: thin bridges that wire a stitch into the tool you already run — a backend framework, a frontend's reactivity, your logger, your store — so its lifecycle, principal, streaming, and telemetry line up with the host instead of being bolted on.

Each one is small on purpose. They plug into a handful of stable seams, so a new integration is ~100 lines over an existing contract, not a rewrite — and every companion is proven against the same conformance kits the core ships:

  • Backend seam — lifecycle, request-scoped principal (seam.as(user)), an SSE→response bridge, and an error→HTTP mapping, identical across frameworks.
  • Reactive store@stitchapi/query-core owns a framework-agnostic subscribe / getSnapshot store; each frontend binding is a few lines against its own primitive.
  • TraceSink — forward the typed event stream to the logger or telemetry pipeline you already run.
  • StitchStore — move throttle counters, sessions, and cache into a shared backend so they go fleet-wide with no call-site change.

Backend frameworks

Attach a seam to your server: one shared client with a request-scoped principal, an SSE helper, and an error bridge.

Frontend

Each binding is a thin layer over the shared @stitchapi/query-core store, so updates are tearing-free and streaming-first — the view re-renders as each delta chunk arrives, which plain request/response query libraries don't model. One core, one binding per framework's own reactive primitive.

Observability

For OpenTelemetry, core exports an OTLP trace bridge directly — see the OTLP guide.

State & storage

Attach a StitchStore to move a stitch's throttle counters, sessions, and cache into a shared backend — fleet-wide, with no call-site change.

Authentication

Core ships bearer / apiKey / basic / cookieSession / oauth2 built in; companions add the schemes that need more.

Agents & AI

A stitch is agent-native through the MCP surface; a companion adapts it to a specific framework's tool-calling loop.

See also

On this page