How gesellix/bose-soundtouch works
AfterTouch is a local SoundTouch cloud replacement, accompanied by LAN control tools and a Go client library. The main workflow is an owner using the web UI to configure or manage speakers; the service exposes management APIs, performs setup and cloud-service emulation, and supports speaker control and discovery. The README documents capabilities beyond the sampled excerpts, including migration, redirects, backups, and standalone player operation. Edges for unsampled service internals are limited to documented relationships; dashed edges indicate connections not verified in the excerpts.
Main entry points: main.go Service Daemon · api.js UI API Client · app.js Web UI · handlers HTTP Handlers
Components 34
AfterTouch Service
- Service Daemon
cmd/soundtouch-service/main.go - HTTP Handlers
pkg/service/handlers - Device Setup
pkg/service/setup - Local Data Store
pkg/service/datastore
Web Player
- Embedded Web App
pkg/service/soundtouchweb/handler.go - Web UI
pkg/service/soundtouchweb/static/js/app.js - UI API Client
pkg/service/soundtouchweb/static/js/api.js - Playback Controls
pkg/service/soundtouchweb/static/js/components/Controls.js - Preset Browsing
pkg/service/soundtouchweb/static/js/components/Presets.js - Catalog Picker
pkg/service/soundtouchweb/static/js/components/CatalogPicker.js - Music Library
pkg/service/soundtouchweb/static/js/components/Library.js - Preset Picker
pkg/service/soundtouchweb/static/js/components/PresetPicker.js - Device Settings
pkg/service/soundtouchweb/static/js/components/Settings.js - Source Selection
pkg/service/soundtouchweb/static/js/components/Sources.js - Stereo Pairing
pkg/service/soundtouchweb/static/js/components/StereoPair.js - TuneIn Browser
pkg/service/soundtouchweb/static/js/components/TuneInBrowser.js - Multiroom Zones
pkg/service/soundtouchweb/static/js/components/Zone.js - Content Location
pkg/service/soundtouchweb/static/js/contentLocation.mjs - Device Presentation
pkg/service/soundtouchweb/static/js/devicePresentation.js - Command Readback
pkg/service/soundtouchweb/static/js/discreteCommand.js - Settings Presentation
pkg/service/soundtouchweb/static/js/settingsPresentation.mjs - Source Icons
pkg/service/soundtouchweb/static/js/sourceIcons.js
Device Access
- Device Discovery
pkg/discovery - SoundTouch Client
pkg/client/client.go - SoundTouch Speakers
Service Integrations
- Music Providers
pkg/service/amazon/service.go - Spotify Provider
pkg/service/spotify/service.go - Speech Service
pkg/service/tts/service.go - Stereo Coordinator
pkg/stereopair/coordinator.go
Companion Tools
- Command Line
cmd/soundtouch-cli/main.go - Account Backup
cmd/soundtouch-backup/main.go - Standalone Player
cmd/soundtouch-player/main.go
Other components
- Speaker Owner
- Browser UI
Connections 40
- Speaker Owner → Browser UI: operates
README.md - Browser UI → Embedded Web App: uses
README.md - Embedded Web App → Web UI: serves
- Web UI → UI API Client: requests
pkg/service/soundtouchweb/static/js/app.js - Playback Controls → UI API Client: requests
pkg/service/soundtouchweb/static/js/components/Controls.js - Preset Browsing → UI API Client: requests
pkg/service/soundtouchweb/static/js/components/Presets.js - Music Library → UI API Client: requests
pkg/service/soundtouchweb/static/js/components/Library.js - Source Selection → UI API Client: requests
pkg/service/soundtouchweb/static/js/components/Sources.js - Device Settings → UI API Client: requests
pkg/service/soundtouchweb/static/js/components/Settings.js - Stereo Pairing → UI API Client: requests
pkg/service/soundtouchweb/static/js/components/StereoPair.js - TuneIn Browser → UI API Client: requests
pkg/service/soundtouchweb/static/js/components/TuneInBrowser.js - Web UI → Device Presentation: uses
pkg/service/soundtouchweb/static/js/app.js - Web UI → Command Readback: uses
pkg/service/soundtouchweb/static/js/app.js - Web UI → Multiroom Zones: renders
pkg/service/soundtouchweb/static/js/app.js - Preset Browsing → Catalog Picker: renders
pkg/service/soundtouchweb/static/js/components/Presets.js - Preset Browsing → Preset Picker: uses
pkg/service/soundtouchweb/static/js/components/Presets.js - Music Library → Preset Picker: uses
pkg/service/soundtouchweb/static/js/components/Library.js - Web UI → Content Location: uses
- Device Settings → Settings Presentation: uses
pkg/service/soundtouchweb/static/js/components/Settings.js - Source Selection → Source Icons: uses
pkg/service/soundtouchweb/static/js/components/Sources.js - UI API Client → HTTP Handlers: calls
- Service Daemon → Local Data Store: initializes
cmd/soundtouch-service/main.go - Service Daemon → HTTP Handlers: routes
cmd/soundtouch-service/main.go - Service Daemon → Embedded Web App: creates
cmd/soundtouch-service/main.go - Service Daemon → Device Discovery: configures
cmd/soundtouch-service/main.go - Service Daemon → Music Providers: configures
cmd/soundtouch-service/main.go - HTTP Handlers → Spotify Provider: delegates
pkg/service/handlers/handlers_oauth.go - HTTP Handlers → Music Providers: delegates
pkg/service/handlers/handlers_oauth.go - Service Daemon → Device Setup: configures
cmd/soundtouch-service/main.go - Device Setup → SoundTouch Speakers: configures
- Service Daemon → Stereo Coordinator: configures
cmd/soundtouch-service/main.go - Service Daemon → Speech Service: configures
- Command Line → SoundTouch Client: controls
README.md - SoundTouch Client → SoundTouch Speakers: controls
README.md - Device Discovery → SoundTouch Speakers: discovers
- Account Backup → SoundTouch Speakers: polls
README.md - Account Backup → Speaker Owner: backs up
README.md - Standalone Player → Embedded Web App: runs
README.md - Standalone Player → SoundTouch Speakers: controls
cmd/soundtouch-player/main.go - Standalone Player → Service Daemon: delegates features
README.md