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

@milanmayr/backstage-plugin-catalog-graph-excalidraw

v0.1.6

Published

A frontend-only Backstage plugin that provides Excalidraw-style (hand-drawn, sketchy) node and edge renderers for the [catalog graph](https://backstage.io/docs/features/software-catalog/catalog-graph). Use it with `EntityCatalogGraphCard` and `CatalogGrap

Downloads

39

Readme

Catalog Graph Excalidraw

A frontend-only Backstage plugin that provides Excalidraw-style (hand-drawn, sketchy) node and edge renderers for the catalog graph. Use it with EntityCatalogGraphCard and CatalogGraphPage from @backstage/plugin-catalog-graph.

Installation

Add the plugin to your Backstage app:

yarn add @internal/backstage-plugin-catalog-graph-excalidraw

If you use a monorepo with workspaces, add the package to your app's package.json dependencies (e.g. "@internal/backstage-plugin-catalog-graph-excalidraw": "^0.1.0" or a workspace reference).

The plugin requires:

  • @backstage/plugin-catalog-graph (you already have this if you show the catalog graph)
  • @backstage/core-components
  • @backstage/theme
  • react

Usage

The plugin exports ExcalidrawNode and ExcalidrawEdge (and a convenience object excalidrawGraphRenderers). Pass them as renderNode and renderEdge wherever you use the catalog graph.

1. Catalog graph page (standalone)

In the file where you render CatalogGraphPage (e.g. packages/app/src/App.tsx):

import { CatalogGraphPage, Direction } from '@backstage/plugin-catalog-graph';
import { ExcalidrawNode, ExcalidrawEdge } from '@internal/backstage-plugin-catalog-graph-excalidraw';

// In your routes:
<Route
  path="/catalog-graph"
  element={
    <CatalogGraphPage
      initialState={{ maxDepth: 1, direction: Direction.TOP_BOTTOM }}
      renderNode={ExcalidrawNode}
      renderEdge={ExcalidrawEdge}
    />
  }
/>

2. Entity catalog graph cards

In the file where you use EntityCatalogGraphCard (e.g. packages/app/src/components/catalog/EntityPage.tsx):

import { EntityCatalogGraphCard } from '@backstage/plugin-catalog-graph';
import { ExcalidrawNode, ExcalidrawEdge } from '@internal/backstage-plugin-catalog-graph-excalidraw';

// For each EntityCatalogGraphCard, add the renderers:
<EntityCatalogGraphCard
  variant="gridItem"
  height={400}
  renderNode={ExcalidrawNode}
  renderEdge={ExcalidrawEdge}
/>

Add renderNode={ExcalidrawNode} and renderEdge={ExcalidrawEdge} to every EntityCatalogGraphCard instance (overview cards, diagram tab, etc.) where you want the Excalidraw style.

Convenience object

You can use the bundled object to avoid repeating imports:

import { excalidrawGraphRenderers } from '@internal/backstage-plugin-catalog-graph-excalidraw';

<CatalogGraphPage
  renderNode={excalidrawGraphRenderers.renderNode}
  renderEdge={excalidrawGraphRenderers.renderEdge}
/>

Layout and spacing

Node spacing (distance between nodes) is controlled by @backstage/plugin-catalog-graph and its layout defaults. The plugin does not currently expose nodeMargin or rankMargin to DependencyGraph. To get more space between nodes, you would need the upstream catalog-graph plugin to support and forward those props, or to use a custom graph wrapper that does.

Development

From the plugin directory:

yarn start

This opens a dev app with a sample graph page at /excalidraw-graph so you can develop and test the renderers in isolation.

License

Apache-2.0