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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@incident-io/backstage

v0.0.10

Published

[incident]: https://incident.io

Downloads

230

Readme

incident.io

Use this plugin to display ongoing and historic incidents against Backstage components, and to provide quick links to open new incidents for that service inside of incident.io.

How it works

Once you've configured the catalog-importer to sync your Backstage catalog into incident.io, you can visit your incident.io dashboard to create a custom field that is powered by the Backstage Component catalog type.

We recommend creating a multi-select field called something like "Affected services" or "Impacted components".

Remember the custom field ID (taken from the incident.io dashboard) as you'll need it later -- you'll find it after custom-field in the URL (e.g. https://app.incident.io/~/settings/custom-fields/01GD0ECMPR9WF330S1PHSRDVB7/edit) or in the responses from our API.

Install the plugin

The file paths mentioned in the following steps are relative to your app's root directory — for example, the directory created by following the Getting Started guide and creating your app with npx @backstage/create-app.

First, install the incident plugin via a CLI:

# From your Backstage app root directory
yarn add --cwd packages/app @incident-io/backstage

Next, add the plugin to EntityPage.tsx in packages/app/src/components/catalog by adding the following code snippets.

Add the following imports to the top of the file:

import { EntityIncidentCard } from "@incident-io/backstage";

Find const overviewContent in EntityPage.tsx, and add the following snippet inside the outermost Grid defined there, just before the closing </Grid> tag:

<Grid item md={6}>
  <EntityIncidentCard />
</Grid>

If you want to include the list of incidents in places like the page for a system, it's worth noting that overviewContent isn't reused on every page. You may find you need to make more edits to EntityPage, based on your setup.

Configure the plugin

First, provide the API key that the client will use to make requests to the incident.io API.

Add the proxy configuration in app-config.yaml:

proxy:
  ...
  '/incident/api':
    target: https://api.incident.io
    headers:
      Authorization: Bearer ${INCIDENT_API_KEY}

Finally, for any of the custom fields you've configured in incident that are powered by Backstage catalog types, fill out the following details within app-config.yaml:

incident:
  fields:
    api: "<id-of-api-custom-field>"
    component: "<id-of-component-custom-field>"
    system: "<id-of-system-custom-field>"
    domain: "<id-of-domain-custom-field>"

If you don't have a custom field set up for one of these entities, then you can omit that field completely. If you try and include the EntityIncidentCard on the page for an entity which doesn't have the configuration, we'll show you an error that directs you to update your config.