Unicode Explorer using binary search over fetch() HTTP range requests

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Shows that fetch() HTTP range requests plus binary search can query large static files serverlessly, a pattern any frontend developer can copy today.

Read this as

Simon Willison built a free web tool, Unicode Explorer, that looks up any character, such as 'ø', and tells you its Unicode codepoint and category. Instead of loading a huge database, it fetches small slices of a 76.6MB file stored online, searching like a dictionary: 17 steps and 3,864 bytes for one lookup. He built it from his phone with Claude's help. It is a fun demo of a trick, not a product anyone must adopt.

This is a small prototype, not a product, but it demonstrates a cost-efficient pattern: running lookups against a 76.6MB static S3 file via Cloudflare without any backend server. For teams paying for search infrastructure or APIs over static data, HTTP range requests can eliminate those costs. Willison also shows a full AI-assisted workflow, Claude brainstormed the idea, wrote the spec, then Claude Code produced working code asynchronously.

The tool binary-searches a CORS-enabled 76.6MB Unicode metadata file in S3 via Cloudflare using fetch() HTTP range requests, e.g. finding ampersand (U+0026) in 17 steps transferring 3,864 bytes. Key gotcha: range requests break byte-offset math under HTTP compression, so 'Accept-Encoding': 'identity' was added, though Cloudflare skips compression automatically when content-range is present. Workflow: Claude brainstormed the use case, wrote a spec for Claude Code, which ran as an async research project producing the code and report.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Unicode Explorer Claude Claude Code HTTP range requests simonw/research

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading