Varlock Examples

July 22, 2026 · View on GitHub

Example projects demonstrating Varlock usage with various frameworks and tools.

Repo structure

Each example is a standalone project, organized into category folders:

  • integrations/ — using varlock with a framework or build tool (Next.js, Astro, SvelteKit, Vite, Cloudflare Workers, ...). Frameworks with multiple examples group them one level deeper (e.g. integrations/nextjs/v15).
  • core/ — core varlock features with no framework involved (loading, imports, varlock init playgrounds).
  • plugins/ — secret-provider plugin examples (1Password, AWS, Azure, Bitwarden, GCP, Infisical, pass). Note that these reference real items in the dmno team's own vaults — see plugins/README.md.
  • _scripts/ — repo tooling, not examples.

This repo expects the main varlock monorepo to be cloned as a sibling directory (i.e., ../varlock).

Switching dependency modes

The _scripts/deps.ts script toggles varlock dependencies between locally linked copies and published npm versions.

# Switch all examples to published versions
pnpm deps:published

# Switch all examples to local links
pnpm deps:local

# Only switch specific examples (matched by path substring)
pnpm deps:local -- astro next

# By default, pkg.pr.new preview URLs are left untouched.
# Use --force to overwrite them too
pnpm deps:published -- --force