vaultlier
v0.1.7
Published
Typed runtime client, CLI, and type generation for the Vaultlier sealed configuration vault. Replaces the .env workflow without writing secret values to disk.
Downloads
967
Maintainers
Readme
vaultlier
Typed runtime client, CLI, and type generation for Vaultlier - a sealed, centrally hosted configuration vault. Replaces the .env workflow without writing secret values to disk.
Install
npm install vaultlierQuick start
npx vaultlier init
npx vaultlier pull --env=prodinit writes two metadata-only artifacts - vaultlier.json (schema) and lib/vaultlier.ts (generated typed client). Existing projects may also use vaultlier.config.json for schema metadata.
Generated config includes a $schema reference to https://schema.vaultlier.com/v2/vaultlier.schema.json for editor validation. No secret values are written to disk.
Inspect your config locally
npx vaultlier dev # opens a local UI on http://127.0.0.1:9090vaultlier dev starts a read-only dashboard, bound to loopback, that shows your
project's metadata only - key names, types, scopes, environments, and a
masked API key. Decrypted secret values are never read, stored, or displayed,
and nothing leaves your machine. It's a transparency tool so you can see exactly
what Vaultlier keeps about your project. Use --port=<n> to change the port.
Runtime usage
import { vault } from "./lib/vaultlier"; // generated client
const config = await vault({ environment: "prod" });
config.DATABASE_URL; // typedOr construct a client directly:
import { createClient } from "vaultlier";
export const vault = createClient<{ DATABASE_URL: string }>({
projectId: "prj_checkout_api",
});API key resolution order
- Explicit
apiKeypassed to the runtime call. VAULTLIER_API_KEYin the hosting/CI environment.- Local credential cache created by
vaultlier init(development only).
Entry points
| Import | Surface | Environment |
| --------------- | ---------------------------- | ------------------------------------------------------ |
| vaultlier | Runtime SDK (createClient) | Edge-safe (Node 18+, Bun, Deno, Workers, Edge, Lambda) |
| vaultlier/cli | CLI programmatic API | Node-only |
The runtime entry uses only fetch and Web Crypto - no Node-only imports, no third-party dependencies.
Security
- Secrets are resolved in memory and never written to disk.
vaultlier.json/vaultlier.config.jsonandlib/vaultlier.tscontain metadata only - never secret values or API keys.- Never commit your
VAULTLIER_API_KEY.
License
MIT
