Repository navigation
Releases
DevAnvil v2.1.1 — Security & Stability Hardening
Security & Stability Patch Release (v2.1.1)
This release delivers all fixes from a full two-pass line-by-line security & stability audit across core engines, server/proxy, MCP server, CLI, 18 Studio UI modules, Browser Playground, and OS installers. All users of v2.1.0 and earlier are strongly recommended to upgrade.
Highlights
- SSRF & Network Hardening: Blocked extended reserved IP ranges (
TEST-NET-2/3,6to4,RFC 8215 NAT64,Discard,Teredo) & trailing-dot hostnames; rejected URL credentials in TLS/WS; capped WS buffer at2 MB; added upfront SSRF check in Load Benchmarker; strict RFC 7230/CRLF/NUL header validation. - Server, Mock & Persistence Hardening: Blocked Mock routes from overriding CSP/security/hop-by-hop headers; strict
NaN/type/prototype-key validation (asStringMap,/api/pipeline/run, PATCH mock);0o600atomic workspace saves; expanded recorder header redaction. - Sandbox, Parser, JWT & CLI Hardening: 4-worker plugin cap + symlink/
realpathcheck; disabled VM codegen; blocked JWTBEGIN CERTIFICATEHMAC confusion & overflow timestamps; eliminated prototype-chain lookups across Diff/Encoding/Cron/cURL/Contract-Drift/Protobuf; nesting depth caps in YAML/TOML/JSONPath; aligned SARIF rule IDs. - Studio UI, Playground & Installers: Fixed missing
.finding.fail/.finding.warnstyles, fixed UTF-8 Basic Auth encoding, guarded alllocalStorage& async UI handlers across all 18 studios, hardened browser Protobuf decoder, and enforced fail-closed SHA-256 verification ininstall.sh&install.ps1. - Verification:
61/61passing tests (15 suites),0runtime dependencies, clean secret scan.
Upgrade
npm install -g devanvil@latest
# or standalone binary (SHA-256 verified):
curl -fsSL https://raw.githubusercontent.com/abd77o/devanvil/main/install.sh | bashDevAnvil v2.1.0 — Contract, Auth & Wire Intelligence (18 Studios, 16 MCP Tools)
Security Notice: Older release — please upgrade to v2.1.1 for SSRF, CSP, JWT, parser, UI & installer SHA-256 security fixes (
npm install -g devanvil@latest).
DevAnvil v2.1.0 — Contract, Auth & Wire Intelligence
18 Offline Studios · 16 AI Agent MCP Tools · 50/50 Tests Passing · 198.1 kB · Zero Runtime Dependencies (dependencies: {})
What's New in v2.1.0
- OpenAPI Contract Drift Detector (
devanvil drift,POST /api/contract/check, MCP Tool #15, Studio #18):- Resolves
$ref/allOfschemas and validates live API responses against OpenAPI 3.x / Swagger contracts. - Flags breaking drift (
MISSING_REQUIRED_FIELD,TYPE_MISMATCH,ENUM_VIOLATION,UNDOCUMENTED_STATUS,NULLABLE_VIOLATION) and warnings (UNDOCUMENTED_FIELD,FORMAT_MISMATCH) with a 0–100 score and CI exit code1.
- Resolves
- Live API Traffic Recorder -> OpenAPI 3.0.3 / Mocks / Collection (
/api/recorder*, Studio #18):- Automatically captures proxied API Studio requests (redacting
Authorization,Cookie,X-API-Key->[REDACTED]) and exports them in 1 click as an inferred OpenAPI 3.0.3 Spec, Live/mock/*Routes, or a Workspace Collection.
- Automatically captures proxied API Studio requests (redacting
- OAuth 2.0 / OIDC PKCE (RFC 7636) Studio (
devanvil pkce, Studio #18):- Generates CSPRNG
code_verifier+S256code_challenge,state,nonce, and Authorization URLs. - Audits OAuth/OIDC callback URLs for CSRF
statemismatches, PKCE verification, implicit-flow warnings, and JWTid_tokennoncereplay checks.
- Generates CSPRNG
- Zero-Dependency Protobuf Binary Wire Decoder &
.protoMapper (devanvil proto, MCP Tool #16, Studio #18 + Browser Playground):- Decodes raw Hex/Base64 Protobuf binary payloads (
varint, ZigZagsint,fixed32/float,fixed64/double, UTF-8 & nested submessages) with optional.protoschema mapping.
- Decodes raw Hex/Base64 Protobuf binary payloads (
- Load Benchmarker CI Performance Thresholds (
devanvil load --max-p95 --min-rps --max-error-rate):- k6-style regression gates returning
thresholdsPassed/thresholdViolationsand CI exit code1on regressions.
- k6-style regression gates returning
Verification
- Tests: 50 / 50 passing (
0failures,0warnings) including adversarial Worker+VM escape, non-blocking concurrency, SSRF, ReDoS, and CLI E2E suites. - Self-Scan:
devanvil scan .->clean: true(82files,0findings). - Standalone SEA:
npm run build:seabundles 37 modules (471 KB) + embeds all 14 UI assets intodevanvil-sea.blob. - Live Browser Playground: https://abd77o.github.io/devanvil/
DevAnvil v2.0.0 — The Sovereign Developer Platform (17 Studios, 14 MCP Tools)
Security Notice: Older release — please upgrade to v2.1.1 for SSRF, CSP, JWT, parser, UI & installer SHA-256 security fixes (
npm install -g devanvil@latest).
DevAnvil v2.0.0 — The Sovereign Developer Platform
17 Offline Studios · 14 AI Agent MCP Tools · Zero Runtime Dependencies (dependencies: {}) · Strict CSP
Highlights
- HTTP Load & Latency Benchmarker (
devanvil load, Studio #16): SSRF/DNS-pinning guarded concurrent HTTP load tester measuring RPS, throughput (KB/s), P50/P90/P95/P99 latency, 6-bucket histogram, and Baseline Regression Diff. - PostgreSQL & SQLite
EXPLAIN ANALYZEVisualizer (devanvil explain, MCP Tool #13, Studio #16): Exclusive node heat tree + automated detection of Seq Scans, Disk Sorts, 10x+ Cardinality Drift & SQLite Temp B-Tree sorts (~125k plans/sec). - Structured Log & Error Fingerprint Analyzer (
devanvil logs, MCP Tool #14, Studio #17): NDJSON/Pino/Winston/Nginx log stats, UUID/IP/duration error deduplication, P50/P95/P99 latency & leaked secret detection. - Hardened Zero-Trust Local Plugin Engine (
~/.devanvil/plugins, Studio #17): Isolatednode:worker_threads+ no-codegennode:vmsandbox (primitive-only JSON boundaries blockingconstructor.constructorescapes, empty env, 48MB heap cap, hard terminate on 500ms timeout) + in-browser code editor & CRUD. - Collection Runner Request Chaining (
extract) + Visual Rules Builder: Extract JSONPath/header variables between steps indevanvil runand edit rules visually in Studio #2. - Modular Server + Standalone SEA Bundler (
npm run build:sea) + Reusable GitHub Action (docs/github-action/action.yml) + Homebrew Formula (docs/homebrew/devanvil.rb).
DevAnvil v1.3.0 — 15 Studios, Collection Runner, TLS/GraphQL/WebSocket & Secret Safety
DevAnvil v1.3.0 — Workspace Secret Safety, Collection Runner + JUnit XML, TLS/X.509, GraphQL & WebSocket
15 Studios · 12 Offline MCP Tools · 39/39 Tests Passing · 159.9 kB Packed · 0 Runtime Dependencies
Phase 1 — Production Polish & Gap Fixes
- Workspace Secret Safety:
{{env.VAR_NAME}}runtime interpolation keeps real secrets out of Git-committeddevanvil.json.- Gitignored companion
devanvil.local.jsonautomatically merges local secret overrides in memory only. - Built-in Workspace Secret Audit surfaces plaintext credential warnings directly inside Studio #14.
- AES-256-GCM Encrypted
.anvilBundles (export-encrypted/import-encrypted) for secure team sharing.
- Real-World Secret Scanner (
devanvil scan):devanvil scan --staged [--sarif]scans ONLY blobs staged in the Git index (wired intoexamples/pre-commit-secret-gate.sh).- Supports
.devanvilignore+ inlinedevanvil-ignore/devanvil-ignore-next-line. - Sequential charset/alphabet detection eliminates false positives on NanoID/Base64/Hex alphabets.
- GitHub Pages Live Playground Sync: Added Interactive JSON Tree Explorer & Postman/HAR/
.http->devanvil.json+ 12-Tool MCP Config right in the browser demo.
Phase 2 — Postman/Bruno & DevOps Parity
- API Collection Runner + Assertions + JUnit XML (
devanvil run): Zero-dependency Newman alternative executingdevanvil.jsonsuites withstatus,maxLatencyMs,headerContains,bodyContains, andjsonPathEqualsassertions +--junit report.xmlCI output. - Studio #15 — TLS / X.509 Inspector, GraphQL Studio & RFC 6455 WebSocket Tester:
- X.509 / TLS Inspector: Offline PEM parser (
crypto.X509Certificate), live SSRF-guarded TLS handshake probe (devanvil tls example.com), and MCP Tool #12 (devanvil_inspect_cert). - GraphQL Studio: Queries, JSON variables,
{{env.VAR}}headers & 1-click Schema Introspection. - RFC 6455 WebSocket Live Tester: Zero-dependency
ws:///wss://probe with SSRF/DNS-pinning and millisecond frame timeline.
- X.509 / TLS Inspector: Offline PEM parser (
DevAnvil v1.2.0 — MCP Server, Git-Native Workspaces & 14 Studios
DevAnvil v1.2.0 — AI Agent MCP Server, Git-Native Workspaces & Real-World Workflow Parity
14 Studios · 11 Offline MCP Tools · 35/35 Tests Passing · 0 Runtime Dependencies
What's New in v1.2.0
- Zero-Dependency Local MCP Server (
devanvil mcp): Built-in Model Context Protocol JSON-RPC 2.0 stdio server exposing 11 offline DevAnvil tools (devanvil_scan_secrets,devanvil_scan_directory,devanvil_check_env,devanvil_openapi_to_mocks,devanvil_jwt_audit,devanvil_regex_test,devanvil_convert_data,devanvil_semantic_diff,devanvil_llm_tokens,devanvil_generate_id,devanvil_cron_explain) for Claude Code, Claude Desktop, Cursor, and Windsurf. - Git-Native Persistent Workspaces & Environments (
devanvil.json): Launch withdevanvil serve --workspace ./devanvil.jsonto atomically save Collections, Environments ({{VAR}}interpolation), and Live Mock Routes right in your repository. - Postman v2.1, HAR 1.2 &
.httpImporter: Migrate existing collections, browser DevTools HAR exports, and VS Code.httpfiles via Web UI (Studio #14) or CLI (devanvil import <postman|har|http> <file>) — with 1-click mounting of captured responses onto/mock/*. - Record & Replay Mock Proxy: Check "Record response -> Live /mock/*" in API Studio (
POST /api/proxywithrecordAsMock: true) to capture live upstream responses as persistent offline/mock/*stubs. - Full-Repository Secret Scanner + SARIF 2.1.0: Run
devanvil scan . --sarifto scan entire repositories (respecting.gitignore, skipping binaries &node_modules) and output GitHub Code Scanning-ready SARIF 2.1.0 reports. - Live SSE Stream Tester (with TTFT): Debug LLM & real-time Server-Sent Events streams (
POST /api/proxy/sse) with Time-To-First-Token (TTFT), per-event delta timestamps, and full SSRF/DNS-pinning protection. - Interactive JSON Tree Explorer: Filterable, expandable DOM tree inside Data Studio with 1-click Copy JSONPath.
Quickstart
# Start Studio UI with Git-native persistence
devanvil serve --workspace ./devanvil.json
# Connect Claude Code to DevAnvil MCP Server
claude mcp add devanvil -- devanvil mcp
# Full-repo secret scan -> SARIF 2.1.0
devanvil scan . --sarif > devanvil-secrets.sarifDevAnvil v1.1.0 — 13 Offline Studios, OpenAPI-to-Mock, Secret Guard & Benchmarks
Highlights in DevAnvil v1.1.0
Still 0 runtime npm dependencies ("dependencies": {}), 100% offline, and 29/29 automated tests passing.
New Studios & Features
- OpenAPI 3.x / Swagger -> Instant Mock Server: Paste YAML or JSON specs, resolve
$refschemas safely (circular-ref guarded), and mount every endpoint live to/mock/*in one click — or rundevanvil openapi spec.yaml --servefrom CLI. - Offline Secret &
.envGuard: 18 linear-time provider secret detectors + Shannon entropy scanner, 1-click safe redaction,.envvs.env.exampledrift checker, plusdevanvil scan/devanvil envCI gates andredact_secretspipeline op. - LLM Token & Context Budget Studio: Offline BPE-calibrated multi-script tokenizer (English/Arabic/CJK/code), multi-model cost & context gauges, and Smart Context Compactor (
devanvil tokens). - Workflow Upgrades: API Studio Auth Helper Bar (Bearer / API Key / Basic), persistent local request history, Webhook Replay -> API Studio, Mock JSON Export, and 4 Pipeline Starter Recipes.
Performance & Security
- In-memory SHA-256
ETag(304) + Gzip static UI cache. - Sub-millisecond core engines verified via
npm run bench(279k UUIDv7/s, 60k Secret scans/s, 44k JWT verifies/s, 17k OpenAPI YAML parses/s). - Slowloris timeouts (
headersTimeout,requestTimeout,maxHeadersCount) + strict runtime type validators returning clean400 Bad Request. - Dogfood ReDoS test verifying every built-in secret rule is ReDoS-safe.
- Hardened
docker-compose.yml(read_only: true,cap_drop: ALL,no-new-privileges).
DevAnvil v1.0.0 — Local-First Zero-Dependency Developer Studio & CLI
DevAnvil v1.0.0
Initial public release of DevAnvil — a local-first, 100% offline, zero-runtime-dependency developer workbench, CLI & TypeScript SDK.
Highlights
- 0 Runtime Dependencies (
dependencies: {}) built purely on Node.js 20+ stdlib & strict TypeScript - 10 Integrated Web Studios with Obsidian Forge dark/light themes &
Cmd/Ctrl+KCommand Palette:- CORS-Free API Studio (timings, cURL importer, cURL/Fetch/Python/Go codegen)
- Live Dynamic Mock API Server (
/mock/*) + Real-Time SSE Webhook Catcher (/hook/:channel) - JWT Studio (HS256/384/512, RS256, ES256 sign/verify, security audit, RSA/EC keygen)
- Crypto, Encoding & IDs (AES-256-GCM + scrypt, SHA/BLAKE2b/HMAC, Password entropy, UUIDv7/ULID/NanoID, 10 codecs)
- Data Studio (JSON/YAML/TOML/CSV/Query/TypeScript/JSON Schema, JSONPath, SQL Formatter)
- Diff Studio (LCS line diff + Semantic JSON structural diff)
- Visual Regex & ReDoS Lab (AST token explainer, static ReDoS detector,
node:vmtimeout sandbox) - Composable Pipeline Lab (30 chainable operations with step-by-step trace)
- Cron & Timestamp Studio + IPv4 CIDR, Linux
chmodmatrix, WCAG 2.1 Color Contrast & HTTP Status Reference
- Hardened Security Architecture: SSRF + DNS-pinning guard, cross-origin redirect credential stripping, strict CSP, prototype-pollution-free parsers, zip-bomb & path-traversal containment, verified by 25 automated tests.