dmno-dev

    dmno-dev/varlock

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

    security
    configuration
    dotenv
    env
    env-vars
    schema
    TypeScript
    MIT
    4.8K stars
    138 forks
    4.8K GitHub watchers
    Updated Oct 26, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest 12 days ago, with 49 contributors on GitHub.

    Gained 94% more stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides AI-safe environment variable management with schema validation, secret protection, and multi-environment support for .env files.
    • Ensures secrets are never exposed to AI agents by separating schema from sensitive values and includes proactive leak scanning and runtime leak prevention.
    • Use for securely managing environment variables in TypeScript projects requiring strict type safety and validation with IntelliSense support.
    • Use for integrating secret management from multiple providers like 1Password, AWS, Azure, GCP, and Bitwarden via flexible plugins.
    • Use for automating environment variable validation and secret leak detection in CI/CD pipelines with git hooks and CLI tooling.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

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

    Unlike .env.example, your .env.schema is a single source of truth, built for collaboration, that will never be out of sync.

    Flexible plugin system: adds new decorators, functions, types - enables secure declarative secret loading.

    You can get started with varlock by installing the CLI:

    See the full installation docs or the Docker guide for more information.

    Validate your .env.schema and pretty print your environment variables with:

    If you need to pass resolved env vars into another process, you can run:

    In many cases you can use our drop-in integrations for seamless experience - with additional security guardrails, like log redaction and leak prevention.

    Excerpt from the dmno-dev/varlock README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    138+28

    Open issues

    80+35

    Compared with peers in Security

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    dmno-dev/varlock compared with Security repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    cloudflare/security-audit-skill61.7K+8.8K17—
    KeygraphHQ/shannon51.2K+1.1K328 days ago
    vxcontrol/pentagi33.5K+7123831 days ago
    Asymptote-Labs/agent-beacon3.3K+36040today
    caddyserver/caddy78.8K+267601 day ago
    dmno-dev/varlock4.8K—6412 days ago
    Category median51.2K+71238—

    Discover Repositories

    Search across tracked repositories by name or description