sonda/web
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 0dc7782028 feat: post what I listen to on Mastodon, if I connect an account
In Settings a person connects their Mastodon account: the address of their instance and an access token that can only write posts. Nothing is connected by default, and disconnecting forgets the token.

- When a track of this server counts as a listen, it is posted as an unlisted status: title, artists, album and #NowPlaying, with no link. Music of a friend is never reported as a listen, so it is never posted. At most one post a minute for each person, in the background, with a bounded queue.
- PUT, GET and DELETE /me/mastodon. The token is never sent back.
- The address of the instance is typed by a person, so it must be a domain name on https, and the client never connects to a private, loopback or link-local address (checked on the address it really dials, so a name that points inside is no way in), never follows a redirect, ignores proxy settings and reads at most a megabyte.
- New table mastodon_accounts (SQLite and PostgreSQL) that goes with the account.
- README: the feature, and the credit for butterchurn and its presets.
2026-11-13 21:59:03 +01:00
..
public feat(web): the app can be installed and opens offline (PWA) 2026-11-13 12:22:00 +01:00
scripts feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
src feat: post what I listen to on Mastodon, if I connect an account 2026-11-13 21:59:03 +01:00
.gitignore feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
.oxlintrc.json feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
components.json feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
index.html feat(web): new look, part 1: palette, Figtree, menu, covers and controls 2026-11-13 17:11:59 +01:00
package-lock.json feat(web): choose how the player draws the sound: bars, oscilloscope, Milkdrop 2026-11-13 21:32:10 +01:00
package.json feat(web): choose how the player draws the sound: bars, oscilloscope, Milkdrop 2026-11-13 21:32:10 +01:00
tsconfig.app.json feat(web): four themes with a contrast test 2026-11-12 11:17:41 +01:00
tsconfig.json feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
tsconfig.node.json feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
vite.config.ts feat: embed the built web app in sondad behind the webui build tag 2026-11-12 15:56:34 +01:00