chat.js

chat.js

Production-ready AI chat. Start here and make it your own. Formerly Sparka AI

Stars: 1114

Visit
 screenshot

ChatJS is a production-ready AI chat infrastructure that provides authentication, 120+ models, streaming, and tools for app development. It allows users to focus on unique app features by offering features like branching, sharing, web search integration, image generation, code execution, and more. The stack includes Next.js, TypeScript, AI SDK, Better Auth, and various other technologies for a comprehensive development experience.

README:

ChatJS

ChatJS

Stop rebuilding the same AI chat infrastructure. ChatJS gives you a production-ready foundation with authentication, 120+ models, streaming, and tools so you can focus on what makes your app unique.

Documentation · Live Demo

DemosOnly


CLI

Create a new ChatJS app:

npx @chat-js/cli@latest create my-app

The CLI walks you through gateway, features, and auth choices, generates chat.config.ts, and lists the env vars required by your selections.

Features

  • 120+ Models: Claude, GPT, Gemini, Grok via one API
  • Auth: GitHub, Google, anonymous. Ready to go.
  • Attachments: Images, PDFs, docs. Drag and drop.
  • Resumable Streams: Continue generation after page refresh
  • Branching: Fork conversations, explore alternatives
  • Sharing: Share conversations with public links
  • Web Search: Real-time web search integration
  • Image Generation: AI-powered image creation
  • Code Execution: Run code snippets in sandbox
  • MCP: Model Context Protocol support

Stack

Monorepo Layout

  • apps/chat: Next.js chat app
  • apps/docs: Mintlify docs
  • packages/cli: interactive scaffold CLI

Development

  • bun dev:chat: run chat app
  • bun dev:docs: run docs
  • bun lint: run workspace lint
  • bun test:types: run chat app typecheck

Documentation

Visit chatjs.dev/docs to view docs.

License

Apache-2.0


Vercel OSS Program

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for chat.js

Similar Open Source Tools

For similar tasks

For similar jobs