Files
github-actions[bot] 6ef8816a55 Version Packages (#100)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-02-26 15:07:23 -08:00
..
2026-02-26 15:07:23 -08:00
2026-02-26 15:07:23 -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