ancsemi / Haven
Self-hosted private chat β No cloud, no telemetry, no Big Tech. Discord alternative that runs on your own machine.
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing ancsemi/Haven in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler view⬑ HAVEN β Private Chat That Lives On Your Machine > **Your server. Your rules. No cloud. No accounts with Big Tech. No one reading your messages.** Haven is a self-hosted Discord alternative. Run it on your machine. Invite friends with a code. No cloud. No email signup. No tracking. Free forever. --- π₯οΈ NEW β Haven Desktop (Beta) > **Want a native desktop experience?** Haven Desktop is a standalone app that connects to any Haven server β with features that go beyond the browser. **Haven Desktop** is now available as a public beta. Download the installer and connect to your server in seconds. β’ **Per-Application Audio** β share audio from a single app during screen share, just like Discord. Powered by native WASAPI (Windows) and PulseAudio (Linux) hooks. β’ **Audio Device Switching** β change your mic and speaker mid-call without leaving voice chat β’ **Native Desktop Notifications** β OS-level notifications via the system tray β’ **Minimize to Tray** β keeps running quietly in the background β’ **One-Click Install** β NSIS installer (Windows), AppImage / .deb (Linux). Download, run, done. > **β οΈ This is a beta release.** Bugs are expected. Your feedback is what makes it better β please open an issue if something breaks or feels off. > > **You still need a Haven server.** The desktop app is a client β it connects to a Haven server. Download and run Haven first if you haven't already. π₯ **Download Haven Desktop β** --- π± NEW β Haven Android (Closed Beta) > **Want Haven on your phone?** Haven Android is a native Android app built from the ground up, now in closed beta on Google Play. **Haven Android** features full chat and voice support, push notifications, and a true mobile-native experience. β’ **Native Android** β built from scratch specifically for Haven, not a web wrapper β’ **Push Notifications** β real-time notifications via Google Play services β’ **Full Chat & Voice** β all the features you love, in your pocket > **π Want to join the beta?** Visit **amni-scient.com/amni-haven.html** to request access to the closed beta. > > **You still need a Haven server.** The Android app is a client β it connects to a Haven server. Download and run Haven first if you haven't already. *Built with β€οΈ by **Amnibro** β huge thanks for his incredible work building the Haven Android app from the ground up.* π² **Request Android Beta Access β** --- NEW in v2.0.0 β Import Your Discord History > **Leaving Discord?** Haven can import your entire server's message history β directly from the app. No external tools, no command-line exports, no hassle. Open **Settings β Import** and connect with your Discord token. Haven pulls every channel, thread, forum post, announcement, reaction, pin, attachment, and avatar β then lets you map them to Haven channels. Your community's history comes with you. β’ **Direct Connect** β paste your Discord token, pick a server, select channels & threads, import β’ **File Upload** β or upload a DiscordChatExporter JSON/ZIP if you prefer β’ **Full fidelity** β messages, replies, embeds, attachments, reactions, pins, forum tags, all preserved β’ **Discord avatars** β imported messages show the original author's Discord profile picture β’ **All channel types** β text, announcement, forum, media, plus active & archived threads Your entire Discord history, now on a server you own. No one can delete it, no one can read it, no one can take it away. --- Quick Start β Docker (Recommended) **Option A β Pre-built image** (fastest): **Option B β Build from source**: Open β Register with username β Create a channel β Share the code with friends. Done. > Certificate warning is normal β click **Advanced β Proceed**. Haven uses a self-signed cert for encryption. **Option C β One-click cloud deploy** (Zeabur): --- Quick Start β Windows (No Docker) β’ Download and unzip this repository β’ Double-click ** ** β’ If Node.js isn't installed, the script will offer to install it for you automatically That's it. The batch file handles everything β Node.js installation, dependencies, SSL certificates, config β and opens your browser. Register as to get started. > **Don't have Node.js?** No problem. The launcher detects this and can install it for you with one keypress. Or install it yourself from nodejs.org and restart your PC. Quick Start β Linux / macOS (No Docker) Or manually: --- Who Is This For? β’ **Small friend groups** who want a private place to talk β’ **Self-hosters** who run services on their own hardware β’ **Privacy-conscious communities** done with Big Tech β’ **LAN gaming crews** who need voice + screen share without Discord β’ **Homelab enthusiasts** looking for a lightweight chat service --- Why Not Discord? | | Discord | Haven | |---|---------|-------| | **Hosting** | Their cloud | Your machine | | **Account** | Email + phone required | No email, no verification | | **Your data** | Stored by Discord Inc. | Never leaves your server | | **Cost** | Nitro upsells, boosts | Free forever | | **Telemetry** | Analytics, tracking | Zero telemetry | | **Source code** | Closed | Open (MIT-NC) | --- Features | Category | What You Get | |----------|-------------| | **Chat** | Real-time messaging, image uploads (paste/drag/drop) with click-to-enlarge lightbox, typing indicators, message editing, replies, emoji reactions, @mentions with autocomplete, autocomplete, message pinning (admin) | | **Voice** | Peer-to-peer audio chat, per-user volume sliders, mute/deafen, join/leave audio cues, talking indicators, click usernames for profile/DM | | **Screen Share** | Multi-stream screen sharing with tiled grid layout, per-user video tiles, one-click close | | **Channels** | Hierarchical channels with sub-channels, private (invite-only) sub-channels with π indicator, channel topics | | **Join Codes** | Per-channel invite codes with admin controls: public/private visibility, static/dynamic mode, time-based or join-based auto-rotation, manual rotation | | **Avatars** | Upload profileβ¦