# ChatJS

> Scaffold an AI chat app you own: pick the models, tools and services, then edit the code

Source: https://talira.ai/catalog/chatjs-hc8heg7f
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Template, Command-line tool
- Categories: [ai / llm / chat interfaces](https://talira.ai/categories/ai/llm/chat-interfaces), [developer tools / saas starter kits](https://talira.ai/categories/developer-tools/saas-starter-kits)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Backed by: [Francisco Moretti](https://talira.ai/orgs/francisco-moretti.md)

ChatJS gives you a working AI chat app to start from: its CLI (npx chat-js create) or a browser builder scaffolds a [Next.js](https://talira.ai/catalog/next-js-2chrxyc7.md) and TypeScript app with shadcn/ui, streaming responses, saved conversations and Better Auth, and asks which model gateway, sign-in providers and features to include. Models come through Vercel AI Gateway, OpenRouter, OpenAI, LiteLLM or any OpenAI-compatible endpoint. Its EVE runtime runs conversations and tools, persists execution state and handles approvals, and optional plugins add uploads, projects, sharing, web search, code execution, image generation and MCP connectors, installed as source files you edit and commit. You deploy it on Vercel or host it yourself with Docker or Node.js, and an Electron companion packages it as a desktop app.

## Links

- Website: https://chatjs.dev/
- GitHub: https://github.com/FranciscoMoretti/chat-js
- Docs: https://www.chatjs.dev/docs

## Problems it solves

- start an AI chat app with my own choice of models and own all the code
- add web search, code execution and MCP tools to a self-hosted AI chat app
- build a ChatGPT-like app on Next.js without writing streaming and auth from scratch

## Features

- CLI and browser builder that scaffold a Next.js AI chat app
- Streaming responses, saved conversations and Better Auth sign-in
- Vercel AI Gateway, OpenRouter, OpenAI, LiteLLM or any OpenAI-compatible endpoint
- EVE agent runtime with persisted execution state and approvals
- Plugins and tools (web search, code execution, image generation, MCP connectors) installed as editable source
- Deploys on Vercel, Docker or Node.js, with an Electron desktop companion

## Limitations

- Version 1.0 is in beta: APIs, configuration and generated code may change before the stable release[^1]
- Needs Node.js 24 or newer and a PostgreSQL database[^1]

## Trust

Overall: 0.62 out of 1.
Signals: maintenance 1.00, adoption 0.62, momentum 0.54, community 0.45, backing 0.30, extensibility 0.00.

- last commit yesterday
- 921 commits in the last 90 days
- latest release @chat-js/cli@0.8.0 2 months ago
- 1.2k GitHub stars
- 12 contributors
- backed by Francisco Moretti

## Related

- Based on [Next.js](https://talira.ai/catalog/next-js-2chrxyc7.md)

## Alternatives

- [LibreChat](https://talira.ai/catalog/librechat-k70jkdvc.md): Brings together all your AI conversations in one unified, customizable interface
- [Open WebUI](https://talira.ai/catalog/open-webui-r0dc4yjj.md): One interface for every AI model. Private, extensible, and built for teams.
- [Odysseus](https://talira.ai/catalog/odysseus-0q0t34he.md): Self-hosted AI workspace for chat, agents, research, documents, email, notes and calendar
- [Onyx](https://talira.ai/catalog/onyx-0zdj65d9.md): The context layer powered by all your apps
- [LobeHub](https://talira.ai/catalog/lobehub-vn2gq88v.md): Super-Agents on Your Team
- [NextChat](https://talira.ai/catalog/nextchat-21ks9s52.md): Lightweight open source AI chat client for Claude, GPT, Gemini and DeepSeek that you deploy in a minute

## Sources

[^1]: https://github.com/FranciscoMoretti/chat-js (checked 28 Nov 2026)
[^2]: https://github.com/FranciscoMoretti/chat-js/blob/main/LICENSE (checked 28 Nov 2026)
