Client guides
These guides cover the browser-neutral @pbvex/client client. For framework bindings, see the React guides and Svelte guides.
Topics
- Installation — packages and environment requirements.
- Configuration — base URL, fetch injection, timeouts, auth, and limits.
- Queries, mutations, and actions — typed and string-based calls, optional args, call options, cancellation.
- Realtime subscriptions —
watchlifecycle, connection state, retry behavior, cleanup, max event handling. - Errors and troubleshooting —
PBVexError, error codes, timeout, cancellation, and diagnostics.
Core concepts
- Generated API references live in
pbvex/_generated/api.tsand are imported asFunctionReferenceobjects. Clientis the single entry point for HTTP calls and SSE realtime subscriptions.PBVexClientis a compatibility subclass ofClient.- All calls are
Promise-based and useAbortSignalfor cancellation.
Cross-links
- Server-side authoring is documented in the core guides: Authoring functions, Schema and data model, Authentication, Storage.
- Protocol details are in the Protocol v1 ADR.
- Running the backend is covered in the self-hosting guide.