Skip to content

Feature flags in one line of code.

Wrap new code in isEnabled, ship it off, turn it on from the console. No redeploy. Read configs and parameters the same way in TypeScript and Swift; it caches, works offline and never throws.

checkout.ts
new-checkoutprodOn
Turn it on in the console. The code stays the same, and no redeploy is needed.

How it works

  1. 1

    Get a workspace

    Request access. Your team gets a workspace, or joins one. Add people one by one or as teams.

  2. 2

    Add a project and SDK keys

    A project is your product. Add the channels it runs on, like Web and Mac, and copy a key for each.

  3. 3

    Create a gate

    One gate for the whole product. Pick the segments that get it and the percent of them. Save with a comment.

  4. 4

    Read it in code

    Every channel reads the same gate, config or parameter. Flagship answers for that person.

What you get

Product
  • Gates

    A gate is on or off for each person. The kill switch turns it off at once, rollouts go by percent with stable SHA-256 bucketing, every version is kept, and Restore brings an old one back.

  • Configs

    Serve a number, text or JSON instead of on or off. Each config has a type, and JSON values are checked against a shape you set.

  • Experiments

    Split people into groups and read the lift, its confidence interval, the p-value and a sample ratio check. The page says how many people are still needed, then offers Ship, Don't ship or Keep running.

  • Segments

    Group people into a list or a rule, like plan in pro. Give a gate to a segment, not to a list of names.

One key. A few lines.

Quickstarts
import { createClient } from '@amzn/flagship-sdk'

const flagship = createClient({ key: FLAGSHIP_CLIENT_KEY })
flagship.identify({ id: user.alias })
await flagship.ready()

if (await flagship.isEnabled('whats-new-preview')) {
  showWhatsNewPreview()
}

const color = flagship.get('checkout.buttonColor', 'blue')
const theme = flagship.peek('ui.theme', { color: 'black' })

flagship.track('whats-new-opened', { source: 'menu' })

Request access

Open a ticket and your workspace owner adds you.

Request access