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

v0.1.5

Published

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

Readme

dslinter

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

Previously published as @dslinter/dashboard. Migrate with npm install dslinter and replace imports @dslinter/dashboarddslinter, and @dslinter/dashboard/theme.cssdslinter/theme.css.

Peer dependencies

  • react ^19
  • react-dom ^19

Install

npm install dslinter

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).

CLI (npx dslinter)

The dslinter command orchestrates the Rust scanner (via napi-rs, same distribution model as oxlint) and, in a Vite host app, the dashboard dev loop.

| Mode | Flag | Behavior | |------|------|----------| | Dev (default locally) | (none) | --serve, watch, write --output, start Vite --mode serve | | Report | --report | One-shot scan; human stdout or --json; --output writes JSON | | Watch | --watch | Watch + write JSON only | | Build | --build | One-shot report to --output, then vite build | | CI default | CI=true | Same as --report |

Scanner flags: --json, -p / --parallel, --fail-on-warnings, --max-warnings, --output, [PATH]. Low-level: --serve <port> (watch + HTTP, no Vite).

Without installing Rust

On npm install dslinter, npm installs the platform @dslinter/binding-* optional dependency (darwin/linux/windows). No postinstall download or GitHub Releases API is required.

| Variable | Purpose | |----------|---------| | DSLINT_BIN | Use a cargo-built dslinter binary instead of the NAPI binding. | | DSLINT_ALLOW_PATH=1 | Allow dslinter on PATH when the binding is missing. | | NAPI_RS_NATIVE_LIBRARY_PATH | Point at a specific .node file (napi-rs escape hatch). |

Do not cargo install dslint

The crates.io crate dslint is a different project. Use cargo install --git https://github.com/jrmybtlr/DSLinter dslinter --locked or DSLINT_BIN for local Rust builds.

Typical usage:

npx dslinter init                         # scaffold src/playground/buildRegistry.ts
npx dslinter                              # dev (watch + dashboard)
npx dslinter --report /path/to/repo --json
npx dslinter --report --output public/dslint-report.json
npx dslinter --watch --output public/dslint-report.json

Set DSLINT_SERVE_PORT to override the default scanner port (7878).

Zero-config live previews (recommended)

npx dslinter . from your project root auto-merges the dslinter Vite plugin (playground module glob, scanner proxy, react dedupe). In your app:

import { DashboardLayout, useWorkspaceReport } from "dslinter";

const dslinterReport = useWorkspaceReport({
  reportUrl: "/dslint-report.json",
  watchUrl: "/events",
});

<DashboardLayout autoPlayground dslinterReport={dslinterReport} tokenCatalog={...} />;

No buildRegistry.ts scaffold required. Works with Laravel/Inertia (resources/js/Components/...) and existing @/*resources/js/* aliases.

Direct vite --mode serve: add one line to vite.config.ts:

import dslinter from "dslinter/vite";

export default defineConfig({
  plugins: [dslinter(), /* your plugins */],
});

The plugin sets DSLINT_SCAN_ROOT from the environment (set by npx dslinter) or defaults to process.cwd().

Consumer Vite (Laravel, Inertia, existing @/* aliases)

Published dslinter source uses relative imports only — your app's @/* alias does not hijack dslinter internal UI. You do not need @/componentsnode_modules/dslinter alias overrides.

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/src";
  2. Import the theme (tokens + shadcn layer):

    @import "dslinter/theme.css";

Live component previews (advanced / custom glob)

Use autoPlayground (above) for zero-config previews. Optionally scaffold a narrower glob for faster dev or custom controls:

  • npx dslinter initsrc/playground/buildRegistry.ts
  • npx dslinter init --laravelresources/js/playground/buildRegistry.ts
import { useMemo } from "react";
import { DashboardLayout, useWorkspaceReport } from "dslinter";
import { buildPlaygroundEntries } from "./playground/buildRegistry";

const dslinterReport = useWorkspaceReport({ reportUrl: "/dslint-report.json", watchUrl: "/events" });
const playgroundEntries = useMemo(
  () => buildPlaygroundEntries(dslinterReport.report),
  [dslinterReport.report],
);

<DashboardLayout playgroundEntries={playgroundEntries} dslinterReport={dslinterReport} />;

Or use usePlaygroundFromReport(report) with dslinter/playground-modules when the Vite plugin is active.

Run the scanner from the project root (npx dslinter .) so playgrounds[].rel_path matches your repo layout.

Wiring the layout

DashboardLayout needs:

  • autoPlayground (recommended) — or playgroundEntries from a custom registry / usePlaygroundFromReport.
  • playgroundJoinSkips (optional) — auto-filled when using autoPlayground.
  • 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";
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.