Files
Hayden Bleasel dfb2b02668 Migrate to Vercel
2026-02-20 22:07:19 -08:00
..
2026-02-20 11:21:15 -08:00
2026-02-20 22:07:19 -08:00
2026-02-20 13:25:09 -08:00
2025-12-21 20:48:14 -08:00
2026-02-20 13:25:09 -08:00

@chat-adapter/state-memory

npm version npm downloads

In-memory state adapter for Chat SDK. For development and testing only — state is lost on restart.

Installation

npm install chat @chat-adapter/state-memory

Usage

import { Chat } from "chat";
import { createMemoryState } from "@chat-adapter/state-memory";

const bot = new Chat({
  userName: "mybot",
  adapters: { /* ... */ },
  state: createMemoryState(),
});

Documentation

Full documentation at chat-sdk.dev/docs/state/memory.

For production, use Redis or ioredis.

License

MIT