transformers.js's progress_callback Fetched Every Model File TwiceI passed it to show download progress. Version 4.3.1 then GET the whole file just to read its size — and Chrome aborted one of the overlapping, immutably cached requests.5 min read·leivertri.hashnode.dev1Nov 12
When "Opening Never Throws" Still Threw: sql.js and a Damaged B-Tree PageI build a browser tool that opens Audacity .aup3 / .aup4 projects. The projects are SQLite databases. One of the rules the recovery flow depends on is written at the top of the archive module and in t5 min read·leivertri.hashnode.dev1RNov 9
Escaping Plain-Text Answers in Google FAQPage JSON-LDGoogle's FAQPage documentation said Answer.text may contain HTML. If your answers are meant to be plain text, a literal < in one of them can be taken as the start of a tag. Many sites add FAQPage str5 min read·leivertri.hashnode.devNov 7
Every Page of My Next.js Site Shared as the Homepage: The Shallow Metadata Merge TrapSetting title, description and canonical per page is not enough. If only the layout defines openGraph, every page inherits the homepage's og:url.5 min read·leivertri.hashnode.dev1RNov 4
Turning Audio Into an MP4 in the Browser: Writing the Muxer, and Why I Left the Edit List OutWebCodecs gives you AAC packets and H.264 frames. Getting them into a file that YouTube, phones and ffmpeg all accept is the part nobody hands you.6 min read·leivertri.hashnode.devNov 2