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

@invana/dashboard

v0.0.31

Published

Invana Design System - JSON-driven dashboards assembled from design-kit panels

Readme

@invana/dashboard

A dashboard is data. This package takes a JSON-serialisable DashboardSpec and renders it from @invana/ui panels — so one component covers many screens, and a spec can be fetched from an API, stored beside a plan as dashboard.yml, and diffed between two runs.

pnpm add @invana/dashboard

Peer dependencies

pnpm add @invana/ui @invana/styling @invana/forms @invana/editor react react-dom

Styles come from @invana/styling — see its README for the Tailwind v4 import order.

Usage

The spec says what bands exist, what kind each is and what data it carries. The component decides layout and nothing else.

import { Dashboard, type DashboardSpec } from '@invana/dashboard';

const spec: DashboardSpec = {
  header: {
    tone: 'success',
    crumbs: ['orders.csv → Brokerage.Order', 'import_dataset'],
    chips: [{ label: 'succeeded', tone: 'success' }],
    actions: [{ id: 'more', icon: 'more', variant: 'ghost' }],
  },
  rows: [
    {
      panels: [
        {
          kind: 'metrics',
          options: {
            tiles: [
              { label: 'Status', value: 'ok', caption: 'first attempt', tone: 'success' },
              { label: 'Duration', value: '3.4s', caption: '72% of the run' },
            ],
          },
        },
      ],
    },
    {
      panels: [
        {
          kind: 'json',
          title: 'result.json',
          options: { value: { written: 1204, dataset_id: 'ds_9f2c' } },
        },
      ],
    },
  ],
};

<Dashboard spec={spec} onAction={(id, ctx) => console.log(id, ctx)} />;

Behaviour is not in the spec

A function is not JSON, so actions carry an id and come back through a single onAction(actionId, ctx). ctx tells you which panel it came from and, where the panel has a selection, what was selected (taskKey, itemId, param, option).

Icons are passed in by name via the icons prop — the spec only ever carries the string. Unknown names render nothing, so this package pulls in no icon set of its own.

Built-in panel kinds

metrics · properties · json · code · exchange · gantt · table · log · list · params · text

A panel with a title is wrapped in a PanelBox; without one it renders bare, which is how a tile strip sits directly on the surface.

Extra panel kinds

A dashboard's type is parametrised by its registry, which is how the built-in kinds stay type-checked. Register a kind by saying what its options are:

import { Dashboard, type DashboardSpec } from '@invana/dashboard';

type Extra = { canvas: { nodes: MyFlowNode[] } };

const spec: DashboardSpec<Extra> = { rows: [{ panels: [{ kind: 'canvas', options: { nodes } }] }] };

<Dashboard<Extra> spec={spec} registry={{ canvas: MyFlowPanel }} />;

@invana/canvas arrives this way rather than as an import, so PixiJS stays out of the bundle of every consumer that only wanted tiles and a log.

For a spec arriving off the wire, where nothing can be checked anyway, use AnyDashboardSpec.

Exports

Dashboard, the panel components (MetricsPanel, PropertiesPanel, JsonPanel, CodePanel, ExchangePanel, GanttPanel, TablePanel, LogPanel, ListPanel, ParamsPanel, TextPanel), SpecChip(s) / SpecAction(s), BUILT_IN_PANELS, resolveRegistry, and the spec types.

License

MIT © Ravi Raja Merugu