Skip to content

dmno-dev/varlock-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Varlock Examples

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

About

πŸ§™β€β™‚οΈπŸ” Examples using Varlock with various frameworks + tools

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors