Skip to content

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.

Integrations allow you to:

  • load and validate .env files 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 / Node.js — use varlock in custom toolchains, scripts, and servers.
  • 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 intregration + Cloudflare Vite plugin.
  • Astro — Astro integration built on top of our Vite plugin.
  • GitHub Actions — Validate your .env.schema in GitHub Actions workflows
  • Other languages — guidance for piping varlock output into non-JS runtimes.
  • Docker — A Docker wrapper around the varlock CLI including examples.

We’re actively working on additional first-party integrations for popular runtimes, frameworks and hosting platforms. If yours isn’t listed yet, let us know!