Hoffle is a free, open-source (AGPL-3.0) Discord alternative built for friend groups. It brings LiveKit voice chat, free 1080p60 screen sharing with sound, six shared 3D hangout spaces (Living Room, Club, Tabletop, Cinema, Board Hall, Meadow), built-in D&D battlemaps and 3D physics dice, a synced music bot & Watch Together, a full Y2K / Windows Live Messenger mode, unmodified discord.js / discord.py bot compatibility, and zero-config Docker self-hosting.
Try it live at chat.hoffle.online (free, nothing to install) · Website (Türkçe) · Docs · Download apps.
- Voice & 1080p60 screen sharing with system audio, 24 fps film modes, on-device RNNoise, spatial audio & real-time singing/voice effects (free, no Nitro)
- 6 shared 3D spaces right inside any voice room: Living Room, beat-synced Club, candlelit Tabletop, 150-seat Cinema, life-size Board Hall, and campfire Meadow
- Tabletop & D&D tools: battlemaps with fog of war & tokens, 3D physics dice, and an in-call D&D 5e SRD compendium
- Synced music & Watch Together: built-in music bot plus the optional Music + Watch bot (two-deck DJ booth, lyrics, Watch Together rooms)
- Easy Discord migration & bot compatibility: import channels, roles & permissions from a Discord Server Template link, run unmodified
discord.jsanddiscord.pybots (Discord v10 Gateway + REST), and optionally mirror channels with the Discord bridge - 17+ themes & custom CSS, including the full Y2K / Windows Live Messenger alternate UI and Winamp skin
- Every client, tiny footprint: browser/PWA with zero install, full Electron desktop app, Rust/Tauri Hoffle Lite, sub-1 MB native desktop apps (WebKit / WebView2), and Capacitor mobile
- Full chat suite: text, announcement, forum & stage channels, DMs, threads, replies, reactions, polls, custom emoji/stickers, automod, and filtered search
You need Docker. Then:
git clone https://github.com/Coxaexs/huddle.git hoffle
cd hoffle
docker compose up -dThe first start takes a few minutes while it builds. Then get your setup code:
docker compose logs hoffleOpen http://localhost:8730, create your account, and enter the setup code from the log. The first account becomes the owner. Invite friends from Server Settings → Invite People.
That's it. No config files needed.
New to self-hosting? The self-hosting guide walks through every step: installing Docker, opening Hoffle to your friends over HTTPS, backups, updates and fixing common problems.
| I want to… | Read |
|---|---|
| Let friends outside my home network join | Putting Hoffle on the internet |
| Change the port, add GIF search, push notifications | Configuration reference |
| Fix voice for friends who can't hear anyone | Voice troubleshooting |
| Back up or update my server | Backups · Updating |
| Reset a password or promote an admin | Admin commands |
| Run Hoffle on Unraid, TrueNAS or Synology | Single-container install |
| Add the full music bot (dashboard, DJ booth, Watch Together) | Music bot |
| Run my Discord bot, or write a new one | Bots |
| Bridge a Discord server | Discord bridge |
| Understand the codebase or contribute | Architecture · Codebase guide · Contributing |
Run these from the hoffle folder:
| Command | What it does |
|---|---|
docker compose up -d |
Start Hoffle (or apply changed settings) |
docker compose down |
Stop Hoffle. Your data is kept. |
docker compose logs -f hoffle |
Watch the logs (Ctrl+C to exit) |
docker compose ps |
Check everything is running |
git pull && docker compose up -d --build |
Update to the latest version |
Everything Hoffle stores (messages, accounts, uploads) is in the state/ folder. Back up that folder and you have backed up Hoffle.
browser ──► hoffle (port 8730) ──► music-bot (song lookup with yt-dlp, internal)
│ └► dnd-bot (5e SRD, internal)
└── state/ database, uploads, secrets
optional: livekit (big voice rooms) · musicwatch (full music bot)
coturn (TURN relay) · discord-bridge
The hoffle container runs the web app and realtime server: a Cloudflare Worker running locally in Wrangler, with SQLite for data and the disk for uploads. The bot containers are only reachable from inside Docker. Voice is peer-to-peer by default, so it needs no extra servers until your rooms get large; then add LiveKit, which chat.hoffle.online uses.
More detail: system architecture · codebase guide · audio architecture · spatial audio · voice input chain.
Like Spacebar, this repository is organized into clear, self-contained modules covering the backend server, web client, native desktop/mobile apps, and companion services:
| Directory / Module | Description |
|---|---|
worker/ |
Worker Host & Gateway Router — HTTP entrypoint, WebSocket upgrade router (/api/realtime, /api/gateway), and security header pipeline |
lib/ |
Core Server & Domain Logic — Auth & passkeys (auth.ts), SQLite schema & migrations (schema.ts), HuddleHub Durable Object (hub.ts), wire protocol (protocol.ts), permissions, automod, feeds, webhooks and i18n |
lib/discord/ |
Discord v10 Compatibility — DiscordGateway WebSocket server (gateway.ts), Discord v10 REST API (rest.ts), Slash Command interactions (interactions.ts), CDN (cdn.ts) and Snowflakes |
app/api/ |
HTTP REST API — Next.js App Router endpoints for channels, guilds/servers, messages, voice, uploads, admin, native bot API (v1/) and feature routes (app/api/(features)/) |
app/components/ |
Web Client UI — Modular chat shell (chat/shell/), voice stage (voice-stage/), 3D Living Room & Club (living-room.tsx, club-scene.ts), battlemap, 3D dice, settings and retro skins (Y2K, Winamp) |
app/hooks/ & app/lib/ |
Client Hooks & Audio DSP — 9-part chat shell state hooks (chat-shell/), WebRTC/LiveKit voice (use-voice.ts), AudioWorklet RNNoise/singing DSP (mic-chain.ts) and 3D HRTF spatial audio (spatial-audio.ts) |
desktop/ & desktop-tauri/ |
Desktop Clients — Full Electron app (desktop/, with per-app audio capture) and lightweight Rust/Tauri Hoffle Lite (desktop-tauri/) |
desktop-native-macos/ · windows/ · linux/ |
Hoffle Native — Ultra-lightweight native C++/Objective-C desktop apps using system WebKit / WebView2 (~500 KB bundle) |
mobile/ |
Mobile Clients — Android & iOS Capacitor app with background voice, CallKit, floating call bubble and FCM push notifications |
services/ & discord-bridge/ |
Companion Containers — music-bot (yt-dlp), dnd-bot (5e SRD), musicwatch (DJ booth & Watch Together), party-bot and the Discord bridge |
deploy/ & scripts/ |
Operations & Tooling — Zero-downtime deploy.sh, workerd systemd units, Nginx/Coturn configs, Unraid template and admin CLI (admin.mjs) |
docs/ & ARCHITECTURE.md |
Documentation — User guides (published at hoffle.online/docs), System Architecture and Codebase Developer Guide |
Type these into the search box, mixed freely with normal words:
| Operator | Example | Finds |
|---|---|---|
from: |
from:alice |
Messages by that person. Username or display name, @ optional. |
in: |
in:general |
Messages in that channel. Name or id, # optional. |
has:link |
has:link |
Messages with a link preview. |
has:image |
has:image |
Messages with an image attached. |
has:file |
has:file |
Messages with any attachment. |
has:audio |
has:audio |
Voice messages. |
before: / after: |
after:2024-01-01 |
Messages outside a date. before: excludes that day. |
pinned: |
pinned:true |
Pinned messages only. |
"…" |
"exact phrase" |
Keeps those words together. |
from: and in: accept a comma-separated list (from:alice,bob). An operator
with a value Hoffle does not recognise is searched for as plain text, so a typo
shows you that it found nothing instead of quietly ignoring your filter.
Requires Node.js 22.
npm install
cp .dev.vars.example .dev.vars
npm run dev # dev server on http://localhost:3001
npm run verify # typecheck + Vitest unit/component/a11y suite
npm run build && npm run serve # production build on :8730On a server that is already running (npm run serve or a systemd unit around it), deploy with npm run deploy instead of building in place. It builds in a separate copy and swaps the finished build in, so the running server reloads once instead of crashing mid-build; scripts/deploy.sh --rollback puts the previous build back.
npm run verify runs both checks CI enforces before pushing:
| Command | What it does |
|---|---|
npm run typecheck |
tsc --noEmit. The build strips types rather than checking them, so this is the only thing that catches a type error. |
npm test |
Vitest. Unit tests plus the accessibility and component tests. |
npm run verify |
Both, in order. |
.github/workflows/verify.yml runs the same two commands on every push and pull request, and deploy.yml will not deploy unless it passes. See CONTRIBUTING.md for testing conventions (jsdom, axe-core, and Cloudflare bindings fakes).
Hoffle is free and open-source software licensed under the GNU Affero General Public License v3.0 (GNU AGPLv3).
Under this license:
- You are free to run, study, modify, and distribute Hoffle.
- If you run a modified version of Hoffle on a server and provide network services to users, you are required to make the complete corresponding source code of that modified version available to those users under the GNU AGPLv3.
See the LICENSE file for the full license terms and conditions.
Hoffle is built with and grateful to the following open source projects and communities:
- React (MIT License) - Meta Platforms, Inc.
- Three.js (MIT License) - Ricardo Cabello (mrdoob) and Three.js authors
- Lucide Icons (ISC License) - Lucide Contributors
- RNNoise (Apache-2.0 License) - Jean-Marc Valin / Xiph.Org Foundation
- pdf-lib & @pdf-lib/fontkit (MIT & Apache-2.0 Licenses) - Andrew Dillon / Hopding
- pdfjs-dist (Apache-2.0 License) - Mozilla Foundation
- @3d-dice/dice-box (MIT License) - Frank S
- yt-dlp (The Unlicense) - yt-dlp contributors
- ffmpeg (LGPL / GPL) - FFmpeg team




