Feature Flag Rollout

A feature flag switches on and ramps 5%, 25%, then 100% while guardrail charts and an audit log update. A free, MIT-licensed Remotion product scene.

Installation
$ pnpm dlx shadcn@latest add @remocn/feature-flag-rollout

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { FeatureFlagRollout } from "@/components/remocn/feature-flag-rollout";
 
const FeatureFlagRolloutScene = () => (
  <FeatureFlagRollout
    flagName="New checkout flow"
    steps={[5, 25, 100]}
    actor="Maya Chen"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="FeatureFlagRollout"
    component={FeatureFlagRolloutScene}
    durationInFrames={372}
    fps={60}
    width={1280}
    height={720}
  />
);

A feature flag card appears, the toggle flips on at the first step, and a cursor drags the rollout slider through each percentage in steps while two guardrail charts (error rate and p95 latency) draw live and an audit log adds a row per step. Pass flagName, flagKey, actor and steps to match your product; metrics and history replace the charts and audit rows. Ships light and dark.

The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.

Props22

PropTypeDefault
flagName
string"New checkout flow"

Feature flag display name

flagKey
string"new-checkout-flow"

Flag key shown in monospace under the name

environment
string"Production"

Environment chip text, e.g. 'Production'

steps
number[][5, 25, 100]

Rollout percentages the slider steps through

totalUsers
number42800

User count the rollout percentage is applied to

actor
string"Maya Chen"

Person named in the audit log entries

doneLabel
string"Fully rolled out"

Status shown once the rollout reaches 100%.

passingLabel
string"All passing"

Status shown next to the guardrails heading.

stepGap
number48

Frames between one slider drag and the next.

history
FlagAuditEntry[]DEFAULT_HISTORY

Existing audit log rows: actor, verb, target, time

metrics
GuardrailMetric[]DEFAULT_METRICS

Guardrail charts; the first two are shown

theme
"light" | "dark""light"

Light or dark palette

accent
string"#3B5BFD"

Accent color for highlights, buttons and progress

ink
string—

Text color; overrides the theme ink.

fontFamily
string"Figtree"

Typeface for the copy. Load the font in your project first.

speed
number1

Playback speed multiplier for the whole timeline

ground
GshPresetId—

gradients.sh preset id for the backdrop shader

groundParams
Partial<GradientParams>—

Overrides for the backdrop shader parameters

background
string—

Solid fill in place of the gradient ground; pass "transparent" to drop it.

scale
number1

Size of the foreground around the frame's center; the background stays put.

delay
number0

Frames to hold the first frame before anything moves.

workspace
string—

Declared but not currently rendered

  • flagNamestring

    Feature flag display name

    Default"New checkout flow"

  • flagKeystring

    Flag key shown in monospace under the name

    Default"new-checkout-flow"

  • environmentstring

    Environment chip text, e.g. 'Production'

    Default"Production"

  • stepsnumber[]

    Rollout percentages the slider steps through

    Default[5, 25, 100]

  • totalUsersnumber

    User count the rollout percentage is applied to

    Default42800

  • actorstring

    Person named in the audit log entries

    Default"Maya Chen"

  • doneLabelstring

    Status shown once the rollout reaches 100%.

    Default"Fully rolled out"

  • passingLabelstring

    Status shown next to the guardrails heading.

    Default"All passing"

  • stepGapnumber

    Frames between one slider drag and the next.

    Default48

  • historyFlagAuditEntry[]

    Existing audit log rows: actor, verb, target, time

    DefaultDEFAULT_HISTORY

  • metricsGuardrailMetric[]

    Guardrail charts; the first two are shown

    DefaultDEFAULT_METRICS

  • theme"light" | "dark"

    Light or dark palette

    Default"light"

  • accentstring

    Accent color for highlights, buttons and progress

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Figtree"

  • speednumber

    Playback speed multiplier for the whole timeline

    Default1

  • groundGshPresetId

    gradients.sh preset id for the backdrop shader

  • groundParamsPartial<GradientParams>

    Overrides for the backdrop shader parameters

  • backgroundstring

    Solid fill in place of the gradient ground; pass "transparent" to drop it.

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • workspacestring

    Declared but not currently rendered