惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
Last Week in AI
Last Week in AI
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
宝玉的分享
宝玉的分享
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
博客园 - 聂微东
S
SegmentFault 最新的问题
博客园 - 司徒正美
罗磊的独立博客
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
小众软件
小众软件
Jina AI
Jina AI

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - tsirysndr/smolsonic: A tiny Subsonic server in Rust
tsiry · 2026-06-23 · via Hacker News: Show HN

Release

A tiny, self-contained Subsonic-compatible music server written in Rust. Point it at a folder of music, give it a username and a password in a TOML file, and any Subsonic client can browse and stream your library.

                     _                  _
 ___ _ __ ___   ___ | |___  ___  _ __  (_) ___
/ __| '_ ` _ \ / _ \| / __|/ _ \| '_ \ | |/ __|
\__ \ | | | | | (_) | \__ \ (_) | | | || | (__
|___/_| |_| |_|\___/|_|___/\___/|_| |_||_|\___|
                a tiny Subsonic server in Rust

Features

  • One binary, one TOML file, one SQLite database. No external services.
  • Built on actix-web 4 with sqlx (SQLite) for storage.
  • Library scanner powered by lofty — extracts ID3/Vorbis/MP4/etc. tags and embedded cover art from mp3, flac, ogg, opus, m4a, wav, and more.
  • Falls back to cover.jpg / folder.jpg / front.jpg next to the audio file if there's no embedded picture.
  • Stable IDs (ar-… / al-… / so-…) derived from tag content, so re-scans are idempotent and clients don't lose their bookmarks.
  • HTTP Range support for proper seeking.
  • Subsonic token auth (t = md5(password + salt)) and plaintext (p=… or p=enc:<hex>) both supported.
  • CORS is permissive — works directly from web clients.

Install

Homebrew (macOS / Linux):

brew install tsirysndr/tap/smolsonic

Or build from source:

Quick start

# 1. Create a config
cp smolsonic.example.toml smolsonic.toml
$EDITOR smolsonic.toml      # set music_dir, username, password

# 2. Run
smolsonic --config smolsonic.toml

On first launch smolsonic scans music_dir, creates the SQLite database, and starts the HTTP server. Point any Subsonic client at http://<host>:<port>/rest/… using the credentials from your TOML file.

Configuration

smolsonic.toml (all keys shown):

music_dir     = "/path/to/your/music"   # required
username      = "admin"                  # required
password      = "changeme"               # required

# Optional — defaults shown
port          = 4533
host          = "0.0.0.0"
database_path = "smolsonic.db"
covers_dir    = "covers"
Key Purpose
music_dir Root of your library. Walked recursively.
username The single Subsonic user.
password Cleartext on disk; used for both token and plaintext auth.
port TCP port to bind.
host Interface to bind (use 127.0.0.1 to keep it local).
database_path Path to the SQLite file. Created if missing.
covers_dir Where extracted album art is cached.

CLI

Usage: smolsonic [OPTIONS]

Options:
  -c, --config <CONFIG>  Path to the TOML config file [default: smolsonic.toml]
      --no-scan          Skip the startup library scan
  -h, --help             Print help
  -V, --version          Print version

Trigger a rescan from a running server with the standard Subsonic endpoint:

GET /rest/startScan.view?u=…&t=…&s=…
GET /rest/getScanStatus.view?u=…&t=…&s=…

Supported endpoints

Full navidrome-style endpoint coverage. Both .view-suffixed and plain paths are accepted, on both GET and POST. Responses are JSON with the Subsonic envelope ({"subsonic-response": …}).

Systemping, getUser, getMusicFolders, getScanStatus, startScan

Library (ID3 tag browsing)getArtists, getArtist, getAlbum, getSong, getAlbumList2, getAlbumList (alias)

Library (folder browsing)getIndexes, getMusicDirectory

GenresgetGenres, getSongsByGenre

ListsgetRandomSongs, getStarred2, getStarred (alias)

Playbackstream, download, getCoverArt, scrobble, getNowPlaying, updateNowPlaying

Searchsearch3, search2 (alias)

PlaylistsgetPlaylists, getPlaylist, createPlaylist, updatePlaylist, deletePlaylist

Starringstar, unstar

Artist / album infogetArtistInfo, getArtistInfo2, getAlbumInfo, getAlbumInfo2, getSimilarSongs, getSimilarSongs2, getTopSongs, getLyrics. These return minimal stub shapes (no Last.fm or external lookups).

GET / returns a plain-text index of every endpoint and its query params.

Tested clients

Anything that speaks Subsonic API 1.16.x and prefers tag-based browsing should work, including Substreamer, play:sub, Symfonium, Tempo, and Sonixd.

How auth works

Subsonic clients send credentials as query parameters:

  • Token auth (preferred): u=<user>&t=<token>&s=<salt> where token = md5(password + salt).
  • Plaintext: u=<user>&p=<password> or p=enc:<hex-encoded password>.

smolsonic accepts both. The single user/password come from the TOML config. There's no user database.

Development

cargo run -- --config smolsonic.toml
RUST_LOG=debug cargo run -- --config smolsonic.toml

Project layout:

src/
  main.rs            entry point
  cli.rs             clap CLI + neon styling + ASCII banner
  config.rs          TOML loader
  db.rs              SqlitePool + schema migrations
  models.rs          Artist / Album / Song row types
  scanner.rs         walkdir + lofty + cover art extraction
  server/
    mod.rs           actix App + routing
    auth.rs          Subsonic token / plaintext auth
    response.rs      JSON envelope helpers
    repo.rs          sqlx queries
    handlers.rs      Subsonic endpoint handlers

License

MIT.