@forjio/secronna
v0.2.0
Published
Secronna SDK — typed JS/TS client for the secronna.com secrets REST API. Sister to the Python + Go SDKs.
Maintainers
Readme
@forjio/secronna
Typed JS/TS client for the secronna.com secrets REST API.
npm install @forjio/secronnaimport { SecronnaClient } from '@forjio/secronna';
const client = new SecronnaClient({ token: process.env.SECRONNA_TOKEN! });
const project = await client.createProject({ name: 'Web' });
const env = await client.createEnvironment(project.id, { name: 'production' });
await client.setSecret(env.id, { key: 'DATABASE_URL', value: 'postgres://…' });
// Pull the whole environment into a { KEY: value } map:
const secrets = await client.fetchSecrets(env.id);
// { DATABASE_URL: "postgres://…" }Auth is a Bearer token — an sk_live_… API key from the dashboard (or a
Huudis-minted access token). Pass token or set SECRONNA_TOKEN.
Every response rides the Forjio envelope { data, error, meta }; the
client unwraps data and throws a SecronnaError (carrying the
envelope's error.code) on any non-2xx / error response.
See secronna.com/docs/sdk for the full method reference.
Family
Sister to:
forjio-secronna(Python)hachimi-cat/secronna-go(Go)
