Framework-agnostic communication orchestration for Node.js request, SSE, RPC, and socket flows, designed with VextJS-first integration in mind.
- Use the published package: follow the Current Release Quick Start for APIs available in
commflow@0.0.2. - Explore planned APIs: open the Product Guide (Planned APIs) or 产品功能手册(规划 API) for request, SSE, RPC, socket, configuration, reliability, and VextJS adoption.
The current npm release exposes the manifest API. The user guide documents the complete commflow contract separately so current availability and the full product model are never mixed.
npm install commflowThe code below verifies the current published package only. It is not the final request / SSE / RPC / socket usage path.
Create quick-start.mjs:
import {
COMMFLOW_CHANNELS,
createCommflowManifest
} from 'commflow';
const manifest = createCommflowManifest();
console.log(JSON.stringify({
channels: COMMFLOW_CHANNELS,
primaryIntegration: manifest.primaryIntegration,
plannedReplacement: manifest.plannedReplacement,
descriptors: manifest.descriptors.map((item) => ({
name: item.name,
streaming: item.streaming,
bidirectional: item.bidirectional
}))
}, null, 2));Run it:
node quick-start.mjsExpected output:
{
"channels": [
"request",
"sse",
"rpc",
"socket"
],
"primaryIntegration": "vextjs",
"plannedReplacement": "vext/app.fetch",
"descriptors": [
{
"name": "request",
"streaming": false,
"bidirectional": false
},
{
"name": "sse",
"streaming": true,
"bidirectional": false
},
{
"name": "rpc",
"streaming": true,
"bidirectional": true
},
{
"name": "socket",
"streaming": true,
"bidirectional": true
}
]
}If you see this output, the package is installed correctly and the released manifest API is working.
- Documentation site: devcodex-labs.github.io/commflow
- Product guide (planned APIs): English / 中文
- Feature overview: English / 中文
- Request: English / 中文
- SSE: English / 中文
- RPC: English / 中文
- Socket: English / 中文
- Configuration: English / 中文
- Errors and retries: English / 中文
- Documentation map: English / 中文
- Changelog: CHANGELOG.md
- Manifest API reference: English / 中文
- Troubleshooting: English / 中文
The guide is split by user task rather than project internals. Current release details live under Current Release 0.0.2; planned product APIs and unsettled sketches are labeled separately.
commflow@0.0.2 is a published skeleton package. It currently exposes a manifest API that describes the planned communication surface. Runtime clients for request, SSE, RPC, and socket flows are not released yet.
- Package runtime: Node.js
>=20.0.0 - Documentation site build runtime: Node.js
>=20.19.0 || >=22.12.0 - Current released API:
COMMFLOW_CHANNELS,createCommflowManifest(), and related manifest types - Complete user contract: request, SSE, RPC, socket, shared configuration, reliability, and VextJS adoption
- Design preview: unsettled request API sketches that are not production imports
- There is no request client export in
commflow@0.0.2; this is expected. - No runtime configuration is required yet because runtime clients have not shipped.
- If ESM import fails, use a
.mjsfile or set"type": "module"in your application package. - Package users only need Node.js
>=20.0.0.