Managing communication across a business often means juggling fragmented SaaS tools: one app for internal team channels, an expensive third-party platform for website live chat, and extra tools for confidential notes.
That’s why I built Knock Twice—an open-source, self-hosted messaging platform designed to bring team collaboration, customer support, and personal messaging together under one roof.
Built with ASP.NET Core (.NET 10) on the back end and React on the front end, Knock Twice gives you total ownership of your data without sacrificing modern messaging features.
🌟 What Knock Twice Does
Instead of running separate services, a single Knock Twice instance powers three distinct communication modes:
- Team & Business Chat: Workspaces, public/private channels, teams, and guest access limited to single channels. Includes direct/group messages, message threads, @mentions, rich text, reactions, pinned/saved messages, scheduled delivery, and real-time updates via SignalR.
- Embeddable Website Chat: Add live chat to any website with a single
<script>tag or an NPM React component. Visitors can chat anonymously or authenticate via server-signed JWTs, while your support team handles conversations directly from a unified inbox. - Memory-Only Private Chats: One-to-one chats that exist exclusively in server RAM during the initiator's session and are never saved to the database.
🛠️ Architecture & Tech Stack
The solution follows Clean Architecture principles to keep domain logic decoupled from infrastructure details:
- Backend: ASP.NET Core (.NET 10), SignalR WebSockets, EF Core.
- Frontend: React, TypeScript, Tailwind CSS.
- Databases: Dual-database support for SQLite (single-file local setup) and PostgreSQL (production deployment).
- Storage & Security: Local disk or S3-compatible storage with optional ClamAV virus scanning. Includes rate limiting, CSRF protection, Cloudflare Turnstile support, and Google/Microsoft SSO.
- Scalability: Runs as a single container or scales horizontally across multiple API instances using Redis.


