Flagship/Next.js platform
EnvVault
Private environment variable manager
Environment variables end up scattered across .env files, chat threads and Vercel dashboards. EnvVault keeps every repository's variables in one place, encrypted at rest with AES-256-GCM, and syncs with Vercel through a reviewed three-way diff that never deletes or overwrites a value without a decision.
- Built with
- What sets it apart
- Secrets never travel in plain text: values are encrypted per row, compared by HMAC during sync, and sensitive actions ask for the password again.
§ 01
Problem
Every project needs its own set of secrets per environment, and they drift: a key added in Vercel is missing locally, an old .env still holds a rotated token, and there is no single place that knows what each repository should have.
§ 02
Architecture
- 01
App
Next.js App Router with React 19 and shadcn/ui: a repositories dashboard, a per-profile variable editor, import and export dialogs and a sync review screen.
- 02
API and services
Route handlers validate every input with Zod and call a service layer for repositories, profiles, connections, transfers, history and Vercel sync.
- 03
Crypto
Values and integration tokens are encrypted with AES-256-GCM under a versioned keyring; each ciphertext carries its key version and is bound to its row by additional authenticated data.
- 04
Data
PostgreSQL through Drizzle ORM, or embedded PGlite for local use, holding repositories, profiles, variables, remote baselines, sync runs and the audit log.
- 05
Integrations
GitHub for importing repositories and Vercel for scanning project env vars, domains and git links, with concurrency limits and retries on batch work.
§ 03
Key decisions
Compare by HMAC, not by value
The sync diff works on keyed HMAC fingerprints, so local and remote values can be compared without decrypting them into the diff or the review screen.
Review before apply
A Vercel scan produces a sync run of changes by category. Safe changes can be applied in a batch, while removals and conflicts wait for an explicit decision.
Key versions in every ciphertext
Adding a new key and switching the active version takes effect on the next write, and a rotation script re-encrypts old rows without the plaintext ever leaving memory.
Backups that do not depend on the server
Encrypted backups use scrypt on a passphrase and AES-256-GCM, independent of the server keys, so they restore into a new install.
§ 04
Hard parts
- Reading Vercel env vars correctly when some values are write-only or not returned, and recording that state instead of treating it as empty.
- A .env parser that handles export prefixes, inline comments and single, double and backtick quotes spanning several lines.
- Session security: hashed session tokens, CSRF tokens, scrypt password hashing, login-attempt limits and a fresh password prompt before sensitive actions.
§ 05
The product
A single-owner vault for environment variables. Each repository holds profiles - development, preview, production, local, test or custom, optionally tied to a git branch - and each profile holds its variables, imported by pasting or dropping a .env file. A GitHub connection imports repositories with their suggested website, and a Vercel connection scans every project's env vars, compares them with what is stored and with the last accepted remote state, and lists each change for review before anything is applied. Profiles and repositories export as .env, JSON or a passphrase-encrypted backup that restores into a fresh install, and every sensitive action is written to an audit log.
My part
- Versioned AES-256-GCM keyring with additional authenticated data per row, plus a key-rotation script that re-encrypts every stored secret.
- Three-way Vercel sync with safety rules: a failed scan never reports removals, and an unreadable remote value never replaces a local one.
Where it is now
Live at genv1729.vercel.app as a private, password-protected vault with GitHub import, Vercel sync, encrypted backups and an audit trail.