keydrop
v1.1.0
Published
Turn your .env into one deployable key - Runtime SDK
Downloads
567
Maintainers
Readme
keydrop
Runtime SDK for KeyDrop — fetches and injects your secrets automatically.
Install
npm install keydropUsage
Add one line at the very top of your app entry point:
import "keydrop/init";That's it. All your secrets are now available via process.env as normal.
Requirements
Your environment must have KEYDROP_KEY set. Get one by running:
npx keydrop-cli pushHow It Works
- Reads
KEYDROP_KEYfromprocess.env - Calls the KeyDrop API with the key as auth
- Receives your decrypted secrets
- Injects each secret into
process.env - Your app code works without any changes
Example
// index.js
import "keydrop/init";
// works exactly as before — no changes needed
const db = mongoose.connect(process.env.MONGO_URI);
const token = jwt.sign(payload, process.env.JWT_SECRET);Environment Variables
| Variable | Required | Description |
| ----------------- | -------- | ------------------------------------ |
| KEYDROP_KEY | Required | Your project key from keydrop push |
| KEYDROP_API_URL | Optional | Custom API URL for self hosting |
Vercel / Render
Just add KEYDROP_KEY to your platform's environment variables dashboard. No .env file needed — the platform injects it directly.
License
MIT
