It's an AI chat SDK plus local demos and tooling. Flexible foundation to ship an always on custom assistant on a website.
Travrse is pre-integrated as the AI platform powering the agent, while the UI and proxy are written so that you can point them at any SSE-capable platform.
packages/widget– the installable chat widget (vanilla-agent).packages/proxy– the optional proxy server library (vanilla-agent-proxy) for handling flow configuration using Travrse.examples/embedded-app– a Vite vanilla app showcasing runtime configuration (seejson.htmlfor the directive demo).examples/vercel-edge– Node.js proxy server for Vercel, Railway, Fly.io, and traditional servers.examples/cloudflare-workers– Edge proxy server optimized for Cloudflare Workers.
corepack enable
pnpm install
pnpm devThe script starts the proxy on http://localhost:43111 (auto-selects another free port if needed) and the embedded demo at http://localhost:5173. Both projects depend on the local widget package via workspace linking so changes hot-reload without publishing.
Note: Make sure you are on Node
v20.19.0(nvm use) before runningpnpm install. Corepack is bundled with modern Node releases and manages pnpm for you.
See packages/widget/README.md for publishing details, configuration reference, and Travrse integration notes.
Install the widget library with npm install vanilla-agent. For the proxy server, use npm install vanilla-agent-proxy.
The repository includes production-ready proxy examples for different deployment platforms. Both examples use shared flow configurations and utilities from the vanilla-agent-proxy package to eliminate code duplication.
| Example | Best For | Deployment Platforms | Runtime | Docs |
|---|---|---|---|---|
| vercel-edge | Quick start, Node.js environments | Vercel, Railway, Fly.io, Traditional servers | Node.js 20+ | README |
| cloudflare-workers | Edge computing, global scale | Cloudflare Workers | Edge runtime | README |
Choosing a deployment platform:
- Use vercel-edge for: Quick deployment to Vercel, compatibility with Node.js hosting, easy local development
- Use cloudflare-workers for: Global edge deployment, low latency worldwide, serverless scaling
Both examples include:
- Secure API key handling (never exposed to browser)
- Multiple flow configurations (basic chat, directives, shopping assistant)
- Stripe checkout integration using REST API
- CORS support
This monorepo uses Changesets for version management and publishing.
Creating a release:
-
Create a changeset (after making changes):
pnpm changeset
Select which packages changed and the type of change (patch/minor/major). This creates a markdown file in
.changeset/describing the change. -
Version packages:
pnpm changeset version
This reads all changesets, updates package versions, generates changelogs, and removes used changesets.
-
Build and publish:
pnpm release
This builds both packages and publishes them to npm.
Workflow:
- Make changes → Create changeset → Commit → Version → Release
- You can accumulate multiple changesets before versioning
- Each package can be versioned independently