commflow Product Guide (Planned APIs)
Planned APIs: This guide describes the final user-facing
commflowcontract. request, SSE, RPC, socket, and the VextJS adapter are not published bycommflow@0.0.2and must not be used as current production imports.Runnable today: Start with Current Release Quick Start for installation checks and released exports.
What commflow Helps You Do
commflow addresses scattered server-side communication behavior. You do not need to rebuild request timeout, RPC call timeout, SSE reconnect, socket heartbeat, trace propagation, context propagation, error normalization, and resource cleanup across frameworks and modules. One communication layer manages those behaviors.
This page establishes the shared usage model. Detailed operations live in the feature chapters in the left sidebar:
Feature Overview
Install And Runtime Requirements
Requirements:
Choosing A Feature
Unified Usage Model
All communication styles share the same context, target, error, and observability model, but they do not force the same option names. request/RPC are calls; SSE/socket are connection lifecycles. SSE/socket recovery is reconnect, not request retry.
- Create a client.
- Choose a service URL, target, resolver, or socket URL.
- Provide context, headers, metadata, or auth.
- Dispatch a call or establish a connection.
- Handle responses, events, errors, and cleanup.
The feature chapters below document planned APIs. To run the current package, use the manifest example in Current Release Quick Start; use the client examples only after their runtime APIs are released.
The configuration guide marks which transports support each capability and why a field is N/A when it does not apply.
Planned Feature Chapters
Configuration And Error Handling
Configuration is a core user feature, not an internal implementation detail. Read:
- Configuration: option meaning, default layers, target/resolver overrides, hook boundaries, and VextJS adapter boundaries.
- Errors And Retries: HTTP status, timeout, network, aborted, config, hook failure, and retry/reconnect strategy.
VextJS Integration
VextJS is the first target consumer. Adoption focuses on preserving existing app.fetch timeout, retry, proxy, request context, and hook behavior. See VextJS Adoption for prerequisites and the compatibility path.
Current Release Boundary
commflow@0.0.2 is still a skeleton package:
When you need runnable code now, start with Current Release Quick Start. When you need the complete product model, continue through the feature chapters in this guide.