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

@cyann/dash-lab

v0.1.0

Published

A composable React workbench for focused applications.

Readme

dash-lab

npm package name: @cyann/dash-lab.

Build once. Create many.

A reusable React workbench for desktop applications: dockable panels, light/dark themes, saved layouts, commands and shortcuts, notifications, settings, local plugins, and English/French interfaces. The Hello World demo consumes the same public API as an application.

Run the demo

Use Node.js 24 LTS, or Node.js 22.13+ in the 22.x series. From this repository directory:

npm install
npm run dev

Open http://127.0.0.1:5173. Development runs the library build with --watch, watches TypeScript declarations, and serves the demo with hot reload. Ctrl+C closes the watchers and server.

npm run start

This checks types, builds the library and demo once, and previews at http://127.0.0.1:4173. It does not watch files or require a prior build. On Windows, use npm.cmd if PowerShell blocks npm.ps1.

Ten-minute tutorial: your first plugin

1. Start the workspace — two minutes

Run the commands above. Try dragging a tab, switching themes, and opening Commands with Ctrl/⌘+Shift+P. View hides the header and footer together; Focus hides all chrome and Escape restores it.

2. Add a component — three minutes

Create demo/src/plugins/counter/Counter.tsx:

import { useState } from 'react';

export function Counter() {
  const [count, setCount] = useState(0);
  return (
    <section style={{ padding: 24 }}>
      <h1>Counter</h1>
      <p>
        Value: <output aria-label="Counter value">{count}</output>
      </p>
      <button type="button" onClick={() => setCount((value) => value + 1)}>
        Increment
      </button>
    </section>
  );
}

3. Register the plugin — two minutes

Create demo/src/plugins/counter/index.ts:

import type { WorkbenchPlugin } from '@cyann/dash-lab';
import { Counter } from './Counter';

const plugin: WorkbenchPlugin = {
  id: 'counter',
  activate(api) {
    api.registerPanel({ id: 'counter.panel', title: 'Counter', component: Counter });
    api.registerCommand({
      id: 'counter.notify',
      title: 'Counter: send a notification',
      execute: ({ notify }) => {
        notify({ title: 'The counter plugin is ready.', level: 'success' });
      },
    });
    api.registerMenu({ id: 'counter.menu', title: 'Counter notification', commandId: 'counter.notify' });
  },
};

export default plugin;

The demo already discovers src/plugins/*/index.ts with Vite. Its plugin boundary reloads when membership changes. If the old saved layout has a different panel set, it is rejected and the default layout stays usable; a new custom checkpoint is saved automatically after arranging your panels.

4. Use it — two minutes

Select Counter, click Increment, and switch tabs or enter/leave Focus. The counter value remains. Open Plugins → Counter notification, or search counter.notify in Commands, to run the registered action. No additional entry in the demo component is required.

Activation is synchronous. IDs must be unique; workbench.* command IDs are reserved. Plugin panels are registered before application panels, and references must point to earlier panels. A panel without a position uses Dockview's default placement. Plugins are trusted application code bundled with the app; production membership changes require a rebuild.

5. Verify and continue — one minute

npm run check
npm test
npm run build

Save a layout, change Preferences → Language, and try JSON export/import from File. Plugins can opt in with api.registerState({ exportState, importState }); the Hello World demo saves its name and greeting with the layout and configuration. For a fresh consuming application, all six plugin contributions, state handlers, language catalogs, and troubleshooting, follow the application and plugin guide. The API reference covers individual contracts.

Use the library

npm install @cyann/dash-lab

Maintainers can prepare publication with npm run publish:npm -- --dry-run, then publish a committed release with npm run publish:npm. See the publication guide for account setup, versioning, and prerelease tags.

Build a local tarball with npm pack and install it in a consuming application. No npm publication is assumed. React and React DOM are peers; import the stylesheet explicitly and give the workbench a parent with a height:

import { Workbench } from '@cyann/dash-lab';
import '@cyann/dash-lab/style.css';

export function App() {
  return (
    <div style={{ height: '100vh' }}>
      <Workbench title="My Lab">Ready</Workbench>
    </div>
  );
}

Use an optional surrounding router for application routes. Workbench supplies isolated theme, notification, command, and language providers, or reuses explicit ancestors. Its stable panels retain React state and scroll independently.

Development and checks

npm run check
npm run lint
npm run format:check
npm test
npm run build
npm run test:package
npm run build:storybook
npm run test:browser:ci
npm run test:browser:ci -- --dev

Browser checks use installed Microsoft Edge on Windows. Set BROWSER_PATH for another Chromium executable. npm run test:browser -- http://127.0.0.1:5173 tests an already running demo. The CI runner owns its temporary server. Screenshots, profiles, and packed consumers stay in ignored test-results/.

npm run storybook opens the interactive examples. Husky installs local hooks during development installation: staged ESLint/Prettier checks and Conventional Commits. CI/production installs skip hook setup. GitHub Actions includes Windows/Linux checks and does not publish or deploy.

Documentation

Desktop workstations are the supported target. Browser verification currently covers Chromium/Edge; Firefox and Safari are not verified. Runtime audit and remaining tooling/bundle warnings are documented in the dependency notes.

License

MIT, with retained third-party notices.