airisorg/tofu-chat
airisorg/tofu-chat has 94 GitHub stars and 1 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-15 16:31 UTC. Last push 2026-10-26.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
An open-source team messenger for groups of up to 30, with spaces, threads, files and voice notes. Built with Next.js and PostgreSQL, deployed on Tofu.
Web & AppsREADME.md
OriginalTofu Chat
A lightweight team messenger for groups of up to 30 people, with direct messages, spaces, threads and file sharing.
Deployed on Tofu
Try the live app — sign in with Google and start a conversation.
Tofu Chat runs on Tofu, which brings hosting, a managed database and Google sign-in together for apps built with a coding agent. Have an app ready to share? Take it online with Tofu.
Sample conversations from the local demo.
See it in action
Try a message and a reaction in the landing page's interactive preview, or open the app on your phone.
These captures use synthetic local data. The interactive preview does not send messages to other accounts.
Start a conversation
Choose New chat, add a friend's Google email, and share the conversation's invitation link. They join by signing in with that verified email. Use spaces for a team or topic, and threads to keep replies together.
You can send images, files and voice messages; edit or delete your messages; add reactions; and find conversations through search, mentions and stars. Drafts stay on your device when enabled. Files can be up to 5 MiB each, with three attachments per message; voice recordings can be up to two minutes.
On iPhone, open the app in Safari, tap Share → Add to Home Screen, and enable Open as Web App if offered. You can also use the app in an ordinary browser.
Tofu Chat is an independent messenger. Google sign-in does not connect it to Google Chat or import existing conversations. Video and voice calls, background push notifications and automatic offline sending are not included.
Deploy your own with Tofu
Fork the repository, follow Tofu's agent setup, and ask your coding agent:
Deploy this app on Tofu with a database and Google sign-in.
Tofu connects the hosting and services; your agent builds and checks the app. The app has no service address built in: Tofu provides the database and its certificate (DATABASE_URL, SUPABASE_CA_CERT), the identity service (SUPABASE_URL, SUPABASE_ANON_KEY) and where Google sign-in starts (TOFU_SIGN_IN_URL), so the same code runs on whichever backend Tofu connects. This is a server app with a database, so it needs Tofu's Pro hosting. See current plans before deploying.
Run locally
Use Node.js 22.13 or newer:
npm ci
npm run dev
Open http://localhost:3000 and choose Explore demo to try synthetic conversations without an account. The demo is enabled by default in development; its data stays in that browser. Production disables it unless explicitly enabled for testing.
A connected workspace needs PostgreSQL and Supabase identity settings. Tofu supplies these for the hosted app; .env.example lists the settings for your own deployment. Self-hosted Google sign-in also needs an authorized Tofu OAuth broker setup; setting TOFU_SIGN_IN_URL alone does not configure it, and without it the Google button stays off. Keep populated environment files and credentials out of Git. See runtime and data handling for authorization, limits and retry behavior.
Development
Built with Next.js, React and TypeScript, with PostgreSQL for conversations and Supabase for identity.
npm run format:check
npm run lint
npm run typecheck
npm run test:unit
npm run build
The test suite includes unit tests, embedded SQL checks, native PostgreSQL and API integration, browser flows, failure injection and screenshot regressions. See the testing guide for coverage, CI, browser setup and source-bound integration checks. Screenshots detect changes in this app; they do not establish that it matches another product pixel for pixel.
- Contributing
- Database performance and benchmarks
- Feature scope and gaps
- Security and private vulnerability reports
License
The project is available under the MIT license. Bundled fonts, icons and emoji data retain their own licenses, listed in third-party notices.
Tofu Chat is not affiliated with or endorsed by Google. Google names and the Google sign-in mark identify their respective services; the app icon and project identity are separate.