npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@flagsmith/backstage-plugin

v0.3.0

Published

Backstage plugin for Flagsmith feature flag management

Downloads

168

Readme

Flagsmith Plugin for Backstage

npm version

Integrate Flagsmith feature flags into your Backstage instance.

Features

  • Feature Flags Tab - View all feature flags for a service directly in the entity page
  • Overview Card - Quick summary of flags and their states
  • Usage Card - Display Flagsmith usage metrics

Installation

1. Install the plugin

# From your Backstage root directory
yarn --cwd packages/app add @flagsmith/backstage-plugin

2. Configure the Backstage proxy

Add to your app-config.yaml (or app-config.local.yaml for local development):

proxy:
  endpoints:
    '/flagsmith':
      target: 'https://api.flagsmith.com/api/v1'
      headers:
        Authorization: Api-Key ${FLAGSMITH_API_TOKEN}

Note: Use an environment variable for the API token in production. Never commit tokens to version control.

For self-hosted Flagsmith, change the target URL:

proxy:
  endpoints:
    '/flagsmith':
      target: 'https://your-flagsmith-instance.com/api/v1'
      headers:
        Authorization: Api-Key ${FLAGSMITH_API_TOKEN}

3. Add the Feature Flags tab to entity pages

In packages/app/src/components/catalog/EntityPage.tsx:

import { FlagsTab } from '@flagsmith/backstage-plugin';

// Add to your entity page layout (e.g., serviceEntityPage)
<EntityLayout.Route path="/feature-flags" title="Feature Flags">
  <FlagsTab />
</EntityLayout.Route>

4. (Optional) Add cards to the Overview page

import {
  FlagsmithOverviewCard,
  FlagsmithUsageCard,
} from '@flagsmith/backstage-plugin';

// Add to your entity overview page
<Grid item md={6}>
  <FlagsmithOverviewCard />
</Grid>
<Grid item md={6}>
  <FlagsmithUsageCard />
</Grid>

5. Annotate your entities

Add Flagsmith annotations to your catalog-info.yaml:

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: my-service
  annotations:
    flagsmith.com/project-id: '12345'
spec:
  type: service
  owner: team-a

Note: The organization ID is automatically derived from the project data.

Getting your Flagsmith credentials

  1. Log in to your Flagsmith dashboard
  2. Go to Organisation Settings > API Keys
  3. Create or copy your Admin API Key
  4. Find your Project ID in the URL or project settings

Development

Prerequisites

  • Node.js 22+ (Node 24 has known ESM compatibility issues with Backstage)
  • Yarn
  • A Backstage application for testing

Local Development Setup

  1. Clone the repository:

    git clone https://github.com/Flagsmith/flagsmith-backstage-plugin.git
    cd flagsmith-backstage-plugin
  2. Install dependencies:

    yarn install
  3. To test in a Backstage app, copy or link the plugin to your Backstage workspace's plugins/ directory and add it as a workspace dependency.

  4. Create app-config.local.yaml with your Flagsmith credentials (this file is gitignored).

  5. Run the Backstage app:

    yarn start

Available Scripts

| Command | Description | | ------------ | ---------------------------- | | yarn start | Start the development server | | yarn build | Build for production | | yarn test | Run tests | | yarn lint | Lint the codebase |

Project Structure

src/
├── components/          # React components
│   ├── FlagsTab.tsx
│   ├── FlagsmithOverviewCard.tsx
│   └── FlagsmithUsageCard.tsx
├── api/                 # API client (uses Backstage proxy)
│   └── FlagsmithClient.ts
├── plugin.ts            # Frontend plugin definition
└── index.ts             # Package exports

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

Apache-2.0