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 a per-framework integration 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
JavaScript runtimes and frameworks
Section titled “JavaScript runtimes and frameworks” JavaScript / Node.js Custom toolchains, scripts, and servers
Bun Set up Varlock with Bun
Next.js Drop-in replacement for @next/env
Vite-based Vite plugin (also Qwik, React Router)
Astro Astro integration on top of the Vite plugin
SvelteKit Vite integration, or Cloudflare Workers plugin
TanStack Start Vite integration, or Cloudflare when on Workers
Cloudflare Workers Vite plugin or Wrangler vars/secrets
Expo / React Native Babel plugin + Metro config wrapper
Other languages
Section titled “Other languages” Python varlock run + generated typed env module
Rust Generated serde-derived env module
Go Generated env package
PHP Generated typed env class
Java Generated typed env class (Jackson)
C# Generated typed env class
Other languages Generated-module overview for any runtime
Platforms and tooling
Section titled “Platforms and tooling” Docker Official image, entrypoints, compose, monorepos
GitHub Actions Validate .env.schema in workflows
mise Install varlock and wire env into tasks
direnv Load validated env into your shell
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!