Open-source chat infrastructure for developers
Install a package, wire up your database and auth, and get a production-ready chat backend - 1:1 and group conversations, messages, permissions, read-state, and real-time delivery - without rebuilding it from scratch.
npm install @chatpack/core @chatpack/adapter-memoryBring your own auth
One auth hook - your session in, a user id out. Chatpack never owns a users table.
One handler, every route
A single Web-standard handler serves conversations, messages, read-state, and the live stream.
DMs and group chats
The same conversation shape either way - groups add members, admin roles, and rename, up to 256 people.
Real-time built in
One EventSource. Automatic reconnection and missed-message backfill - no WebSocket server.
Adapter-driven storage
In-memory for demos, Drizzle/Postgres for production, or implement the adapter for any database.
Typing, presence, read ticks
The "feels alive" features ship as opt-in plugins inside core - no extra install.
AI-ready by design
An AI assistant is just another participant. llms.txt ships in every npm package.