whatisgithub

What is open-chat?

prisma/open-chat — explained in plain English

Analysis updated 2026-05-18

20TypeScriptAudience · developerComplexity · 3/5Setup · moderate

In one sentence

A multi-model AI chat app that never loses your reply mid-stream, even if you close the tab or lose your connection.

Mindmap

mindmap
  root((open-chat))
    What it does
      Multi-model AI chat
      Durable resumable streams
    Tech stack
      TypeScript
      Bun
      React
    Use cases
      Chat via OpenRouter
      Resume dropped replies
      Voice and image input
    Audience
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Chat with any AI model available through OpenRouter in one interface.

USE CASE 2

Resume an AI reply exactly where it left off after a dropped connection.

USE CASE 3

Study a reference implementation of durable, resumable AI streaming.

USE CASE 4

Attach images or audio and get spoken replies in a chat conversation.

What is it built with?

TypeScriptBunReactOpenRouter

How does it compare?

prisma/open-chatadrianhajdin/job_pilotcneuralnetwork/pracdago
Stars202020
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatehardmoderate
Complexity3/54/52/5
Audiencedeveloperdevelopervibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Runs as a single Bun process with no separate build step, but production deploy targets Prisma Compute.

So what is it?

Open Chat is a multi-model AI chat application built by Prisma, a company known for its database tools. The app is publicly available at oss.chat and requires no sign-up to try. It works with any AI model available through a service called OpenRouter, which means you can switch between different AI models (text, vision, and image generation) within the same conversation. The most distinctive feature is what the README calls durable, resumable streams. When an AI model is generating a reply, every token it produces is saved to a durable log before it appears in your browser. If you close the tab or lose your internet connection while a reply is loading, reopening the chat picks up exactly where the answer left off. Nothing is lost to a dropped connection. This is the main behavior the codebase is designed to demonstrate. The application includes a credit system: new users get $2.00 of free credit on signup, and can add more via Stripe in amounts from $5 to $100 with a 10% fee. You can also attach images or audio to messages, dictate voice notes, and receive spoken replies. A public statistics page shows anonymous usage totals. The code is written in TypeScript using Bun (a JavaScript runtime) and React, and the whole application runs as a single process with no separate build step required during development. Prisma built this app specifically to show how their Prisma Streams, Prisma Postgres, and Prisma Next products work together in a real project. Deployment instructions target Prisma's own hosting platform, Prisma Compute. The repository is about 5,500 lines total. The README walks through the core files in reading order for developers who want to understand how durable streaming works. The README does not mention a license.

Copy-paste prompts

Prompt 1
Explain how Open Chat's durable, resumable streams work and help me add similar logic to my app.
Prompt 2
Walk me through Open Chat's codebase in the order the README recommends for developers.
Prompt 3
Show me how Open Chat integrates Prisma Streams and Prisma Postgres together.

Frequently asked questions

What is open-chat?

A multi-model AI chat app that never loses your reply mid-stream, even if you close the tab or lose your connection.

What language is open-chat written in?

Mainly TypeScript. The stack also includes TypeScript, Bun, React.

How hard is open-chat to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is open-chat for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.