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

@backstagerunway/plugin-sleuth-dora

v0.3.0

Published

A Backstage frontend plugin that provides DORA (DevOps Research and Assessment) metrics visualization with Sleuth.io integration. This plugin offers three different views for different user roles and use cases.

Downloads

13

Readme

@backstagerunway/plugin-sleuth-dora

A Backstage frontend plugin that provides DORA (DevOps Research and Assessment) metrics visualization with Sleuth.io integration. This plugin offers three different views for different user roles and use cases.

Features

  • Executive Dashboard: High-level organizational DORA metrics and quarterly health overview
  • Lead Dashboard: Team-focused DORA metrics with team selection and performance tracking
  • Entity Dashboard: Project-specific DORA metrics embedded in entity pages
  • Time Range Selection: Configurable time periods for metrics analysis
  • Real-time Data: Live metrics from Sleuth.io integration

Prerequisites

Installation

  1. Install the frontend plugin in your app package:
cd packages/app
yarn add @backstagerunway/plugin-sleuth-dora
  1. Install the backend plugin (required):
cd packages/backend
yarn add @backstagerunway/plugin-sleuth-dora-backend
  1. Configure the backend plugin in packages/backend/src/index.ts:
import { createBackend } from '@backstage/backend-defaults';

const backend = createBackend();

// Add the DORA backend plugin
backend.add(import('@backstagerunway/plugin-sleuth-dora-backend'));

backend.start();
  1. Add configuration to your app-config.yaml:
dora:
  sleuth:
    organizationId: 'your-sleuth-organization-id'
    apiKey: 'your-sleuth-api-key-here'
    environment: 'production'          # Optional (frontend-visible)
    # defaultProjectSlug: 'your-default-project'  # Optional; used if entity lacks project-slug annotation
    # apiUrl is optional - defaults to 'https://app.sleuth.io' if not specified
    # apiUrl: 'https://app.sleuth.io'

Available Views

1. Entity Dashboard (DoraPerformanceComponent)

Purpose: Embeds DORA metrics directly into entity pages for project-specific analysis.

Features:

  • Project-specific DORA metrics
  • Entity-based filtering
  • Time range selection
  • Performance trends and insights
  • Embeddable component for any entity type

Entity Dashboard Sleuth Tab Entity page with Sleuth tab showing project-specific metrics

Installation:

// packages/app/src/components/catalog/EntityPage.tsx
import { DoraPerformanceComponent } from '@backstagerunway/plugin-sleuth-dora/src/plugin';

// Add the component content
const sleuthContent = (
  <Grid container spacing={3} alignItems="stretch">
    <Grid item xs={12}>
      <DoraPerformanceComponent />
    </Grid>
  </Grid>
);

// Add the route to your entity layout
<EntityLayout.Route path="/sleuth" title="Sleuth">
  {sleuthContent}
</EntityLayout.Route>

Entity Configuration: To use the Entity Dashboard, your entities can use the following annotations:

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: my-component
  annotations:
    sleuth.io/project-slug: 'your-sleuth-project-slug'  # Required, unless managed globally via dora.sleuth.defaultProjectSlug in app-config
    sleuth.io/code-deployment-slug: 'my-service'        # Optional - defaults to entity name
    sleuth.io/environment: 'production'                 # Optional - defaults to config
spec:
  type: service
  lifecycle: production
  owner: team-a

Fallback Behavior:

  • If sleuth.io/project-slug is not specified, it uses defaultProjectSlug from app-config.yaml
  • If sleuth.io/code-deployment-slug is not specified, it uses the entity's metadata.name
  • If sleuth.io/environment is not specified, it uses the environment from app-config.yaml

2. Executive Dashboard (DoraELTPage)

Purpose: Provides executive-level overview of organizational DORA metrics and quarterly health trends.

Features:

  • Executive summary with key DORA metrics
  • Quarterly health overview
  • Organization-wide trend analysis
  • Time range selection for historical data

Executive Dashboard Main View Executive Dashboard showing organizational DORA metrics overview

Installation:

// packages/app/src/App.tsx
import { DoraELTPage } from '@backstagerunway/plugin-sleuth-dora';

// Add the route
<Route path="/dora-elt" element={<DoraELTPage />} />
// packages/app/src/components/Root/Root.tsx
import { CreateComponentIcon } from '@backstage/core-components';

// Add to sidebar navigation
<SidebarItem icon={CreateComponentIcon} to="dora-elt" text="Sleuth - ELT" />

3. Lead Dashboard (DoraLeadPage)

Purpose: Provides team leaders with detailed team performance metrics and the ability to compare teams.

Features:

  • Team performance overview
  • Team selector for comparing specific teams
  • All teams view for comprehensive analysis
  • Time range selection
  • User team filtering based on Backstage catalog

Lead Dashboard Team Selector Team selector dropdown for comparing specific teams

Lead Dashboard Performance Team performance overview with metrics comparison

Installation:

// packages/app/src/App.tsx
import { DoraLeadPage } from '@backstagerunway/plugin-sleuth-dora';

// Add the route
<Route path="/dora-lead" element={<DoraLeadPage />} />
// packages/app/src/components/Root/Root.tsx
import { CreateComponentIcon } from '@backstage/core-components';

// Add to sidebar navigation
<SidebarItem icon={CreateComponentIcon} to="dora-lead" text="Sleuth - Lead" />

Complete Setup Example

Here's a complete example of setting up all three views:

Sidebar Navigation Sidebar navigation showing DORA menu items

1. App.tsx Configuration

// packages/app/src/App.tsx
import { DoraELTPage, DoraLeadPage } from '@backstagerunway/plugin-sleuth-dora';

// Inside your Routes component
<Routes>
  {/* ... other routes ... */}
  <Route path="/dora-elt" element={<DoraELTPage />} />
  <Route path="/dora-lead" element={<DoraLeadPage />} />
</Routes>

2. Root.tsx Configuration

// packages/app/src/components/Root/Root.tsx
import { CreateComponentIcon } from '@backstage/core-components';

// Inside your Sidebar component
<SidebarItem icon={CreateComponentIcon} to="dora-elt" text="Sleuth - ELT" />
<SidebarItem icon={CreateComponentIcon} to="dora-lead" text="Sleuth - Lead" />

3. EntityPage.tsx Configuration

// packages/app/src/components/catalog/EntityPage.tsx
import { DoraPerformanceComponent } from '@backstagerunway/plugin-sleuth-dora/src/plugin';

// Add the component content
const sleuthContent = (
  <Grid container spacing={3} alignItems="stretch">
    <Grid item xs={12}>
      <DoraPerformanceComponent />
    </Grid>
  </Grid>
);

// Add the route to your entity layout
<EntityLayout.Route path="/sleuth" title="Sleuth">
  {sleuthContent}
</EntityLayout.Route>

Configuration

Configuration Precedence (how values are resolved)

For values used by the UI, the plugin resolves configuration in this order:

  1. Entity annotations (if an entity is in context)
  2. App config (app-config.yaml)
  3. Built-in defaults

Keys and their resolution:

  • projectSlug: sleuth.io/project-slugdora.sleuth.defaultProjectSlugsleuth
  • environment: sleuth.io/environmentdora.sleuth.environmentproduction
  • codeDeploymentSlug: sleuth.io/code-deployment-slug → entity metadata.name (no app-config fallback)
  • defaultTimeRange: dora.sleuth.defaultTimeRangelast28days

Required Configuration

The plugin requires the following configuration in your app-config.yaml:

dora:
  sleuth:
    organizationId: 'your-sleuth-organization-id'
    apiKey: 'your-sleuth-api-key-here'
    environment: 'production'          # Optional (frontend-visible)
    defaultProjectSlug: 'your-default-project'  # Optional (frontend-visible)
    # apiUrl is optional - defaults to 'https://app.sleuth.io' if not specified
    # apiUrl: 'https://app.sleuth.io'

Entity Annotations

For the Entity Dashboard to work, your entities can use these annotations:

metadata:
  annotations:
    sleuth.io/project-slug: 'your-sleuth-project-slug'  # Required
    sleuth.io/code-deployment-slug: 'your-service'      # Optional - defaults to entity name
    sleuth.io/environment: 'production'                 # Optional - defaults to config

Fallback Behavior:

  • sleuth.io/project-slug: Falls back to defaultProjectSlug from app-config.yaml
  • sleuth.io/code-deployment-slug: Falls back to entity's metadata.name
  • sleuth.io/environment: Falls back to environment from app-config.yaml

Required vs Optional

  • Mandatory (backend-only):
    • dora.sleuth.organizationId
    • dora.sleuth.apiKey
  • Optional (frontend-visible):
    • dora.sleuth.environment (default: production)
    • dora.sleuth.defaultProjectSlug (default: sleuth)
    • dora.sleuth.defaultTimeRange (default: last28days)
    • dora.sleuth.apiUrl (default: https://app.sleuth.io)

Development

Running the Plugin Locally

  1. Clone the repository
  2. Install dependencies: yarn install
  3. Configure your Sleuth.io credentials
  4. Start the development server: yarn start

Testing

yarn test

Troubleshooting

Common Issues

  1. Backend Plugin Not Installed: Ensure the backend plugin is properly installed and configured
  2. Missing Configuration: Verify your app-config.yaml has the required Sleuth.io configuration
  3. Entity Annotations: Check that entities have the required sleuth.io/project-slug annotation
  4. API Key Issues: Ensure your Sleuth.io API key is valid and has proper permissions

Error Messages

  • "No Sleuth project Slug found": Add the sleuth.io/project-slug annotation to your entity
  • "Failed to load metrics": Check your backend configuration and Sleuth.io API credentials
  • "No teams found": Verify your user has proper team associations in Backstage