Pagefind vs. JSON search for an Astro blog
Compare Pagefind and a JSON search index on 100 and 1,000 test pages. See first-query bytes, timings, and how to measure the trade-off on your Astro site.
Software Engineering4 min read
Tag
7 articles with this tag.
Compare Pagefind and a JSON search index on 100 and 1,000 test pages. See first-query bytes, timings, and how to measure the trade-off on your Astro site.
Software Engineering4 min read
Trace a fetch JSON parse error to an HTML response. Use status, redirect history and content type to distinguish a login page, a missing route and a fallback.
Software Engineering3 min read
Fix btoa InvalidCharacterError for Unicode text, see why café can silently encode to the wrong bytes, and round-trip UTF-8 with TextEncoder and TextDecoder.
Software Engineering3 min read
Decode the same Unix timestamp as seconds and milliseconds, verify the UTC result, and handle zero, negative values and numeric strings in JavaScript.
Software Engineering3 min read
Diagnose Python’s Extra data error by inspecting the second value. Read JSON Lines one record at a time and report the exact line when a record is malformed.
Software Engineering3 min read
Read a SQLite query plan, match a composite index to a filtered sort, and return the newest five records without building a temporary sorting tree.
Software Engineering3 min read
Build a small support-ticket test set, catch a valid JSON response with the wrong label, and run the same prompt evaluation locally and in GitHub Actions.
Artificial Intelligence3 min read