- TypeScript 62%
- Svelte 29.2%
- CSS 8.2%
- HTML 0.6%
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qd8iAVsBbLoMfr6tih3vDy |
||
|---|---|---|
| src | ||
| .env.example | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
Sonogram
A small social-music app built on AsanagiDB: search MusicBrainz, save what you like, and see how it all connects.
Svelte 5 + Framework7 on SvelteKit. The server talks to AsanagiDB two ways on one host and port:
- Compository (JSON lines) stores and fetches whole documents.
- Gremlin (WebSocket, GraphBinary) walks the links between them.
AsanagiDB Desktop serves both on 127.0.0.1:8080 by default.
Run it
cp .env.example .env # set MUSICBRAINZ_USER_AGENT to something that identifies you
npm install
npm run dev
GET /api/health checks that both doors into AsanagiDB are open. GET /api/search?q=... searches MusicBrainz (one request per second, as its terms ask).
Notes
-
Needs AsanagiDB 3.0.0 or later and
@asanasoft/asanagi-compository0.18.0 or later. On v3 a document id is{label, id}, which Gremlin does not accept, so graph vertices keep their own packed ids as strings (never as JavaScript numbers) and are found by label and key. The key indexes are registered when the app first connects, so start from an empty database: v3 will not build them over stored data (asanagidb-admin create-indexdoes that offline). -
IMSLP scores are never committed (
*.pdfis ignored).
Work in progress.