Bumps the web group in /web with 2 updates: [prettier](https://github.com/prettier/prettier) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest). Updates `prettier` from 3.10.0 to 3.10.1 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.10.0...3.10.1) Updates `vitest` from 5.1.0 to 5.1.2 - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v5.1.2/packages/vitest) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.10.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: web - dependency-name: vitest dependency-version: 5.1.2 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: web ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Chatty Cat
Chatty Cat is a self-hosted Twitch chat client: one Go service with a TypeScript frontend. It runs at chat.subcult.tv.
Features
- Watching chat: merge up to six channels in one pane or split them into independent panes, without signing in. Chatty Cat reconnects to Twitch IRC and restores available public backfill.
- Chatting: sign in with Twitch to send messages, replies, commands and whispers. Whispers stay in their own pane and out of history and stats.
- Messages: reply threads, permalinks, user cards with recent messages, pronouns, user notes, bookmarks, link previews, VOD context and searchable local history.
- Emotes: a picker with Twitch, account and third-party emotes and Unicode emoji, with filters, recents and animation controls.
- Moderation: moderation actions and presets, the AutoMod queue, polls, predictions and broadcaster actions for accounts with those permissions.
- Display: built-in palettes and fonts, custom themes, filters, columns, header modes, saved layouts and keyboard shortcuts (docs/keyboard-shortcuts.md).
- Stream video: an embedded player beside chat.
- OBS overlay:
/overlay.html?channel=yourchannelgives a chat-only browser source. - Imports and sync: import Chatterino settings, layouts and commands, and sync settings between devices when the server has a sync directory.
- Optional services: BTTV and 7TV events and cosmetics, image uploads to the server, and a relay to other IRC networks, each off until configured.
- Desktop app and browser build for Linux x86-64 and Apple Silicon macOS, plus Chromium and Firefox companion extensions. See docs/desktop-app.md.
OAuth tokens and sessions stay on the server, in memory; they never enter browser storage. Restarting the server signs everyone out.
Quick start
You need Go 1.26+ and Node 22.12+.
npm --prefix web ci
npm --prefix web run build
go build -o bin/chatty-cat-server ./cmd/chatty-cat-server
./bin/chatty-cat-server
Open http://127.0.0.1:8080. Anonymous chat works without Twitch credentials.
For sign-in, create a Twitch application, register the callback
<your origin>/api/auth/callback, and set CHATTY_CAT_PUBLIC_URL to that origin
(loopback HTTP is allowed for local testing).
Tests and checks:
go test -race -cover ./...
go vet ./...
golangci-lint run
npm --prefix web test
npm --prefix web run build
npm --prefix web run check:overlay # checks the overlay's JavaScript bundle
GET /api/health reports that the process is up. GET /api/ready returns 503
while shutting down or when the built frontend is missing.
Configuration
The service reads environment variables, plus an optional env file at
CHATTY_CAT_ENV_FILE (default ../.env; a missing file is allowed). Variables
already set take precedence. Keep the env file out of Git.
| Variable | Purpose |
|---|---|
CHATTY_CAT_ADDR |
Listen address, default 127.0.0.1:8080 |
CHATTY_CAT_ASSETS |
Built frontend directory, default web/dist |
CHATTY_CAT_PUBLIC_URL |
Public HTTPS origin used for OAuth; loopback HTTP allowed |
TWITCH_CLIENT_ID, TWITCH_CLIENT_SECRET |
Server-side Twitch application credentials |
GIPHY_API_KEY |
Optional browser key for GIF search |
CHATTY_CAT_PROVIDER_SERVICES |
Optional BTTV and/or 7TV event services |
CHATTY_CAT_COSMETIC_PROVIDERS |
Optional cosmetic badge providers |
CHATTY_CAT_SYNC_DIR |
Writable directory that turns on device sync |
CHATTY_CAT_UPLOAD_DIR |
Writable directory that turns on image uploads |
CHATTY_CAT_IRC_CONFIG |
Path to a JSON list of allowed IRC relay endpoints |
CHATTY_CAT_WORKSPACE_CHANNELS, CHATTY_CAT_CHAT_SUBSCRIPTIONS |
Channel and subscription limits |
Deploy
The Dockerfile builds one image with the Go service and the built frontend.
compose.yaml runs it read-only on host loopback port 8080:
docker compose --env-file /path/to/private.env up -d --build chat
Put an HTTPS reverse proxy in front of it that keeps the Host header and
WebSocket upgrades, or start the included Caddy proxy with
--profile https after changing deploy/Caddyfile to your domain. Set
CHATTY_CAT_PUBLIC_URL to the same origin and register its callback on your
Twitch application. deploy/README.md has the details.
To build the desktop app or browser build yourself:
npm --prefix web ci
npm --prefix desktop ci
python3 scripts/build-desktop.py # desktop app for this machine
python3 scripts/build-browser-release.py dist # browser build archives into dist/
Project layout
cmd/chatty-cat-server/ server entry point
internal/ auth, IRC, metadata, previews, provider services, uploads, sync
web/ TypeScript frontend (Vite)
desktop/ Electron shell for the desktop app
companion/ browser companion extensions and the macOS overlay helper
deploy/ Caddy and Compose examples
docs/ architecture, design system and feature notes
scripts/ build, release and data-generation scripts
docs/architecture.md describes how the parts fit
together. The Help panel's resource lists are generated data; to regenerate
them, run python3 scripts/port-resources.py <source.html>.
Contributing
- Report bugs and request features in GitHub issues.
- Ask questions and share ideas in GitHub Discussions.
- Send code as a pull request on GitHub against
main.
CI runs the Go race tests and vet, the frontend tests and build, and builds the
Linux app, macOS app and browser build on every pull request. The
Mirror CI gate check must pass before a pull request can merge.
License
Chatty Cat is licensed under the GNU Affero General Public License v3.0. See LICENSE and NOTICE.md for attribution. Bundled fonts, emoji graphics and other third-party assets keep their own licenses. If you run a modified version for other people over a network, the license requires you to offer them its source.
