JavaScript SDK

Documentation for the Redenv JavaScript/TypeScript SDK.

JavaScript SDK

The @redenv/client package allows you to fetch secrets in your Node.js, edge, or browser environments.

Installation#

npm install @redenv/client
pnpm add @redenv/client
yarn add @redenv/client

Usage#

import { Redenv } from "@redenv/client";

const client = new Redenv({
  token: process.env.REDENV_TOKEN,
});

async function main() {
  const secrets = await client.getSecrets("my-project");
  console.log(secrets);
}

main();

Features#

  • Type-safe: Built with TypeScript.
  • Universal: Works in Node, Bun, Deno, and Edge runtimes.
  • Caching: Built-in caching for performance.