DevAnvil
Zero-dependency, 100% offline developer platform exposing 16 MCP tools (stdio & Streamable HTTP) for secret/SARIF scanning, .env drift, OpenAPI-to-Mock & contract drift, JWT audit, ReDoS-safe regex, SQL EXPLAIN analysis, log fingerprinting, Protobuf wire decoding, TLS cert inspection & XML/YAML/TOML/JSON conversion.
Dokümantasyon
English · العربية
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
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.
| Capability | DevAnvil v2.1 | Static Dev-Tool Sites | CyberChef | Cloud API Clients |
|---|---|---|---|---|
| Zero runtime npm dependencies | Yes (0) | No | No | No |
| 100% Offline & Zero Telemetry | Yes | Varies | Yes | No (cloud/login) |
| Built-In AI Agent MCP Server (16 Tools) | Yes (devanvil mcp) | No | No | No |
| OpenAPI Contract Drift + Traffic Recorder | Yes (devanvil drift) | No | No | Paid / Separate |
| OAuth 2.0/OIDC PKCE + Protobuf Wire Decoder | Yes (pkce / proto) | No | No | No |
| HTTP Load Benchmarker (RPS + P95/P99 + CI Gates) | Yes (devanvil load) | No | No | Paid / Separate |
| SQL EXPLAIN ANALYZE Visualizer (Postgres & SQLite) | Yes (devanvil explain) | No | No | No |
| Structured Log Analyzer & Error Fingerprinting | Yes (devanvil logs) | No | No | No |
| Zero-Trust Worker+VM Local Plugin API | Yes (48MB/500ms) | No | No | Unsafe / None |
Git-Native devanvil.json + {{env.VAR}} + .anvil AES-256 | Yes (--workspace) | No | No | Cloud / Paid |
| CLI Collection Runner + Request Chaining + JUnit XML | Yes (devanvil run) | No | No | Heavy (Newman) |
| TLS/X.509 Inspector + GraphQL + RFC 6455 WebSocket | Yes (Zero Deps) | No | No | Partial |
Full-Repo & --staged Secret Scanner + SARIF + .devanvilignore | Yes (Web + CI Gate) | No | No | No |
| SSRF + DNS-Pinning + Strict CSP + Slowloris Defense | Yes | N/A | N/A | Varies |
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/devanvilis ~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.sha256checksum byinstall.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.
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.
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.
18 Built-In Studios
Network, API & Contracts
- 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. - Workspaces, Import & MCP — Git-native
devanvil.jsonCollections & Environments manager with Workspace Secret Audit, gitignoreddevanvil.local.jsonoverrides, AES-256-GCM.anvilEncrypted Backups, Visual Assertions & Request Chaining Builder (devanvil run --junit), Postman v2.1 / HAR 1.2 /.httpImporter, and copy-ready 16-Tool MCP configs. - 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 +.protoSchema Mapper (devanvil proto). - 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.
- Mock & Live SSE Webhooks — Dynamic Mock API server (
/mock/*) with:paramroutes, custom latency/headers, template interpolation, plus a real-time SSE Webhook Inspector (/hook/:channel) with 1-click Replay -> API Studio. - OpenAPI -> Instant Mock Server — Parse OpenAPI 3.x / Swagger 2.0 YAML/JSON specs, resolve
$refschemas safely, and mount every route live at/mock/*in one click.
Performance, Database & Extensibility
- 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. - 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
- JWT Studio — Decode, automated JWT Security Audits, sign & verify HS256/384/512, RS256, ES256, and generate local RSA/EC keypairs.
- Secret &
.envGuard — 18 provider patterns + Shannon entropy + sequential alphabet filtering +.devanvilignore+devanvil-ignore+devanvil scan --staged --sarif+.envdrift validator. - 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
- Data Studio — Bidirectional JSON ↔ YAML ↔ TOML ↔ CSV ↔ Query, Interactive JSON Tree Explorer (1-click Copy JSONPath), TypeScript & JSON Schema codegen, JSONPath, and SQL Formatter.
- Diff Studio — Prefix/suffix-trimmed LCS line diff + order-independent Semantic JSON Structural Diff.
- Regex & ReDoS Lab — Highlighted matches, named groups, static ReDoS check, and isolated 250ms
node:vmsandbox. - Pipeline Lab ("Recipes") — Chain up to 25 steps across 31 operations with starter recipes and trace.
- LLM Token & Context Budget Studio — Offline BPE-calibrated multi-script tokenizer, cost gauges & Smart Context Compactor.
- Cron & Time Studio — Jump-optimized 5/6-field Cron parser + auto-detecting Epoch ↔ ISO-8601 ↔ RFC-2822 converter.
- Network, Chmod & Color — IPv4 CIDR subnet calculator, Linux
chmodmatrix, 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:
| Operation | Throughput (Ops/sec) | Avg Latency |
|---|---|---|
| RFC 9562 UUIDv7 generation | 272,389 /s | 3.7 µs |
| SQL EXPLAIN Plan + Bottleneck Analyzer | 124,901 /s | 8.0 µs |
| Postman v2.1 Import -> Requests + Mocks | 61,237 /s | 16.3 µs |
| Secret Scanner + Redaction (18 rules + entropy) | 52,100 /s | 19.2 µs |
| MCP JSON-RPC Tool Call (UUIDv7 batch) | 46,814 /s | 21.4 µs |
| JWT HS256 cryptographic verify (timing-safe) | 45,961 /s | 21.8 µs |
| JSON -> YAML conversion | 22,025 /s | 45.4 µs |
| OpenAPI 3.0 YAML -> Mock synthesis | 17,226 /s | 58.1 µs |
| Semantic JSON Structural Diff | 17,136 /s | 58.4 µs |
Cron next-5 (sparse leap-day 0 0 29 2 *) | 13,899 /s | 71.9 µs |
3-step Data Pipeline (trim -> sort -> yaml) | 11,348 /s | 88.1 µs |
| Structured Log Fingerprinting (20 lines) | 6,981 /s | 143.3 µs |
| 1,500-line LCS Diff (prefix/suffix optimized) | 4,042 /s | 247.4 µs |
| VM-guarded Regex match + ReDoS analysis | 1,497 /s | 668.1 µs |
Live HTTP Mock Endpoint (/mock/health) | 1,287 /s | 777.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
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 auditreports 0 vulnerabilities and zero transitive supply-chain surface. - Loopback-First, DNS-Rebinding & Optional Token Auth: Binds
127.0.0.1by default, enforces a strictHostallowlist (--allow-host) andOriginguard across all/api/*and/mcproutes (includingGET), isolates hostprocess.envfrom HTTP{{env.*}}interpolation by default (--allow-process-env/--env-allow), and supports constant-time Bearer /X-DevAnvil-Tokenauth (--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; stripsAuthorization/Cookieon cross-origin redirects. - Strict CSP & Zero
innerHTML: Served withdefault-src 'self'; script-src 'self'; object-src 'none'— zero inline scripts, zero external CDNs, zero unsafe DOM sinks. - Prototype Pollution & Circular
$refDefense: Null-prototype parsers across API/config/OpenAPI/.envinputs; data converters block__proto__while safely preserving legitimateconstructor/prototypeown keys. - ReDoS, Zip-Bomb, Slowloris & Recorder Redaction: Every built-in secret regex is verified ReDoS-safe; user regex runs inside an isolated
node:vm250ms 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.
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.