@agentic-fullstack/server
v0.1.0-beta
Published
SSE streaming server for agentic-fullstack — multiplexes agent state and execution chunks over a single connection.
Maintainers
Readme
@agentic-fullstack/server
SSE streaming server for agentic-fullstack. Takes a database adapter and returns a ReadableStream that multiplexes agent state updates and real-time execution chunks over a single Server-Sent Events connection.
This package owns the live feed only — CRUD operations on agents and entities are the application's responsibility.
Installation
npm install @agentic-fullstack/serverUsage
import { createServer } from "@agentic-fullstack/server";
const server = createServer({ adapter, bridge }); // bridge is optional
// Inside a route handler (e.g. Next.js):
return new Response(server.stream(agentId), {
headers: { "Content-Type": "text/event-stream", "Cache-Control": "no-cache" },
});The stream emits four named SSE events: agent-init, agent-update, chunk, and error. See src/index.ts for the full interface and event payload types.
Related Packages
@agentic-fullstack/core— shared types@agentic-fullstack/postgres—DBAdapterimplementation@agentic-fullstack/engine— the worker that produces the chunks this server streams
License
MIT
