@agentic-fullstack/postgres
v0.1.0-beta
Published
PostgreSQL adapter and LangGraph checkpointer for agentic-fullstack.
Maintainers
Readme
@agentic-fullstack/postgres
PostgreSQL adapter and LangGraph checkpointer for agentic-fullstack. Implements the DBAdapter interface from @agentic-fullstack/core and provides the persistence layer used by both the engine and the server.
Installation
npm install @agentic-fullstack/postgresUsage
import {
createPostgresAdapter,
createPostgresCheckpointer,
} from "@agentic-fullstack/postgres";
const adapter = await createPostgresAdapter({ pool });
const checkpointer = await createPostgresCheckpointer({ pool });Both functions accept a pg Pool instance. createPostgresAdapter runs schema setup on first call — it is idempotent and safe to call on every startup. Table names default to agentic_events, agentic_messages, and agentic_chunks, and can be overridden via the config.
Pass both to createEngine from @agentic-fullstack/engine, and adapter alone to createServer from @agentic-fullstack/server.
See src/index.ts for the full configuration reference.
Related Packages
@agentic-fullstack/core— theDBAdapterinterface this package implements@agentic-fullstack/engine— consumes the adapter and checkpointer@agentic-fullstack/server— consumes the adapter for SSE streaming
License
MIT
