DevAnvil

Plataforma para desenvolvedores sem dependências e 100% offline, que disponibiliza 16 ferramentas MCP (stdio e Streamable HTTP) para varredura de segredos/SARIF, detecção de divergências em arquivos .env, conversão de OpenAPI para mocks e detecção de divergências em contratos, auditoria de JWT, expressões regulares seguras contra ReDoS, análise de SQL EXPLAIN, identificação de impressões digitais em logs, decodificação de wire format do Protobuf, inspeção de certificados TLS e conversão entre XML/YAML/TOML/JSON.

Documentação

English · العربية

DevAnvil — Zero-Dependency Local Developer Studio & CLI

Live Playground npm GitHub Release Zero Runtime Deps

CI Node.js 20+ TypeScript Strict Tests Passing MCP Server DevAnvil MCP server License: MIT Offline First

Stop pasting production JWTs, .env secrets, OpenAPI specs, SSL certs, SQL query plans, Protobuf binaries, and logs into ad-filled websites.
DevAnvil v2.1 is the sovereign, self-hosted, zero-runtime-dependency, 100% offline developer platform combining 18 high-craft studios + 16-tool AI Agent MCP Server + OpenAPI Contract Drift & Traffic Recorder + OAuth2 PKCE & Protobuf Wire Inspector + Chained API Test Runner + HTTP Load Benchmarker (with CI Thresholds) + Worker+VM Plugin Sandbox in one runtime.

Try Live Demo · Quickstart · MCP Server · Studio Gallery · 18 Studios · Benchmarks · CLI & Examples · Security · Roadmap


DevAnvil Interactive CLI & Studio Walkthrough

Why DevAnvil?

Developers routinely juggle 15+ browser tabs and heavy Electron apps for JWT inspection, JSON/YAML conversion, Regex debugging, API testing, OpenAPI mocking, Webhook catching, Secret redaction, and LLM token budgeting—often leaking sensitive company data to third-party websites.

Static browser toolkits cannot bypass CORS, cannot run a real HTTP Mock server, cannot stream live Webhooks over SSE, and cannot act as CI gates. DevAnvil solves all of it with 0 runtime npm dependencies.

CapabilityDevAnvil v2.1Static Dev-Tool SitesCyberChefCloud API Clients
Zero runtime npm dependenciesYes (0)NoNoNo
100% Offline & Zero TelemetryYesVariesYesNo (cloud/login)
Built-In AI Agent MCP Server (16 Tools)Yes (devanvil mcp)NoNoNo
OpenAPI Contract Drift + Traffic RecorderYes (devanvil drift)NoNoPaid / Separate
OAuth 2.0/OIDC PKCE + Protobuf Wire DecoderYes (pkce / proto)NoNoNo
HTTP Load Benchmarker (RPS + P95/P99 + CI Gates)Yes (devanvil load)NoNoPaid / Separate
SQL EXPLAIN ANALYZE Visualizer (Postgres & SQLite)Yes (devanvil explain)NoNoNo
Structured Log Analyzer & Error FingerprintingYes (devanvil logs)NoNoNo
Zero-Trust Worker+VM Local Plugin APIYes (48MB/500ms)NoNoUnsafe / None
Git-Native devanvil.json + {{env.VAR}} + .anvil AES-256Yes (--workspace)NoNoCloud / Paid
CLI Collection Runner + Request Chaining + JUnit XMLYes (devanvil run)NoNoHeavy (Newman)
TLS/X.509 Inspector + GraphQL + RFC 6455 WebSocketYes (Zero Deps)NoNoPartial
Full-Repo & --staged Secret Scanner + SARIF + .devanvilignoreYes (Web + CI Gate)NoNoNo
SSRF + DNS-Pinning + Strict CSP + Slowloris DefenseYesN/AN/AVaries

30-Second Quickstart

Option 1: Instant Run via npx or Global npm (Node.js 20+)

npx devanvil serve
# or install globally:
npm install -g devanvil && devanvil serve

Option 2: Homebrew (macOS / Linux)

brew install abd77o/tap/devanvil
devanvil serve

Option 3: Try Instantly in Your Browser (Zero Install)

👉 Open DevAnvil Live Playground — 100% client-side, zero network calls, zero login.

Option 4: 1-Line Standalone Binary (SHA-256 Verified) or Docker (read_only + cap_drop: ALL)

curl -fsSL https://raw.githubusercontent.com/abd77o/devanvil/main/install.sh | bash
# or Docker:
git clone https://github.com/abd77o/devanvil.git && cd devanvil && docker compose up -d

Tip: npx devanvil serve / npm install -g devanvil / brew install abd77o/tap/devanvil is ~200 KB and runs instantly with zero OS prompts. Standalone Node SEA binaries (~75–100 MB) are unsigned community builds — on macOS/Windows you may see a standard Gatekeeper/SmartScreen prompt on first run (every binary is verified fail-closed against its .sha256 checksum by install.sh / install.ps1).

Open http://127.0.0.1:4321 — press ⌘K / Ctrl+K to jump across all 18 studios, press ⌘Enter / Ctrl+Enter to run the active studio action, or deep-link directly via URL hash (e.g. /#jwt-studio, /#data-studio). Need HTTP MCP transport? Send JSON-RPC 2.0 to POST http://127.0.0.1:4321/mcp (Streamable HTTP) or run devanvil mcp over stdio. Want Git-native persistence for your team's Collections, Environments & Mock routes? Run devanvil serve --workspace ./devanvil.json (use {{env.SECRET}} or gitignored devanvil.local.json to keep secrets out of Git!).


AI Agent MCP Server

Give Claude Code, Claude Desktop, Cursor, or Windsurf 16 blazing-fast offline tools (Secret Scanner + SARIF, .env Drift Validator, OpenAPI -> Mock, OpenAPI Contract Drift Detector, Protobuf Wire Decoder, JWT Audit, X.509 Certificate Inspector, SQL EXPLAIN Analyzer, Log Fingerprinting, ReDoS-safe Regex VM, Data Converter, Semantic JSON Diff, LLM Token Estimator, UUIDv7/ULID Generator, and Cron Explainer) with zero dependencies:

# Claude Code (1-line setup)
claude mcp add devanvil -- devanvil mcp

Or drop this into your Claude Desktop / Cursor / Windsurf MCP JSON config:

{
  "mcpServers": {
    "devanvil": {
      "command": "devanvil",
      "args": ["mcp"]
    }
  }
}

Studio Gallery

1. OpenAPI 3.x / Swagger -> Instant Live Mock Server

Paste any YAML/JSON OpenAPI spec, resolve $ref schemas safely, and mount every endpoint live to /mock/* in one click.

DevAnvil OpenAPI to Live Mock Server Studio

2. Offline Secret & .env Guard (18 Providers + 1-Click Redactor)

Detect leaked credentials & high-entropy keys completely offline, redact logs before sharing, and catch missing .env variables vs .env.example.

DevAnvil Offline Secret Scanner and .env Guard Studio

3. Offline LLM Token, Cost & Context Budget Studio

Estimate BPE tokens across English, Arabic, CJK & code for Claude, GPT, Gemini & Llama — and strip redundant tokens offline.

DevAnvil Offline LLM Token and Context Budget Studio

18 Built-In Studios

Network, API & Contracts

  1. API Studio — CORS-free HTTP/HTTPS client with DNS/TTFB/Total timings, {{VAR}} & {{env.SECRET}} interpolation, Record response -> Live /mock/*, auto Traffic Recording, Live SSE Stream Tester (with TTFT), Auth Helper, Save-to-Collection, cURL importer, and 4-language codegen.
  2. Workspaces, Import & MCP — Git-native devanvil.json Collections & Environments manager with Workspace Secret Audit, gitignored devanvil.local.json overrides, AES-256-GCM .anvil Encrypted Backups, Visual Assertions & Request Chaining Builder (devanvil run --junit), Postman v2.1 / HAR 1.2 / .http Importer, and copy-ready 16-Tool MCP configs.
  3. Contract, Auth & Protobuf (New in v2.1!) — OpenAPI Contract Drift Detector (breaking vs warning drift + 0–100 score + devanvil drift), Live Traffic Recorder -> Inferred OpenAPI 3.0.3 / Mocks / Collection, OAuth 2.0 / OIDC PKCE (S256) Debugger (devanvil pkce), and Zero-Dep Protobuf Binary Wire Decoder + .proto Schema Mapper (devanvil proto).
  4. TLS, GraphQL & WebSocket — X.509 / SSL Certificate Inspector (offline PEM + live SSRF-guarded TLS handshake), GraphQL Studio (queries, variables & 1-click Schema Introspection), and zero-dependency RFC 6455 WebSocket Live Tester.
  5. Mock & Live SSE Webhooks — Dynamic Mock API server (/mock/*) with :param routes, custom latency/headers, template interpolation, plus a real-time SSE Webhook Inspector (/hook/:channel) with 1-click Replay -> API Studio.
  6. OpenAPI -> Instant Mock Server — Parse OpenAPI 3.x / Swagger 2.0 YAML/JSON specs, resolve $ref schemas safely, and mount every route live at /mock/* in one click.

Performance, Database & Extensibility

  1. Load Bench & SQL Explain — Concurrent HTTP Load & Latency Benchmarker (RPS, P50/P90/P95/P99, Histogram, Baseline Regression Diff & CI Threshold Gates --max-p95/--min-rps) + PostgreSQL & SQLite EXPLAIN ANALYZE Visualizer with heat bars and automated bottleneck detection.
  2. Log Analyzer & Plugins — NDJSON / Server Log Analyzer (UUID/IP/duration error fingerprinting, P50/P95/P99 latency & leaked secret detection) + Hardened Zero-Trust Worker+VM Local Plugin Engine (~/.devanvil/plugins, in-browser code editor, 48MB heap cap, 500ms hard terminate).

Security & Identity

  1. JWT Studio — Decode, automated JWT Security Audits, sign & verify HS256/384/512, RS256, ES256, and generate local RSA/EC keypairs.
  2. Secret & .env Guard — 18 provider patterns + Shannon entropy + sequential alphabet filtering + .devanvilignore + devanvil-ignore + devanvil scan --staged --sarif + .env drift validator.
  3. Crypto, Encoding & IDs — AES-256-GCM, SHA/BLAKE2/HMAC, CSPRNG Password Studio, batch UUIDv7 / UUIDv4 / ULID / NanoID / API Keys, and 10 codecs.

Data, Code & Ops

  1. Data Studio — Bidirectional JSON ↔ YAML ↔ TOML ↔ CSV ↔ Query, Interactive JSON Tree Explorer (1-click Copy JSONPath), TypeScript & JSON Schema codegen, JSONPath, and SQL Formatter.
  2. Diff Studio — Prefix/suffix-trimmed LCS line diff + order-independent Semantic JSON Structural Diff.
  3. Regex & ReDoS Lab — Highlighted matches, named groups, static ReDoS check, and isolated 250ms node:vm sandbox.
  4. Pipeline Lab ("Recipes") — Chain up to 25 steps across 31 operations with starter recipes and trace.
  5. LLM Token & Context Budget Studio — Offline BPE-calibrated multi-script tokenizer, cost gauges & Smart Context Compactor.
  6. Cron & Time Studio — Jump-optimized 5/6-field Cron parser + auto-detecting Epoch ↔ ISO-8601 ↔ RFC-2822 converter.
  7. Network, Chmod & Color — IPv4 CIDR subnet calculator, Linux chmod matrix, WCAG 2.1 color contrast checker & HTTP Status reference.

Performance Benchmarks

Measured locally on Node.js v20.20.2 with zero runtime dependencies. Reproduce anytime via npm run bench:

OperationThroughput (Ops/sec)Avg Latency
RFC 9562 UUIDv7 generation272,389 /s3.7 µs
SQL EXPLAIN Plan + Bottleneck Analyzer124,901 /s8.0 µs
Postman v2.1 Import -> Requests + Mocks61,237 /s16.3 µs
Secret Scanner + Redaction (18 rules + entropy)52,100 /s19.2 µs
MCP JSON-RPC Tool Call (UUIDv7 batch)46,814 /s21.4 µs
JWT HS256 cryptographic verify (timing-safe)45,961 /s21.8 µs
JSON -> YAML conversion22,025 /s45.4 µs
OpenAPI 3.0 YAML -> Mock synthesis17,226 /s58.1 µs
Semantic JSON Structural Diff17,136 /s58.4 µs
Cron next-5 (sparse leap-day 0 0 29 2 *)13,899 /s71.9 µs
3-step Data Pipeline (trim -> sort -> yaml)11,348 /s88.1 µs
Structured Log Fingerprinting (20 lines)6,981 /s143.3 µs
1,500-line LCS Diff (prefix/suffix optimized)4,042 /s247.4 µs
VM-guarded Regex match + ReDoS analysis1,497 /s668.1 µs
Live HTTP Mock Endpoint (/mock/health)1,287 /s777.0 µs

Static UI assets are served from an in-memory cache with SHA-256 ETag (304 Not Modified) and pre-compressed Gzip.


CLI and Examples

Explore the ready-to-run files in examples/:

# 1. Start Local Studio with Git-native workspace persistence (Collections + Envs + Mocks)
devanvil serve --workspace ./devanvil.json

# 2. Run API Collection Tests with Request Chaining, Assertions & JUnit XML (0-dep Newman!)
devanvil run ./devanvil.json --env Staging --junit test-results.xml

# 3. Concurrent HTTP Load & Latency Benchmark (0-dep k6-lite: RPS, P50/P90/P95/P99 & Histogram)
devanvil load https://httpbin.org/get -c 10 -n 100

# 4. Analyze PostgreSQL EXPLAIN JSON or SQLite Query Plan for bottlenecks & missing indexes
devanvil explain query-plan.json

# 5. Analyze NDJSON/Server Logs (Error Fingerprinting + P95 latency + Secret leak check)
cat app.log | devanvil logs

# 6. Scaffold & run Zero-Trust VM Sandboxed Local Plugins (~/.devanvil/plugins)
devanvil plugins scaffold my-tool
devanvil plugins run my-tool "hello\nworld"

# 7. Inspect SSL/TLS certificates (live domain OR local .pem file)
devanvil tls example.com

# 8. Run DevAnvil as a zero-dependency MCP Server (16 tools) for Claude Code / Cursor / Windsurf
devanvil mcp

# 9. Scan Git staged changes (pre-commit) or full repo -> SARIF 2.1.0
devanvil scan --staged
devanvil scan . --sarif > devanvil-secrets.sarif

# 10. Import Postman v2.1, browser HAR 1.2, or .http files -> devanvil.json workspace
devanvil import postman collection.json --out devanvil.json

# 11. Spin up a live Mock API server straight from an OpenAPI YAML spec
devanvil openapi examples/petstore-openapi.yaml --serve --port 4321

Architecture

DevAnvil Clean 4-Layer Architecture

See docs/architecture.md for full details.


Security by Design

Verified continuously by our dedicated adversarial security & integration test suite (tests/ — 74/74 tests passing). Full threat model & authentication guide in SECURITY.md.

  • Zero Runtime Dependencies ("dependencies": {}): npm audit reports 0 vulnerabilities and zero transitive supply-chain surface.
  • Loopback-First, DNS-Rebinding & Optional Token Auth: Binds 127.0.0.1 by default, enforces a strict Host allowlist (--allow-host) and Origin guard across all /api/* and /mcp routes (including GET), isolates host process.env from HTTP {{env.*}} interpolation by default (--allow-process-env / --env-allow), and supports constant-time Bearer / X-DevAnvil-Token auth (--auth-token auto / DEVANVIL_AUTH_TOKEN) for LAN or Docker deployments.
  • SSRF & Socket IP-Pinning Guard: Blocks loopback, RFC1918, 169.254.169.254 (Cloud IMDS), CGNAT, NAT64, IPv4-mapped IPv6, and non-HTTP schemes by default; pins validated IPs on sockets; strips Authorization/Cookie on cross-origin redirects.
  • Strict CSP & Zero innerHTML: Served with default-src 'self'; script-src 'self'; object-src 'none' — zero inline scripts, zero external CDNs, zero unsafe DOM sinks.
  • Prototype Pollution & Circular $ref Defense: Null-prototype parsers across API/config/OpenAPI/.env inputs; data converters block __proto__ while safely preserving legitimate constructor/prototype own keys.
  • ReDoS, Zip-Bomb, Slowloris & Recorder Redaction: Every built-in secret regex is verified ReDoS-safe; user regex runs inside an isolated node:vm 250ms sandbox; decompression capped at 10 MB; strict HTTP timeouts; Traffic Recorder truncates & scrubs secrets in both request and response bodies.

Roadmap & Contributing

Check out our Public Roadmap and open good first issue tickets! Contributions of new studios, benchmarks, docs, and security audits are warmly welcome — see CONTRIBUTING.md.

DevAnvil Official Emblem
If DevAnvil replaces 15 browser tabs and keeps your secrets off random websites, give it a ★ Star!

License

Released under the MIT License © 2026 abd77o.