Skip to main content

Quickstart

From sign-up to your first evaluated flag in under 5 minutes.

Set up in the dashboard

  1. Sign up at app.redpennon.dev and choose a plan.
  2. Create an organisation — you'll be prompted on first login.
  3. Create a project — from your organisation dashboard, click New Project.
  4. Copy your API key — go to Project → Environments, open the environment you want (e.g. development), and copy the API Key UUID.
  5. Create a feature flag — click New Feature, choose type Release, give it a slug (e.g. dark-mode). RedPennon seeds an on/off variable and enables targeting in Development automatically.

Make your first evaluation

Pick your language and paste in the API key you copied above.

npm install @redpennon/node-sdk
import { RedPennonClient } from "@redpennon/node-sdk";

const client = new RedPennonClient({ apiKey: process.env.RP_API_KEY! });

const enabled = await client.variableValue("dark-mode", false, {
user: { id: "user-123" },
});

console.log(enabled); // true or false

The response is true (the on variation) because the starter rule enables the flag for all users in Development. Flip the targeting toggle off in the dashboard and re-evaluate — you'll get false.

What's next