Skip to main content
Glama

English · العربية

Live Playground npm GitHub Release Zero Runtime Deps

CI Node.js 20+ TypeScript Strict Tests Passing 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


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


Related MCP server: mcp-security-toolkit

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"]
    }
  }
}

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

  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:

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 (14 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/ — 50/50 tests passing). Full threat model in SECURITY.md.

  • Zero Runtime Dependencies ("dependencies": {}): npm audit reports 0 vulnerabilities and zero transitive supply-chain surface.

  • SSRF & DNS-Rebinding 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 JSON, YAML, TOML, CSV, QueryString, JSONPath, OpenAPI & .env.

  • ReDoS, Zip-Bomb & Slowloris Guards: 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 (headersTimeout, requestTimeout, maxHeadersCount).


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.


License

Released under the MIT License © 2026 abd77o.

Available Tools

16 tools
devanvil_analyze_logsA

Analyze NDJSON/JSONL or text application/server logs offline: level breakdown, HTTP status classes, latency P50/P95/P99, deduplicated error fingerprints, and leaked secret count.

Inputs: input (required).

devanvil_check_contract_driftA

Validate a real API response (method, path, HTTP status, JSON body) against an OpenAPI 3.x / Swagger 2.0 contract to detect breaking schema drift, missing required fields, type/enum/format mismatches, and undocumented fields.

Inputs: body (required), path (required), spec (required), method (required), +1 more.

devanvil_check_envB

Validate a .env file for duplicate keys, unquoted spaces, syntax errors, and missing keys compared to .env.example.

Inputs: env (required), example.

devanvil_convert_dataB

Convert structured data between json, yaml, toml, csv, xml, query, typescript interfaces, and json-schema offline.

Inputs: to (required), from (required), input (required).

devanvil_cron_explainA

Describe a 5-field or 6-field Cron expression in plain English and compute the next UTC scheduled runs.

Inputs: expression (required), count.

devanvil_decode_protobufA

Decode raw Protobuf binary wire payloads (hex or base64) offline without external tools, with optional .proto schema mapping for named fields and ZigZag/float/double/nested message decoding.

Inputs: input (required), messageName, protoSchema.

devanvil_explain_sqlB

Analyze PostgreSQL EXPLAIN (ANALYZE, FORMAT JSON) or SQLite EXPLAIN QUERY PLAN output offline to compute exclusive node times and detect bottlenecks (Seq Scan, Disk Sort, Cardinality Drift).

Inputs: input (required).

devanvil_generate_idA

Generate CSPRNG identifiers offline: RFC 9562 sortable UUIDv7, UUIDv4, ULID, NanoID, or prefixed API keys.

Inputs: kind (required), count, prefix.

devanvil_inspect_certA

Inspect one or more PEM-encoded X.509 SSL/TLS certificates completely offline (subject, issuer, SANs, expiry, warnings, SHA-256 fingerprint).

Inputs: pem (required).

devanvil_jwt_auditA

Decode a JWT offline, run an automated security audit (alg:none, missing exp, expired, sensitive claims), and optionally verify HS/RS/ES signature.

Inputs: token (required), algorithms, secretOrKey.

devanvil_llm_tokensA

Estimate offline BPE tokens & multi-model API costs across English/Arabic/CJK/code, and optionally compact redundant whitespace/comments.

Inputs: input (required), compact, stripLineComments.

devanvil_openapi_to_mocksA

Parse an OpenAPI 3.x / Swagger 2.0 YAML or JSON spec (circular-$ref safe) and synthesize realistic Mock routes and cURL snippets.

Inputs: spec (required).

devanvil_regex_testA

Analyze a regular expression for catastrophic ReDoS risk statically and execute it inside an isolated 250ms node:vm sandbox.

Inputs: text (required), pattern (required), flags.

devanvil_scan_directoryB

Recursively scan a local directory for leaked secrets (respects .gitignore, skips binaries/node_modules) and optionally return SARIF 2.1.0.

Inputs: directory (required), sarif.

devanvil_scan_secretsA

Scan text, code, diffs, or logs offline for leaked secrets (18 provider rules + Shannon entropy) and return safe redacted output.

Inputs: input (required), checkHighEntropy.

devanvil_semantic_diffA

Compute order-independent Semantic JSON Structural Diff or line-by-line LCS diff between two payloads.

Inputs: left (required), right (required), mode.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 16 tools

    Disambiguation4/5

    Each of the 16 tools has a clearly differentiated purpose, and the descriptions make the boundaries readable. The only mild overlaps are devanvil_scan_secrets vs devanvil_scan_directory (both secret scanning, differentiated only by input source) and the two OpenAPI tools (mock generation vs contract drift), plus analyze_logs reporting secret counts.

    Naming Consistency4/5

    All names share a consistent devanvil_ prefix in snake_case, which is very predictable. The only deviation is the verb pattern: some are verb_noun (check_env, scan_secrets, generate_id, decode_protobuf) while others are noun-based (jwt_audit, semantic_diff, regex_test, llm_tokens), but this is minor and still readable.

    Tool Count4/5

    Sixteen tools is at the upper edge of a comfortable set, but this is a deliberate multi-purpose dev toolbox where each entry is a genuinely distinct utility. No tool feels like filler or a duplicate of another, so the count is justified by the breadth of the domain.

    Completeness4/5

    For a grab-bag developer utility server, coverage is broad and each function appears self-contained: env validation, data conversion, secret scanning (text and directory with SARIF), JWT, regex, diffing, tokens, IDs, cron, certs, SQL, logs, contract drift, and protobuf. As a general-purpose toolbox it can never be exhaustively complete, but no obvious dead end stands out for the stated purpose.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A unified developer toolkit for AI-assisted workflows. Task timing, doc drift detection, env validation, secret scanning, port conflict resolution, AI context generation, and license auditing — one MCP server, one install.
      7
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      14 atomic MCP tools for AppSec and AI Security engineers: source/schema/prompt audit primitives, JWT inspect, HTTP diff, pentest atoms (default creds, GraphQL introspect, phpggc, interactsh OOB), and a defensive helpers library that fixes the bugs the detectors flag. SARIF output, PyPI Trusted Publishing with Sigstore provenance.
      14
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Provides deterministic developer utilities as MCP tools, including UUID/password generation, hashing, encoding, JWT decoding, cron scheduling, regex execution, and text analysis. Runs entirely locally with no network calls, telemetry, or API keys.
      20
      82 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      72 free, open-source (MIT) developer tools over a stateless, no-key MCP server: JSON/YAML/CSV conversion, PDF and image processing, JWT/hash/UUID utilities, DNS/TLS/HTTP checks, llms.txt and AI SEO checks, and more. Streamable HTTP with JSON responses.
      1
      MIT