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

@dslinter/dashboard

v0.0.5

Published

DSLinter dashboard UI: playground shell, token wall, and governance panels (consumes dslint-report.json).

Readme

@dslinter/dashboard

React UI for the DSLinter dashboard: component playground shell, token wall, and governance panels. It expects a dslint-report.json file produced by the dslint CLI (Rust scanner in this repo).

Peer dependencies

  • react ^19
  • react-dom ^19

Install

npm install @dslinter/dashboard

This package is source-first: entry points resolve to TypeScript/TSX under src/. Use a bundler that transpiles dependencies from node_modules (for example Vite).

Generating reports (Rust CLI)

This npm package does not embed the scanner. Install the CLI separately so you can scan a repo and emit JSON:

| Distribution | How users get dslint | |--------------|-------------------------| | GitHub Releases | Attach dslint (or dslint.exe) per OS/arch to each release; document download + PATH. | | crates.io | Publish the crate as dslint; users run cargo install dslint (Rust toolchain required). | | npm binary wrapper | Add a small package (e.g. @dslinter/cli) that uses napi-rs, prebuildify, or a postinstall script that downloads the correct release asset for process.platform / arch. OptionalDependencies per platform is a common pattern. |

Suggested path for this repo: ship official binaries via GitHub Releases (CI builds with cargo build --release on ubuntu, macos, windows) and optionally add @dslinter/cli later that only downloads or shells out to that binary.

Typical usage after the CLI is on PATH:

dslint /path/to/repo --json -o dslint-report.json
# or --serve for live reload while developing a dashboard

Styles (Tailwind v4)

  1. In your app CSS, load Tailwind, then point Tailwind at this package so utility scanning picks up dashboard classes:

    @import "tailwindcss";
    @source "../node_modules/@dslinter/dashboard/src";
  2. Import the theme (tokens + shadcn layer):

    @import "@dslinter/dashboard/theme.css";

Wiring the layout

DashboardLayout needs:

  • playgroundEntries — from the report’s playgrounds list joined to your React modules (see repo demo/src/playground/buildRegistry.ts).
  • tokenCatalog — token wall data (see demo/src/tokenCatalog.ts).
  • dslinterReport — from useWorkspaceReport({ reportUrl: "/dslint-report.json", ... }).
import { useMemo } from "react";
import {
  useWorkspaceReport,
  DashboardLayout,
} from "@dslinter/dashboard";
import { buildPlaygroundEntries } from "./playground/buildRegistry";
import { tokenCatalog } from "./tokenCatalog";

export default function App() {
  const dslinterReport = useWorkspaceReport({
    reportUrl: "/dslint-report.json",
    refreshIntervalMs: 5000,
  });

  const playgroundEntries = useMemo(
    () => buildPlaygroundEntries(dslinterReport.report),
    [dslinterReport.report],
  );

  return (
    <DashboardLayout
      playgroundEntries={playgroundEntries}
      tokenCatalog={tokenCatalog}
      dslinterReport={dslinterReport}
    />
  );
}

DashboardLayout wraps content in DashboardThemeProvider. Use useDashboardTheme for custom chrome.

License

Apache-2.0. See LICENSE.