Turn browser bug recordings into evidence you can inspect and regressions you can verify.
ReplaySpec is a prototype browser investigation studio built for the Meta Global AI Developer Hackathon 2026. It connects timestamped recording evidence to a regression specification, then runs constrained checks in Chromium and reports what the browser observed.
Prototype status: ReplaySpec is a local hackathon prototype. The built-in checkout is a demo and does not place real orders or collect payment. Live model access depends on your provider credentials and must be verified with an actual analysis request.
Watch the 49-second walkthrough, from timestamped browser evidence to a verified regression result.
ReplaySpec was built for the Meta Global AI Developer Hackathon 2026. The repository documents the prototype and its implementation; the project does not imply Meta endorsement.
Bug clips show what happened, but often leave teams guessing what should have happened and how to prevent a repeat. ReplaySpec keeps those pieces inspectable:
- Observed — statements grounded in a specific frame and timestamp.
- Expected — the behavior supplied by the investigator.
- Hypothesis — a possible explanation that still needs verification.
- Ambiguity — missing evidence that limits a confident conclusion.
The workflow is recording → timestamped frames → evidence review → regression specification → constrained Playwright execution → inspectable artifacts and verdict. Model responses are validated before they can inform the workflow; model-generated source code is not executed.
Each image is shown separately at the full content width so reviewers can inspect labels and evidence without a side-by-side thumbnail layout.
flowchart LR
Person[Investigator] --> Studio[ReplaySpec web studio]
Studio --> Intake[Recording intake API]
Intake --> Store[Private local recording storage]
Store --> Extract[Timestamped frame extraction]
Extract --> Analyze[Analysis API]
Analyze --> Provider[Configured vision model provider]
Provider --> Validate[Schema and evidence validation]
Validate --> Evidence[Evidence-linked investigation]
Evidence --> Spec[Constrained regression specification]
Spec --> Compile[Validated Playwright templates]
Compile --> Gate[Demo-route allowlist]
Gate --> Browser[Isolated Chromium run]
Browser --> Demo[Bundled buggy or fixed scenario]
Browser --> Artifacts[Screenshot, trace, and video artifacts]
Demo --> Verdict[Four-state verdict]
Artifacts --> Verdict
Verdict --> Studio
The model boundary uses OpenRouter's Meta Llama 4 Maverick for image analysis. A live image request returned a structured response during verification. This is a paid endpoint; the one-image check cost $0.00058023. See Model setup for setup and usage notes.
Investigation and run artifacts are stored locally under test-results/, outside the public asset directory. The browser runner accepts only the bundled demo routes and uses scenario templates; it does not run source code returned by a model.
This prototype currently uses local file-backed persistence. It does not include hosted database storage, user accounts, or authentication.
-
A home page and investigations workspace for reviewing evidence and regression runs.
-
Three curated browser scenarios, each with buggy and fixed variants:
Scenario Demo route Behavior under investigation BUG-01 — Checkout postal-code validation /demo/bug-01An empty postal code must show a validation error. BUG-02 — Cart counter race /demo/bug-02Two quick increments must move quantity from 1 to 3. BUG-03 — Modal cancel overlay /demo/bug-03Cancel must close the dialog without changing the saved address. -
Recording intake and timestamped frame review.
-
Evidence, specification, and execution views for investigations.
-
Chromium runs with screenshots, traces, and explicit verdict states:
REGRESSION_VERIFIED,DEFECT_CONFIRMED,HARNESS_ERROR, andINCONCLUSIVE. -
Optional server-side multimodal analysis through OpenRouter's Meta Llama 4 Maverick endpoint. Provider charges apply.
-
Privacy, prototype terms, and error/not-found pages.
- Node.js 20 or newer
- npm 10 or newer
- Playwright Chromium (
npx playwright install chromium) - FFmpeg and FFprobe on
PATHfor video recording intake
npm install
npx playwright install chromium
npm run devOpen http://localhost:3000.
Model credentials are read on the server. Do not use a NEXT_PUBLIC_ variable for an API key, commit .env.local, or paste a secret into source code.
- Copy
.env.exampleto.env.local. - Set the provider and its key in
.env.local. - Set
REPLAYSPEC_LIVE_ANALYSIS=trueonly when ready to send recording frames to that provider. - Restart the dev server and make an analysis request. The status endpoint only confirms configuration; it does not prove the provider accepted a request.
For the OpenRouter Meta Llama vision setup:
MODEL_PROVIDER=openrouter
OPENROUTER_API_KEY=your_openrouter_key
REPLAYSPEC_LIVE_ANALYSIS=trueThis model endpoint is paid. Live analysis sends selected frames to OpenRouter; check current provider rates and account usage before processing recordings. Provider setup details are in Model setup.
npx tsc --noEmit
npm run lint
npx playwright test --workers=1
npm run buildThese commands are provided for maintainers; a command listed here is not a claim that it has passed in every environment. See Quality gates for project acceptance criteria.
- Browser execution is intended for the bundled local demo routes; do not treat this prototype as a general-purpose remote-site runner.
- Generated checks use constrained templates and validated inputs rather than arbitrary model-written code.
- Run artifacts are stored outside the public asset directory.
- The demo checkout does not create an order, send a confirmation email, or collect payment.
- Live analysis sends selected recording frames and the investigator's prompt to the configured model provider. Use only recordings you are permitted to share with that provider.
- The configured Meta model is Llama 4 Maverick. Meta Muse Spark Open is not part of this integration.
- Product specification
- Architecture
- Quality gates
- Research brief
- Model setup and provider notes
- Data use / privacy
- Prototype terms
src/app/ Routes, pages, and API handlers
src/components/ Investigation workspace components
src/lib/ Evidence, model adapters, storage, specs, and runner
public/demo/ Curated scenario frame assets
docs/ Product, architecture, research, and quality docs
tests/ Unit, API, and browser regression coverage
- Open Investigations and choose a curated benchmark.
- Review the recording and jump between timestamped frames.
- Show how an observation links back to its source frame, separately from expected behavior and hypotheses.
- Open the specification and inspect the constrained regression check.
- Run the buggy and fixed variants in Chromium; explain the verdict using the browser artifacts.
Keep the claim precise: a benchmark run demonstrates the app's browser-verification workflow; it does not by itself establish that live model analysis is configured or available.
Next.js, React, TypeScript, Tailwind CSS, Zod, and Playwright.








