Skip to content
ChatJS
Esc
navigateopen⌘Jpreview
On this page

Cookbook

Reusable patterns to copy into any project

The Cookbook contains self-contained, portable patterns you can copy into any AI chat application. Unlike the main docs which focus on ChatJS installation and configuration, these recipes work independently of ChatJS.

Recipes by Category

Streaming

Patterns for handling real-time AI response streams.

Models

Patterns for the model system.

Data

Database patterns and state management.

Auth

Authentication patterns for AI applications.

AI UX

User experience patterns for chat interfaces.

Development

Workflow patterns for local development.

Was this page helpful?