dmno-dev/varlock

AI-safe .env files: Schemas for agents, Secrets for humans.

TypeScript3540 ★Security & PrivacyGitHub ↗
Quality: excellent 22/24
PAI: integrate 0.88
Appraised: 2026-05-27 current
Contents

Overview

Verdict

Rating Summary
Quality excellent (22/24) Actively maintained TypeScript monorepo with 3540 stars in 13 months, high-discipline tooling, and a comprehensive multi-package ecosystem.
PAI Relevance integrate (0.88) Fills PAI's env-schema gap directly, ships as a TypeScript/Bun CLI with MCP server, and introduces a novel AI-safe config pattern applicable to PAI's security hooks and agent credential handling.

Quality Assessment

22/24 — actively-maintained / adequately-documented / high-discipline

Health: 8/8 (actively-maintained)

Failed:

Passed:

Documentation: 6/8 (adequately-documented)

Failed:

Passed:

Engineering Signals: 8/8 (high-discipline)

Failed:

Passed:

PAI Relevance

Dimension Score Assessment
Harvest Value 2 The @env-spec JSDoc-in-.env DSL is a novel co-location pattern for schema + config; the runtime log redaction and AI-safe schema exposure (agents see types/descriptions, never secret values) is directly applicable to PAI's security hooks layer and to how PAI's 27 agents handle API credentials across Claude, GPT-5.4, and Kimi-K2.6.
Integration Readiness 2 TypeScript CLI with bun as its own package manager (bun@1.3.11), installable via bun add varlock or as a subprocess; ships a Vite integration directly applicable to the Conservancy project (SvelteKit/Vite), and an MCP server for agent-accessible docs.
Overlap Risk 1 Partial overlap with PAI's Silas/security agent and existing security hooks (which handle observability and PII), but no existing PAI skill covers structured .env schema management, secret scanning via git hooks, or AI-safe config exposure — the overlap is functional proximity, not duplication.
Gap Fill 2 PAI manages credentials for multiple AI providers and Cloudflare services with no schema enforcement, no leak-scanning hooks, and no runtime redaction; varlock addresses all three with zero PAI-internal equivalent.

Composite: 0.88

Landscape Position

Category: Security & Privacy

In this category: first entry — no prior secrets-management or env-schema tool appraised; elder-plinius--ST3GG (steganography) is the only other security-category repo and covers an entirely different domain

Standing: Varlock is the first and only env-schema/secrets-management tool in the landscape, making it the category-defining entry with no direct competition in the appraisal set.

Evidence Base

Density: 10/10 — README (first 8KB, substantive and complete for scoring purposes), dependency manifest (root package.json with full scripts, devDependencies, catalog, and engine constraints), GitHub metadata (stars, forks, issues, dates, release, topics, license, archived status), landscape context with prior appraisals and rolling summary all present.

Notes

The @env-spec RFC (tracked in GitHub Discussions #17) signals an attempt to standardize the DSL beyond varlock itself — worth monitoring for ecosystem adoption. The repo uses Bun as its own package manager, which is an unusually strong stack alignment signal for PAI. The MCP server for varlock docs makes the tool self-referentially AI-tool-friendly. Growth rate (~262 stars/month from a standing start in April 2025) indicates genuine product-market fit rather than hype spike. The varlock scan + git hook pattern for catching AI-generated code that accidentally leaks secrets is especially relevant for any PAI workflow that uses agentic coding loops.