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

@infisical/backstage-backend-plugin-infisical

v1.0.0

Published

![Backstage + Infisical](https://img.shields.io/badge/backstage-infisical-blue)

Readme

Backstage Infisical Backend Plugin

Backstage + Infisical

This plugin provides integration between Backstage and Infisical, a secrets management platform. It allows you to manage, access, and modify secrets stored in Infisical directly through your Backstage instance.

Features

  • Fetch secrets of the Infisical project linked to a catalog entity
  • Create, update, and delete secrets
  • List environments of the linked project
  • Enforces the infisical/projectId, infisical/environment and infisical/secretPath entity annotations server-side
  • Integrates with the Backstage permission framework
  • Support for both API token and client credentials authentication methods
  • Multiple named machine identities, selected per entity and per environment with the infisical/identity annotations
  • Sends the Backstage user and entity in the User-Agent header so they show up in Infisical's audit log

API

Every route is scoped to a catalog entity through the entityRef parameter (for example component:default/my-service). The Infisical project, environment and path are derived from the entity's annotations; the request may only narrow them within what the annotations allow.

| Route | Parameters | Permission | |---|---|---| | GET /secrets | query: entityRef, path?, environment? | infisical.secret.describe (values redacted unless infisical.secret.value.read) | | GET /secrets/:secretId | query: entityRef, path?, environment? | infisical.secret.value.read | | GET /environments | query: entityRef | infisical.secret.describe | | POST /secrets | body: entityRef, secretKey, secretValue, secretComment?, secretPath?, environment? | infisical.secret.create | | PATCH /secrets/:secretId | body: same as POST /secrets, except secretValue? is optional (omit it to keep the current value) | infisical.secret.update | | DELETE /secrets/:secretId | body: entityRef, environment?, secretPath? | infisical.secret.delete |

Responses: 400 for invalid input or path traversal attempts, 401 without credentials, 403 for service credentials (only users are accepted), when the permission is denied, the environment/path is outside what the annotations allow, or the entity is not in the selected identity's allowedEntityRefs, 404 when the entity does not exist, has no infisical/projectId annotation, or references an identity that is not configured.

See the repository README for the list of permissions and an example policy.

Installation

This plugin is published as @infisical/backstage-backend-plugin-infisical. To install it in your Backstage backend, run:

# From your Backstage root directory
yarn --cwd packages/backend add @infisical/backstage-backend-plugin-infisical

Configuration

Add the following to your app-config.yaml to configure the plugin:

infisical:
  baseUrl: https://app.infisical.com  # Optional, defaults to https://app.infisical.com
  
  # You must configure one of the following authentication methods:
  authentication:
    auth_token:
      # Option 1: API Token Authentication
      token: ${INFISICAL_API_TOKEN}
    
    # Option 2: Client Credentials Authentication
    universalAuth:
      clientId: ${INFISICAL_CLIENT_ID}
      clientSecret: ${INFISICAL_CLIENT_SECRET}

Multiple machine identities

Named identities let entities act as different machine identities, so the Infisical audit log shows which entity or environment each change came from. authentication stays the default for entities without an infisical/identity annotation and becomes optional once identities is set.

infisical:
  identities:
    payments-dev:
      universalAuth:
        clientId: ${INFISICAL_PAYMENTS_DEV_CLIENT_ID}
        clientSecret: ${INFISICAL_PAYMENTS_DEV_CLIENT_SECRET}
    payments-prod:
      universalAuth:
        clientId: ${INFISICAL_PAYMENTS_PROD_CLIENT_ID}
        clientSecret: ${INFISICAL_PAYMENTS_PROD_CLIENT_SECRET}
      allowedEntityRefs: # optional allowlist
        - component:default/payments-service

Entities select them with annotations:

infisical/identity: payments-dev        # default for the entity
infisical/identity.prod: payments-prod  # override for the prod environment

Every request also sends User-Agent: backstage-plugin-infisical (user=<user ref>; entity=<entity ref>), which Infisical records in its audit log. See the repository README for details.

Usage

Add the plugin to your backend in packages/backend/src/index.ts:

import { createBackend } from '@backstage/backend-defaults';

const backend = createBackend();

// ... other plugins
backend.add(import('@infisical/backstage-backend-plugin-infisical'));

backend.start();

Development

To start the plugin in development mode:

# From the plugin directory
yarn start

This starts the backend in standalone mode on http://localhost:7007.

Running Tests

yarn test