Persistent Chat by ID

Persistent Chat by ID is a lightweight, production-ready system for creating streamed AI conversations that can be saved, retrieved, and resumed using unique session IDs.

Persistent Chat by ID

Persistent Chat by ID is a lightweight, production-ready system for creating streamed AI conversations that can be saved, retrieved, and resumed using unique session IDs.

Chat Interface

Chat Interface Overview

The application combines the Vercel AI SDK with Neon Postgres to deliver durable message storage, fast streaming responses, and clean separation between API logic and UI. It serves as a reference architecture for building stateful AI-driven interfaces and can be extended into larger agent systems, RAG pipelines, and custom orchestrated flows.

Neon Database Storage View

Chat Storage Overview

Stack:

  • Next.js
  • TypeScript
  • Neon Postgres
  • Vercel AI SDK
  • Tailwind CSS
  • OpenAI (gpt-4o-mini)

Repo: https://github.com/awselliottai/persistent-chat-by-id

Last updated: 
← All projects