Playground: paste a payload, watch it get measured - #19
Merged
Conversation
…even, unsafe-integer rejection, explicit traffic selector, strict inflate probe, trained-nothing state, live CTA and mobile nav
…cellation, selector survives errors, training-state honesty, wrapper depth, float-semantics footnote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A /playground route on hyperfly.dev. Paste any JSON response — or an array of responses from the same route — and everything runs client-side: schema inference, profile training, encoding with the real codec (fflate deflate hooks), and per-message numbers for JSON / JSON+gzip6 / Hyperfly / Hyperfly Profiled, methodology-matched to the benchmark section (full envelope, minified JSON, gzip 6).
The corpus mode is the showpiece: it trains a profile in the browser and shows what it learned — dictionaries, id grammars (
evt_{base36×6}_{base16×8}), derived columns — with the codec artifact priced honestly (full serialized artifact, break-even from the artifact delta, everything labeled in-sample).Honesty guardrails from two codex review rounds: visible in-sample disclosure beside the bars, inferred schema shown verbatim with assumption tracking, bare integers beyond ±(2^53−1) rejected instead of silently rounded, JS parse semantics disclosed, strict single-stream inflate probing, explicit traffic/one-response selector, depth guard, and a round-trip verification on every measurement. Nothing is uploaded — stated on the page.
Also makes the landing's "benchmark playground — soon" CTA real and keeps the playground link visible in mobile nav.
🤖 Generated with Claude Code