JS client
Install @sveda-ai/core. Sessions, stream, and frontend tools — any host that can run JS.
package.json
"@sveda-ai/core": "^0.1"
SvedaClient →
One JS client. One Rust runtime. Stream, tools and MCP — without standing up your own orchestration.
$ npm install @sveda-ai/core Client. Runtime. Stream. MCP.
Replace orchestration glue with a JS client, a Rust runtime, and a stream protocol.
Install @sveda-ai/core. Sessions, stream, and frontend tools — any host that can run JS.
package.json
"@sveda-ai/core": "^0.1"
SvedaClient →
sveda-server beside the host — agent loop, catalog, MCP. Not in your request cycle.
POST /sveda/embed/token
POST /sveda/stream
GET /sveda/health
Tokens, tools, MCP events. One pipe from turn to the client.
Ordered model list. One key path if a provider drops.
Fallback not required. Stream held.
You want a copilot in the product. Instead you are managing pipes.
Control plane, workers, prompt router. Weeks before a client ships.
Harnesses and replay live in a different repo from the product.
Each server is a custom client, a session, and a pile of headers.
Swap a provider and you rewrite the stream, the tools, and the UI.
JS client, Rust runtime, stream, MCP — one attach path.
Each visitor gets a scoped token. Auth stays on your host.
Kirill A.
visitor_id
PREFERENCES
sveda-server checks models, tools, and host MCP before the first token.
SCAN: deepseek-v4-flash
Responses
live
Anthropic
standby
Pro
catalog
The host sends a turn. Sveda fans it into tools, MCP, and the model.
session.send
"Ship a copilot into the product."
stream
text.delta → tool.call → message.end
If the primary model drops, the ordered list continues the stream.
Primary: DeepSeek V4 Flash (Responses)
timeout — fallback Flash Anthropic
Stream resumed 200
CATALOG
TOOLS
Connectors and tools. Not feature bullets.
Query the workspace index.
Open a file the runtime already indexed.
Parallel work in one stream.
Discover deferred MCP tools.
Register handlers on SvedaClient.
HTTP MCP from the embed token.
MCP
SPEED
Custom agent
6-8 weeks
Sveda
1 evening
Sveda is an embeddable agent: a universal JavaScript client (@sveda-ai/core), an independent Rust runtime (sveda-server), a stream protocol, and MCP — without standing up your own orchestration.
No. sveda-server sits beside the host. Your routes, auth, and deploy stay yours. The JS client talks to the runtime over HTTP and the stream protocol.
DeepSeek V4 Flash and Pro are first-class. The catalog also takes custom Responses or Anthropic endpoints, plus an ordered failover list.
No. The agent loop, tools, and host MCP run inside sveda-server. Register frontend tools on SvedaClient instead of wiring a new control plane.
Mint a sveda_embed_ token on the server, then open JS chat or an iframe. Numbered guides cover PHP, Laravel, Python (Flask, Django, FastAPI), Node (Express, Nest, Next), Ruby, Go, Java, and .NET. Without a framework, use static HTML plus a tiny POST /sveda/session — or curl locally.
No. Framework packages are wrappers. A static page, an iframe, or a few lines of HTTP still mint the same origin, token, expires_in JSON.