Secrets for developers
Secure secrets, one command away
Single source of truth
Manage from anywhere anytime
Local development made a breeze
With CLI you can run all your apps in any environment
- project: our-project
environment: api-prod
description: Production environment (AWS)
file: .env
push:
file: secrets.yaml
- project: our-project
environment: api-dev
file: .prod.env
secrets:
only:
- DATABASE_URL
run:
command: npm run dev
secrets:
expand-refs: true
print: true
- project: our-project
environment: api-testing
secrets:
set:
- NODE_ENV: testing
Everything at your fingertips
Just one command to get you going
Environment loaded (3 secrets)
╭──────────────┬────────────────────────────────────────────────╮
│ Name │ Value │
├──────────────┼────────────────────────────────────────────────┤
│ DATABASE_URL │ postgres://user:password@localhost:5432/public │
│ USER_ID │ 2ed77437-2580-4949-a8e0-73af614c4746 │
│ JWT_SECRET │ POJS4A9BM3RQS6GDPITG7X7U9 │
╰──────────────┴────────────────────────────────────────────────╯
# Running "bun run dev" command...
Access from your code
Use SDK to load secrets and more
// Initialize SDK client
const stashbase = createEnvClient("sbe...fDn4q")
// Example: Load end inject environment variables
await stashbase.load()
// Example: Load only if NODE_ENV is production
await stashbase.load({
enabled: process.env.NODE_ENV === "production",
})
AI-powered secrets scanning
Scan your code for secrets, improve your security
import Stripe from "stripe"
import twilio from "twilio"
const stripe = new Stripe(
"sk_test_51H8WE7L8NC94n45PZLmV7Axd3hEd5L1E5Xu",
{
apiVersion: "2023-08-17",
},
)
async function sendSms(to: string) {
const twilioClient = twilio(
"AC6f0d6f9e2f3456ab7d8e9c0d1e2f3g4h5i6j7k",
"d1d2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0",
)
try {
const message = await twilioClient.messages.create({
body: "Hello from Twilio!",
to: to,
})
console.log("Twilio Message SID:", message.sid)
} catch (error) {
console.error("Error sending SMS:", error)
}
}
import Stripe from "stripe"
import twilio from "twilio"
const stripe = new Stripe(
"sk_test_51H8WE7L8NC94n45PZLmV7Axd3hEd5L1E5Xu",
{
apiVersion: "2023-08-17",
},
)
async function sendSms(to: string) {
const twilioClient = twilio(
"AC6f0d6f9e2f3456ab7d8e9c0d1e2f3g4h5i6j7k",
"d1d2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0",
)
try {
const message = await twilioClient.messages.create({
body: "Hello from Twilio!",
to: to,
})
console.log("Twilio Message SID:", message.sid)
} catch (error) {
console.error("Error sending SMS:", error)
}
}
Track usage in real-time
See how are your API Keys used
Secure by design
No need to worry about security
World-class developer experience
Dev tool you will enjoy using everyday
Search anything quickly
More than 20 shortcuts
Effortless team collaboration
World-class developer experience
Dev tool you will enjoy using everyday
Search anything quickly
More than 20 shortcuts
Effortless team collaboration
And more...
Works with your infrastructure
Integrates with tools you already use
Do the first step today
Be the first to use Stashbase and supercharge your workflow