Integrations Overview
Varlock ships with official integrations that wire the CLI, runtime helpers, and framework-specific plugins together so your configuration is validated, type-safe, and protected everywhere it runs.
If you are working in a monorepo, start with the Monorepos guide for schema layout, root-level dependency overrides, and CI patterns before picking per-framework integrations below.
Integrations let you:
- load and validate
.envfiles automatically during dev and use them in CI/CD and production - inject config into your code at build or request time
- enable runtime protections such as leak prevention, and log redaction
Official integrations
Section titled “Official integrations”- JavaScript / Node.js: use
varlockin custom toolchains, scripts, and servers - Bun: instructions to set up Varlock with Bun
- Next.js: drop-in replacement for
@next/env - Vite: Vite plugin that validates and replaces at build time
- Qwik: use the Vite integration
- React Router: use the Vite integration
- Cloudflare Workers: use the Vite integration or Wrangler vars/secrets directly
- Astro: Astro integration built on top of our Vite plugin
- SvelteKit: use the Vite integration, or the Cloudflare integration’s SvelteKit plugin when deploying to Workers
- TanStack Start: use the Vite integration, or the Cloudflare integration when deploying to Workers
- Expo / React Native: Expo and React Native CLI: Babel plugin + Metro config wrapper with compile-time replacements and server route support (Expo only)
- GitHub Actions: validate your
.env.schemain GitHub Actions workflows - Python:
varlock run+ a generated typed env module (also Pydantic Settings / environs) - Rust: a generated, serde-derived env module
- Go: a generated env package
- PHP: a generated, typed env class
- Other languages: generated-module overview + guidance for any other non-JS runtime
- Docker: a Docker wrapper around the varlock CLI including examples
- mise: install varlock and wire validated env vars into your tasks
- direnv: load validated env vars directly into your shell session
Coming soon
Section titled “Coming soon”We’re working on more first-party integrations for popular runtimes, frameworks and hosting platforms. If yours isn’t listed yet, let us know!