Zero Cloud · Zero GPU · 0 Bytes External

Catch bugs
before the compiler does.

Resource leaks, null dereferences, and missing awaits caught in real time — entirely on your machine, with no server, no model, no latency.

Install VS Code Extension npm install -g bug0
0.1ms
Analysis latency
7,344
Deterministic rules
0
Bytes sent to cloud
11
Supported languages

15-second demo

Three bugs. One file. Fifteen seconds.

Open the file → red underlines appear instantly → Ctrl+. three times → all clean.

all_bugs_demo.ts
// TypeScript — all three detection classes in one file

async function fetchLeaderboard(apiUrl: string) {
  const response = fetch(apiUrl);⚠ await-missing
  const json = await (response as any).json();
  return json;
}

const USERS = [{ id: 1, name: "Alice", score: 92 }];

function getTopScore(userId: number) {
  return USERS.find(u => u.id === userId).score;✗ null-deref
}

function streamUpdates(url: string) {
  const ws = new WebSocket(url);✗ resource-leak
  return () => ws.close();  // only on happy path
}

After pressing Ctrl+. three times:

all_bugs_demo_fixed.ts — ✓ No bugs found
async function fetchLeaderboard(apiUrl: string) {
  const response = await fetch(apiUrl);✓ await added
  return await response.json();
}

function getTopScore(userId: number) {
  const user = USERS.find(u => u.id === userId);
  if (!user) return 0;✓ null guard
  return user.score;
}

function streamUpdates(url: string) {
  const ws = new WebSocket(url);
  ws.onerror = () => ws.close();✓ error-path close added
  return () => ws.close();
}

Detection Classes

Three classes. Zero false negatives.

Every pattern below is detected via deterministic rules — no heuristics, no machine learning, no guessing.

🔓

Resource Leak

Opened resource without a matching close on all execution paths. ΣQ invariant: every open must be balanced by a close.

malloc/free · fopen/fclose · socket/close · WebSocket · DB connections

error
💥

Null Dereference

Property or method access on a value that may be null or undefined — without a prior guard check.

array.find() · document.getElementById() · map.get() · string.match()

error
⏳

Missing Await

An async function called without await inside an async context — the Promise is never resolved before use.

fetch() · fs.readFile() · db.query() · sendMail() · 30+ async APIs

warning

Guarantee Scope

Honest about what it can and cannot do.

We make a narrow, verifiable guarantee — and we tell you exactly where it ends.

✅ 100% Deterministic Guarantee

  • Resource leaks — malloc/free, fopen/fclose, socket/close
  • Null/undefined dereference after nullable return
  • async contract violations (missing await)
  • Bracket and scope asymmetry (ΣQ ≠ 0)

❌ Outside Guarantee Scope

  • Business logic errors (wrong percentage, inverted condition)
  • Algorithmic semantic errors (sort direction, off-by-one)
  • Security vulnerabilities (SQL injection, XSS, CSRF)
  • Thread race conditions and lock ordering

Install

Up and running in 30 seconds.

No configuration. No API key. No sign-up.

VS Code Extension

Real-time inline diagnostics + one-click Ctrl+. repairs.

$ code --install-extension foruni.bug0

Or search Bug0 in the VS Code Extensions panel.

CLI (npm)

Static analysis in CI/CD pipelines and pre-commit hooks.

$ npm install -g bug0 $ bug0 src/

No install required

Run directly via npx — no global install needed.

$ npx bug0 src/main.ts

Privacy & Security

Your code never leaves your machine.

Every guarantee is verifiable — open the network tab and watch it stay empty.

🔒

Zero Network

Engine runs in a local WebAssembly sandbox. The VS Code extension requests zero network permissions.

📡

Zero Telemetry

No usage data, no analytics, no crash reports. Nothing is collected, ever.

🛡️

Encrypted Rules DB

The 7,344-rule database is AES-256-GCM encrypted at build time. Plain-text rules never ship.

⚙️

Hardened WASM

Built with -g0 -s ASSERTIONS=0 -s DYNAMIC_EXECUTION=0. No debug symbols. No eval.