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

@syntroper/syntroper-in-backstage

v2.0.0

Published

Interactive diagram visualization plugin for Syntroper inside Backstage.

Readme

@syntroper/syntroper-in-backstage

View and browse your Syntroper architecture and sequence diagrams directly inside Backstage.

Installation

yarn --cwd packages/app add @syntroper/syntroper-in-backstage
yarn --cwd packages/backend add @syntroper/syntroper-in-backstage

Setup

Backend

Add to packages/backend/src/index.ts:

backend.add(import('@syntroper/syntroper-in-backstage/backend'));

Frontend

Add to packages/app/src/App.tsx:

import { SyntroperPage } from '@syntroper/syntroper-in-backstage';

// Inside <FlatRoutes>
<Route path="/syntroper" element={<SyntroperPage />} />

Sidebar (optional)

Add to packages/app/src/components/Root/Root.tsx:

import { SyntroperIcon } from '@syntroper/syntroper-in-backstage';

<SidebarItem icon={SyntroperIcon} to="syntroper" text="Syntroper" />

Content Security Policy

Add to app-config.yaml to enable diagram previews:

backend:
  csp:
    frame-src: ["'self'", "https://*.syntroper.ai"]

That's it. No environment variables, no API keys, no extra database setup.

Usage

  1. Go to /syntroper in your Backstage instance
  2. Click Sign in with Syntroper
  3. Authorize on Syntroper
  4. Browse and preview your diagrams

How It Works

The plugin uses a Backend-For-Frontend (BFF) pattern for security:

  • OAuth with PKCE -- no client secret is ever exposed
  • Tokens stay server-side -- nothing stored in the browser
  • Refresh tokens are encrypted -- AES-256-CBC using your Backstage backend.auth.keys secret
  • Diagram previews use one-time tickets -- 60-second TTL, single use
  • Works with any database -- PostgreSQL, SQLite, or whatever your Backstage instance uses
User clicks login
  -> Frontend redirects to backend /api/syntroper/auth/start
  -> Backend starts OAuth + PKCE with Syntroper
  -> User authorizes on Syntroper
  -> Backend stores encrypted tokens
  -> User redirected back to Backstage

Requirements

  • Backstage instance with backend.auth.keys configured (standard Backstage setup)
  • That's it

Register Your Backstage Instance

Before using the plugin, register your Backstage instance on the Syntroper dashboard:

  1. Go to https://app.syntroper.ai/dashboard/integrations/backstage
  2. Click Add Backstage Instance
  3. Fill in the fields:

| Field | Description | Example | |---|---|---| | Instance Name | A unique identifier for your instance | my-company-prod | | Description | A note to identify this instance | Production Environment deployed on-prem | | Redirect URL | Your Backstage backend callback URL | https://backstage.yourcompany.com/api/syntroper/auth/callback |

  1. Click Save

For local development, use http://localhost:7007/api/syntroper/auth/callback as the Redirect URL.

Troubleshooting

"Encryption secret is required" Your Backstage instance needs backend.auth.keys in app-config.yaml:

backend:
  auth:
    keys:
      - secret: your-secret-min-32-chars

Diagrams not rendering Add the CSP rule from the setup section above.

OAuth redirect fails Make sure the callback URL in Syntroper matches {backend.baseUrl}/api/syntroper/auth/callback.

Support