From a77172b55a6ca15c5d63cd8acf3609a9f9ba4b06 Mon Sep 17 00:00:00 2001 From: Moepchi Date: Thu, 30 Jul 2026 16:21:46 +0200 Subject: [PATCH] Rename project from TS Web Client to WebSpeak3 Rebrands the app as an independent project, adds a trademark disclaimer to the README, and migrates localStorage keys with a compatibility shim so existing favorites/settings survive the rename. The TeamSpeak protocol bridge itself (Ts3Connection, ts-connector binary) is untouched. --- Dockerfile | 2 ++ README.md | 17 +++++++++++++++-- docker-compose.yml | 4 ++-- gateway/package.json | 4 ++-- gateway/src/index.ts | 2 +- web/index.html | 2 +- web/package.json | 2 +- web/src/App.tsx | 34 ++++++++++++++++++++++++---------- 8 files changed, 48 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f872be..faf8ca2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,8 @@ RUN npm run build # --- Runtime ---------------------------------------------------------------- FROM node:22-bookworm-slim AS runtime +LABEL org.opencontainers.image.title="WebSpeak3" +LABEL org.opencontainers.image.description="Self-hosted web client for TeamSpeak 3 servers" WORKDIR /app COPY gateway/package*.json ./ RUN npm ci --omit=dev diff --git a/README.md b/README.md index 18a8670..14cd84e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# TS Web Client +# WebSpeak3 -Browser-based client for TeamSpeak servers — same idea as the native +A browser-based web client for TeamSpeak 3 servers — same idea as the native installable client, but running in a web browser. The TeamSpeak server side stays exactly as-is (a regular TS server); only the client is being reimagined. @@ -51,3 +51,16 @@ See [INSTALL.md](INSTALL.md). ## Credits The vast majority of this project's code was written by [Claude Code](https://claude.com/claude-code) (Anthropic's Claude), working iteratively with the repo owner one feature at a time. + +--- + +### Legal / Disclaimer + +**WebSpeak3** is an independent, open-source, self-hosted project and is +**not** affiliated with, associated with, authorized by, endorsed by, or in +any way officially connected with TeamSpeak Systems GmbH. + +"TeamSpeak", "TS3", and related logos or names are registered trademarks of +TeamSpeak Systems GmbH. All product and company names are trademarks™ or +registered® trademarks of their respective holders. Use of them does not +imply any affiliation with or endorsement by them. diff --git a/docker-compose.yml b/docker-compose.yml index 9659bd2..b39c4e9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,11 @@ services: - ts-web-client: + webspeak3: build: . restart: unless-stopped # Port publishing is deployment-specific (depends on what's free on the # host) - set it in a local, gitignored docker-compose.override.yml, e.g.: # # services: - # ts-web-client: + # webspeak3: # ports: # - "8080:8080" diff --git a/gateway/package.json b/gateway/package.json index 92d3872..3f8f547 100644 --- a/gateway/package.json +++ b/gateway/package.json @@ -1,8 +1,8 @@ { - "name": "ts-web-gateway", + "name": "webspeak3-gateway", "version": "0.1.0", "private": true, - "description": "Gateway server: bridges browser (WebSocket) clients to a native TeamSpeak server", + "description": "WebSpeak3 gateway server: bridges browser (WebSocket) clients to a native TeamSpeak server", "type": "module", "scripts": { "dev": "tsx watch src/index.ts", diff --git a/gateway/src/index.ts b/gateway/src/index.ts index 7f54d3e..1877199 100644 --- a/gateway/src/index.ts +++ b/gateway/src/index.ts @@ -54,7 +54,7 @@ const server = createServer((req, res) => { const wss = new WebSocketServer({ server, path: "/ws" }); server.listen(PORT, () => { - console.log(`Gateway listening on http://localhost:${PORT} (WebSocket at /ws)`); + console.log(`WebSpeak3 gateway listening on http://localhost:${PORT} (WebSocket at /ws)`); }); wss.on("connection", (socket: WebSocket) => { diff --git a/web/index.html b/web/index.html index 5e3836a..7d8af76 100644 --- a/web/index.html +++ b/web/index.html @@ -4,7 +4,7 @@ - web + WebSpeak3
diff --git a/web/package.json b/web/package.json index 06fff76..d3aee06 100644 --- a/web/package.json +++ b/web/package.json @@ -1,5 +1,5 @@ { - "name": "web", + "name": "webspeak3-web", "private": true, "version": "0.0.0", "type": "module", diff --git a/web/src/App.tsx b/web/src/App.tsx index 3dd7f59..6259925 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -17,14 +17,28 @@ const GATEWAY_URL = import.meta.env.DEV ? "ws://localhost:8080" : `${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws`; -const LAST_HOST_KEY = "ts-web-client:last-host"; -const LAST_NICKNAME_KEY = "ts-web-client:last-nickname"; -const FAVORITES_KEY = "ts-web-client:favorites"; -const INPUT_DEVICE_KEY = "ts-web-client:input-device"; -const PLAYBACK_VOLUME_KEY = "ts-web-client:playback-volume"; -const NOISE_SUPPRESSION_KEY = "ts-web-client:noise-suppression"; -const ECHO_CANCELLATION_KEY = "ts-web-client:echo-cancellation"; -const VAD_HANGOVER_KEY = "ts-web-client:vad-hangover"; +// One-time migration from the pre-rename "ts-web-client:*" localStorage +// namespace so existing users don't lose their favorites/preferences. +(function migrateLegacyStorageKeys() { + const oldPrefix = "ts-web-client:"; + const newPrefix = "webspeak3:"; + for (const oldKey of Object.keys(localStorage).filter((k) => k.startsWith(oldPrefix))) { + const newKey = newPrefix + oldKey.slice(oldPrefix.length); + if (localStorage.getItem(newKey) === null) { + localStorage.setItem(newKey, localStorage.getItem(oldKey)!); + } + localStorage.removeItem(oldKey); + } +})(); + +const LAST_HOST_KEY = "webspeak3:last-host"; +const LAST_NICKNAME_KEY = "webspeak3:last-nickname"; +const FAVORITES_KEY = "webspeak3:favorites"; +const INPUT_DEVICE_KEY = "webspeak3:input-device"; +const PLAYBACK_VOLUME_KEY = "webspeak3:playback-volume"; +const NOISE_SUPPRESSION_KEY = "webspeak3:noise-suppression"; +const ECHO_CANCELLATION_KEY = "webspeak3:echo-cancellation"; +const VAD_HANGOVER_KEY = "webspeak3:vad-hangover"; function loadBoolPref(key: string, fallback: boolean): boolean { const raw = localStorage.getItem(key); @@ -56,7 +70,7 @@ function loadFavorites(): Favorite[] { } } -const AWAY_PRESETS_KEY = "ts-web-client:away-presets"; +const AWAY_PRESETS_KEY = "webspeak3:away-presets"; function loadAwayPresets(): string[] { try { @@ -2033,7 +2047,7 @@ function App() { > {theme === "dark" ? "☀️" : "🌙"} - TS Web Client + WebSpeak3