
yomorai
io.github.shashikanth-a/yomorai
Review a frontend change in real browsers: what it changed, what it broke, what was intended.
Documentation
Yomorai
Yomorai reviews frontend pull requests by opening the production site and the pull request's preview deployment side by side in a real browser, comparing what it sees (pixels, DOM, accessibility tree, behaviour, runtime errors, Lighthouse metrics), and reporting only differences backed by stored evidence. It works out what the pull request meant to change, so each finding is classified as an intended change, a confirmed regression, an unintended change, an environmental difference or inconclusive — and a deterministic gate, not a model, has the final word on that classification. It is open source (MIT) and self-hosted: it runs on your machine or in your own Cloudflare account, and there is no Yomorai-operated service.
Status: v0.0.1, early. The local engine, the CLI and the MCP server are covered by tests. The Cloudflare deployment has run reviews end to end on a Workers Paid account; the GitHub side of that deployment (webhooks, check runs, comments) has not. Read Status and known limitations before relying on it.
How a review works
- A pull request event arrives (or you run the CLI). The review is bound to the exact head commit.
- Nothing runs until a maintainer approves that commit (
/yomorai approve <sha>, the check-run button, the dashboard or the CLI). A new push invalidates the approval. (A local CLI review goes through the same approval step, with you recorded as the approver of the commit.) - The production and preview deployments are discovered and checked.
- The pull request's intent and affected routes are inferred from its diff, description and the route map (with a model, if you configure one).
- Scenarios are planned and run in preview, then twice in production — which is read-only: requests that could change data are blocked.
- Evidence is compared deterministically; a model may describe and propose, a fixed gate decides each classification.
- One check run and one comment are published for that commit, never for a stale one. Evidence is stored content-addressed and write-once.
Install
Requires Node 26.12 or newer.
npx yomorai install-browser # once: the Chromium build its Playwright expects
npx yomorai review --production https://www.example.com --preview https://preview.example.com --routes /,/pricing
echo $? # 0 clean, 1 regressions found, 2 configuration or input error, 3 incomplete
Local servers work too (http://localhost:4173). With GITHUB_TOKEN set,
--pr 42 --repo owner/name reads the pull request so intended changes can be
told from regressions. npx yomorai init writes a starter configuration;
docs/quick-start.md walks through it and the output,
and docs/cli.md lists every command.
For coding agents (MCP)
Or add it to any MCP client's configuration:
{
"mcpServers": {
"yomorai": { "command": "npx", "args": ["-y", "yomorai", "mcp"] }
}
}
The agent serves a baseline and a changed build and calls verify_change to
see what its change did to the page, then fixes and calls it again. Tools and
safety: docs/mcp.md. Agents working on this repository:
AGENTS.md.
On every pull request
GitHub Action, reviewing two deployed URLs on the runner (all inputs):
on: pull_request
jobs:
yomorai:
runs-on: ubuntu-latest
steps:
- uses: shashikanth-a/yomorai@v0.0.2
with:
mode: local
production-url: https://www.example.com
preview-url: https://pr-${{ github.event.number }}.example.com
Any other CI (GitLab, Jenkins, Buildkite): the Docker image has the CLI and Chromium ready:
docker run --rm ghcr.io/shashikanth-a/yomorai yomorai review --production https://www.example.com --preview https://pr-42.example.com
In GitLab CI, for example:
yomorai:
image: ghcr.io/shashikanth-a/yomorai:0.0.2
script:
- yomorai review --production https://www.example.com --preview "https://mr-$CI_MERGE_REQUEST_IID.example.com"
Self-hosted on Cloudflare: a GitHub App, reviews on Workers, Durable
Objects and Browser Run, a dashboard. It deploys from a clone of this
repository: node apps/cli/src/bin.ts init --cloudflare walks through the
installation (docs/self-hosting.md). Several teams,
each with their own Cloudflare account, each run their own deployment
(Several teams).
From a clone (contributors)
Requires Node 26 and pnpm 10.
git clone https://github.com/shashikanth-a/yomorai && cd yomorai
pnpm install
pnpm exec playwright install chromium
pnpm tsx scripts/review-variant.ts functional-regression # a full review of a bundled sample variant, about 15 s
pnpm verify # everything CI checks, about 7 minutes
CONTRIBUTING.md covers the rest.
What runs where
| Where | What |
|---|---|
| Your machine or CI runner | The CLI (yomorai review), the MCP server and the GitHub Action's local mode: the same engine with local Chromium, SQLite and an evidence folder. |
| Your Cloudflare account | The optional deployment: one Worker (webhooks, API, dashboard), a Workflow per review, a Durable Object per repository and per installation, Browser Run, D1, R2, Workers AI, and a container for Lighthouse. |
| Third parties you choose | GitHub (your GitHub App), model providers you configure (none by default), a trace destination you configure (none by default). |
No Yomorai-operated service exists, and nothing is sent anywhere you did not configure.
Documentation
docs/README.md is the index: quick start, concepts,
configuration reference, CLI, MCP server, GitHub Action, self-hosting,
architecture, security model, providers, observability, verification,
troubleshooting and status.
Status and limitations in brief
- Implemented and tested locally: the engine, the CLI, the MCP server, the coordinator and budget protocols (also checked against TLA+ models), the production guard, the classification gate, storage and audit chain.
- Implemented but not yet run in the Cloudflare runtime: the Worker's Workflows, Durable Objects, Browser Run, D1/R2 bindings and the Lighthouse container. Their logic is tested in Node against look-alike bindings.
- Not yet verified against live model providers: model adapters are tested against recorded response shapes only.
- Notable gaps: human-assisted sign-in is unavailable on the deployment; origins are exact (no patterns), which blocks per-deployment preview hostnames such as Cloudflare Pages'; an authenticated scenario runs in only one environment. The full list is in docs/status.md.
Contributing and security
See CONTRIBUTING.md and SECURITY.md. The threat model is in docs/security/threat-model.md.
Licence
MIT — see LICENSE.
yomorainpm install yomorai