mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
0d9e3b88f6
The previous publish workflow released 1.55.0-next.8 to npm but the post-release commit failed to push to main (blocked by branch protection). This applies the version bumps and pre.json updates that the workflow would have committed, unblocking future releases. https://claude.ai/code/session_01N8sLK9h9p6FdRjyHqzKzVV
CopilotKit v2 Express Example (Single Route)
This example hosts a CopilotKit v2 runtime using Express and the single-route helper.
Setup
pnpm -C ../../ install
Create a local env file:
cp .env.example .env
Set OPENAI_API_KEY in .env.
Run
pnpm -C ../../ --filter node-express example-dev
The runtime will be available at:
http://localhost:4000/api/copilotkit
Build
pnpm -C ../../ --filter node-express example-build
Notes
- This example uses
createCopilotEndpointSingleRouteExpress. - TypeScript uses
moduleResolution: node16to resolve the@copilotkit/runtime/expressexport correctly.