Skip to content

feat: a codecs subpath, and let the host name the thing - #2

Merged
ralyodio merged 1 commit into
mainfrom
codecs-subpath
Aug 29, 2026
Merged

feat: a codecs subpath, and let the host name the thing#2
ralyodio merged 1 commit into
mainfrom
codecs-subpath

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

genrewatch and tipoffwatch each carry a copy of the codec table — the most expensive 150 lines in either repo, every rule written in response to a channel that failed in production, two of them got wrong twice. Three copies is the thing this package exists to stop.

@profullstack/player/codecs is a subpath rather than the root export because those two bundle their client by hand and are careful about its weight: importing from the root would pull the player and its dynamic engine imports into a bundle that wants a lookup table and nothing else. dist/codecs.js is 151 bytes.

unplayableReason also takes a subject. Those sites say "channel", because that is what their reader clicked; a recording is a "stream" at best. Without it, adopting this would quietly reword their copy.

80 tests, tsc and prettier clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WFLwZtXE6iBJyJSgrsWqRM

genrewatch and tipoffwatch each carry a copy of the codec table. It is the
most expensive 150 lines in either repo -- every rule was written in response
to a channel that failed in production, and two of them were got wrong twice
-- and three copies is the thing this package exists to stop.

`@profullstack/player/codecs` is a subpath rather than the root export because
those two bundle their client by hand and are careful about its weight:
importing from the root would pull the player and its dynamic engine imports
into a bundle that wants a lookup table and nothing else. dist/codecs.js is
151 bytes.

`unplayableReason` also takes a `subject` now. Those sites say "channel",
because that is what their reader clicked; a recording is a "stream" at best.
Naming it wrongly is a small thing that makes shared copy read as though it
came from somewhere else.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFLwZtXE6iBJyJSgrsWqRM
@ralyodio
ralyodio merged commit ce85157 into main Aug 29, 2026
3 checks passed
@ralyodio
ralyodio deleted the codecs-subpath branch August 29, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant