Jev decides if this PR is risky or not.
Paste a public GitHub pull request URL and hit Analyze. One click fetches the PR dossier (title, body, diff, contributors) and runs a TypeSafe Jev systemOne judgment — risk bars, noul probabilities, and a verdict. No essays. No second button.
- Landing: one large URL field. Optional quiet sample chip.
- Analyze calls
POST /api/analyzewith the PR URL. - Success opens a split view — dossier on the left, judgment on the right.
- Failure stays on the landing screen with a clear error.
Large PRs are trimmed locally to fit Jev's ~32k/64k token limits; small PRs keep their full, unchanged context.
- Next.js 15 App Router + TypeScript + Tailwind
@typesafe-ai/sdk(TypeSafeClient.systemOne, modeljev-latest) — server-only viaPOST /api/analyze- Env:
TYPESAFE_API_KEY(never exposed to the browser) - Optional:
GITHUB_TOKENfor higher GitHub API rate limits when fetching public PRs
| Key | Type | Meaning |
|---|---|---|
risk |
Score | Overall merge risk |
review_depth |
Choice | skim / standard / deep |
needs_design |
Noul | Design discussion needed? |
needs_security |
Noul | Security review needed? |
merge_blocker |
Noul | Block merge until fixed? |
missing_tests |
Score | Test coverage gaps |
docs_debt |
Score | Documentation debt |
blast_radius |
Score | How wide a bug could spread |
verdict |
Choice | approve_with_nits / request_changes / block |
npm install
cp .env.example .env.local
# put your keys in .env.local — never commit them
# TYPESAFE_API_KEY=...
# GITHUB_TOKEN=... # optional; public unauthenticated API works
npm run dev
# open http://localhost:3000Production locally:
npm run build
npm run startFetches a public GitHub PR and runs Jev. No user OAuth. Unauthenticated GitHub requests by default; set GITHUB_TOKEN on the server for higher rate limits.
{ "url": "https://github.com/owner/repo/pull/123" }Response is { "pr": { ...dossier }, "review": { "answers", "model", "latency_ms", "usage" } }. Clear errors for invalid URL, 404/private, rate limits, and missing TYPESAFE_API_KEY.
Returns the anonymous successful-analysis count:
{ "analyzes": 42, "persistence": "volume" }The same count is displayed at /stats. DiffJury stores only this aggregate
counter; it does not store PR URLs or user identities.
- Create a new Railway service from this repo (Docker or Nixpacks).
- Set variable
TYPESAFE_API_KEYin the Railway service environment (same name as local). - Optionally set
GITHUB_TOKENfor higher PR-fetch rate limits. - Mount a Railway volume at
/datato persist the anonymous analyze count across deploys. Without it, DiffJury falls back to/tmpand reports"persistence": "temporary". - Railway injects
PORT; the Dockerfile and Nixpacks start command bind0.0.0.0. - Health:
GET /serves the UI.
Dockerfile — multi-stage Next.js standalone build (preferred if you select Docker). Its entrypoint makes /data writable, then drops to the unprivileged runtime user.
Nixpacks — nixpacks.toml uses Node 22, npm ci, npm run build, then next start -H 0.0.0.0 -p $PORT.
TYPESAFE_API_KEYandGITHUB_TOKENare read only fromprocess.envon the server.- Ship
.env.examplewith empty values; do not commit real keys. - No GitHub OAuth, analytics SDK, user identity store, or LLM fallback in v1.
- PR fetch only works for public repositories.
Demo app for TypeSafe Jev.