@pellux/goodvibes-transport-http
v0.33.26
Published
HTTP, JSON, path, and SSE transport primitives for GoodVibes client integrations.
Maintainers
Readme
@pellux/goodvibes-transport-http
Public GoodVibes HTTP transport package for JSON requests, auth headers, retry/backoff, SSE streams, and contract route invocation.
Most applications should install @pellux/goodvibes-sdk and import @pellux/goodvibes-sdk/transport-http. Install this package directly when you only need the HTTP transport subset.
Exports include:
- contract route invocation helpers
- HTTP transport creation
- direct JSON request helpers
- header and auth token resolution helpers
- retry/backoff helpers
- SSE streaming helpers
Use this surface when you need lower-level HTTP/SSE control or when you are building a custom GoodVibes client on top of the synced contracts.
import { createJsonRequestInit, requestJsonRaw } from '@pellux/goodvibes-sdk/transport-http';
const body = await requestJsonRaw(
fetch,
'http://127.0.0.1:3421/api/control-plane/auth',
createJsonRequestInit(process.env.GOODVIBES_TOKEN ?? null),
);