Repository navigation
v0.2.0 — Hardened architecture, multi-provider auth, smart play
Harmon v0.2.0
Major hardening, features, and distribution pipeline.
Install
npm install -g @sriinnu/harmon
harmon initOr with Docker:
cp .env.example .env && docker compose up -dWhat's new since v0.1.0
Architecture
- Daemon decomposed: 2620 → 982 LOC across 14 focused modules
- DaemonContext interface pattern for route isolation
- 393 tests (up from 326)
Auth (all providers now seamless)
- YouTube: full OAuth + PKCE with auto-refresh
- Apple: JWT auto-regeneration from ES256 key material
harmon initinteractive setup wizard
Features
- Smart play:
harmon smart-play "song name"— searches all connected providers, plays best match - Song recognition:
harmon listen— AudD or Chromaprint (open-source, free) - YouTube mini player:
http://localhost:17373/player/youtube - 20+ MCP tools for AI assistant integration
Security
- Crypto key rotation with SHA-256 fingerprint detection
- Loopback-only token embedding in player pages
- Fetch timeout on external API calls
- Concurrent session start mutex
Distribution
- Standalone CLI bundle (79KB, no monorepo needed)
- Docker multi-stage build + docker-compose.yml
- npm publish pipeline (all 11 packages)
- CI/CD: GitHub Actions for test + publish