NEXT.JS APP ROUTER (TS) · DETERMINISTIC CHECKS · READ-ONLY — NO CODE WRITE ACCESS

Catch AI API cost runaways and unprotected routes before merge.

Deterministic verification for three high-cost production failures that default GitHub scanning misses: unbounded LLM calls, unauthenticated AI route handlers, and client-bundle key leaks.

Hard cap: 100 files · 8s timeout · 0 disk retention
Sample reports:

DETERMINISTIC OUTPUT

Scan ReportSAMPLE

https://github.com/acme-labs/nextjs-ai-saas-starter

FINDINGS
3
SCANNED FILES
42 / 100
DURATION
sample
LOG SECRET LEAKS
0
OPEN_UNCERTAINTIES: middleware.ts detected at repository root — global route auth cannot be verified by single-file analysis.

ARCHITECTURE · POTETO INVERTED PYRAMID

Deterministic code first. Zero AI slop in your CI logs.

01 / PARSE

One deterministic engine, running in your browser

Repository scans and snippet previews run the same deterministic engine in your browser — structural checks over scopes, 'use client' directives, Route Handler exports, and SDK option nodes. Public scans never send code to our server, and every finding states what it could not verify.

02 / REDACT FIRST

Zero-retention secret masking

Every snippet passes maskSecrets() before serialization. Public repositories are scanned in memory with zero disk storage.

03 / WARN BEFORE BLOCK

Earn trust before Required Checks

Everything runs READ_ONLY_WARN today. A rule earns merge-gate status only after it stays below a 2% false-positive rate on an isolated corpus of known-good and known-bad code, measured per version and published with the rule. No rule has graduated yet.

VERIFICATION CONTRACT

What each check proves (and what it cannot)

A passing check establishes only what it exercised. Every rule discloses its exact blind spots alongside the finding.

RULE / CHECK OBSERVATION EXPLICIT LIMIT
OG-COST-01 Flags OpenAI / Anthropic / Gemini SDK calls missing an output-token cap (max_tokens, max_completion_tokens, max_output_tokens, maxOutputTokens — per SDK) or inside unbounded while/for loops and repeating timers. Cannot trace dynamic option wrappers or external AI gateway spend caps. Recursive agent-style calls and loops bounded by runtime conditions are not evaluated. Emitted as Warn-Only.
OG-AUTH-02 Flags app/api/**/route.ts handlers invoking paid AI SDKs without an auth or rate-limit guard call. Single-file analysis only. Confidence downgrades to MEDIUM when root middleware.ts exists. Verifies that a guard call is present before the paid call — not that its result is enforced; handlers defined in other files are not traced.
OG-KEY-03 Flags literal API key prefixes or server SDK imports inside 'use client' files and NEXT_PUBLIC_ vars. Skips .env.example and test/sample folders. Does not detect keys assembled from variables, obfuscated strings, or runtime-fetched credentials.
MASK-04 Verifies zero raw secrets appear in report JSON, evidence snippets, or runtime error logs. Covers standard provider prefixes (OpenAI, Anthropic, Google, GitHub, Bearer); custom internal formats require rules.
SURFACE GITHUB ACCESS REQUESTED
Public scanner (this page) None. Reads public repositories only; no installation, no token.
Snippet preview None. Runs entirely in your browser.
GitHub Action (PR scan) Contents: read · Pull requests: write (PR comments only, with a valid license). Runs inside your CI runner — your code never leaves it. No code write access is requested.

TRANSPARENT PRICING (USD)

Pick the plan that fits your shipping pace.

Flat per-organization pricing in USD. Paid plans are not on sale yet — join the waitlist and we email you when checkout opens. No card, no charge today.

Free

For one-off public repository diagnostics

$0
Forever free · No account required
Run Public Scanner

Included in Free:

  • ✓3 deterministic Week-1 rules
  • ✓Automatic secret masking in JSON output
  • ✓Up to 100 TypeScript files per scan

Team

For engineering teams enforcing merge gates

Not on sale yet · Flat org rate (no per-seat fee)

Everything in Pro, plus:

  • ✓Up to 2,000 PR scans / month per org
  • ✓Priority email support
  • ROADMAPOpt-in Required Check merge gates
  • ROADMAPOrg-wide custom policy config & audit export

INSTALL

One workflow file. That is the whole install.

BurnGate runs as a GitHub Action inside your own CI runner. Your code never leaves it.

# .github/workflows/burngate.yml
name: BurnGate
on: [pull_request]
permissions:
  contents: read
  pull-requests: write   # only needed for the PR comment
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }
      - uses: qkrtpal574-hub/burngate-action@v1
        with:
          license-key: ${{ secrets.BURNGATE_LICENSE_KEY }}

No license key? The scan still runs in your CI and you read the result in your workflow log. A PR comment is posted only with a valid license.

DESIGN PARTNER PROGRAM

Private repo Warn-Only pilot

We are onboarding 3–5 CTOs and engineering leads running Next.js + AI SDKs in production. Week 1 runs strictly read-only with zero merge blocking.

No credit card required during pilot validation.

Read-only pilot · 100% async via email/GitHub
Copied report JSON