About
Resources
Blog
Docs
Source
Status
Social
Discord
IRC
Bluesky
X/Twitter
Contact
team@tangled.org
security@tangled.org
Legal
Terms of Service
Privacy Policy
Sign in
Join now
hackermusic
2000.nyc
/
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
Overview
Overview
Issues
Issues
Pulls
Pulls
Pipelines
Pipelines
Version history of
src/lib/
connection.ts
September 2026
The transport survives a reload: what was queued, which track it was on, the second that track had reached, and where the volume slider was left. A refresh used to answer all four with nothing — an empty bar, no queue, the track back at zero seconds — for a page whose entire subject is a position on a
track.
track.
2000.nyc
·
2mo ago
eac12e07
Copied
Failed
Copy SHA
2000.nyc
eac12e07
Copied
Failed
Copy SHA
The transport survives a reload: what was queued, which track it was on, the second that track had reached, and where the volume slider was left. A refresh used to answer all four with nothing — an empty bar, no queue, the track back at zero seconds — for a page whose entire subject is a position on a track.
2mo ago
Runtime shape at the read boundaries: what the app stores is validated on the way in, and only there, because the write path is the volume and the scrub and re-checking a value the app built a moment ago would tax frames to guard against a mistake it did not make. What JSON.parse could not see is now caught: a stored host that is no longer the output of normalizeHost, which is the one stored string this app attaches a username and a salted md5 of the password to; a login draft stored as null, which threw while the dialog rendered, on the one screen with no way out of it; a repeat mode the player has never heard of, which matched no comparison and quietly stopped repeats; a cached songCount of "3", which never equals the length of the cache, so the library re-crawled every boot with no symptom anyone could name; and a proxy that answers /rest/ping with its own login page at a 200, which arrived as the JSON parser's TypeError instead of an error naming the endpoint. The song and album rows are deliberately unvalidated — parse() hands back a copy with the undeclared keys dropped, and those rows are identity-keyed by the virtualizer and carry provenance a hand-kept schema would silently lose — and the envelope keeps everything beside status unvalidated, with status wider than ok/failed, so a server that spells it oddly still gets to report its own failure. RepeatMode is read off REPEAT_ORDER, so a fifth mode cannot skip the schema. Costs 1.7kB gzipped on the main chunk, and each guard is covered by tests that fail without it.
2000.nyc
·
2mo ago
3f44b88d
Copied
Failed
Copy SHA
2000.nyc
3f44b88d
Copied
Failed
Copy SHA
Runtime shape at the read boundaries: what the app stores is validated on the way in, and only there, because the write path is the volume and the scrub and re-checking a value the app built a moment ago would tax frames to guard against a mistake it did not make. What JSON.parse could not see is now caught: a stored host that is no longer the output of normalizeHost, which is the one stored string this app attaches a username and a salted md5 of the password to; a login draft stored as null, which threw while the dialog rendered, on the one screen with no way out of it; a repeat mode the player has never heard of, which matched no comparison and quietly stopped repeats; a cached songCount of "3", which never equals the length of the cache, so the library re-crawled every boot with no symptom anyone could name; and a proxy that answers /rest/ping with its own login page at a 200, which arrived as the JSON parser's TypeError instead of an error naming the endpoint. The song and album rows are deliberately unvalidated — parse() hands back a copy with the undeclared keys dropped, and those rows are identity-keyed by the virtualizer and carry provenance a hand-kept schema would silently lose — and the envelope keeps everything beside status unvalidated, with status wider than ok/failed, so a server that spells it oddly still gets to report its own failure. RepeatMode is read off REPEAT_ORDER, so a fifth mode cannot skip the schema. Costs 1.7kB gzipped on the main chunk, and each guard is covered by tests that fail without it.
2mo ago
Library index + harvest, list/grid views, boot perf fixes, album section
highlight
highlight
2000.nyc
·
2mo ago
cd8b43b7
Copied
Failed
Copy SHA
2000.nyc
cd8b43b7
Copied
Failed
Copy SHA
Library index + harvest, list/grid views, boot perf fixes, album section highlight
2mo ago