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

@dunx/dashboard

v3.2.1

Published

An opt-in operations page for a running dunx app: routes, the provider graph, gateways, config and runtime health, with bull-board mounted for the queues

Readme

@dunx/dashboard

One page over a running dunx app: the routes it serves, the container it built, the gateways it upgrades, Redis, the config keys and the process itself, with bull-board mounted for the queues.

Every panel reads data dunx already computes, so the page is cheap.

Install

bun add @dunx/dashboard
# for the queues page
bun add @bull-board/api @bull-board/ui @bull-board/bun

Usage

import { DashboardMiddleware, DashboardModule } from '@dunx/dashboard';
import { JobPublisher } from '@dunx/infra/queue';
import { RedisConnection } from '@dunx/infra/redis';

@Module({
  imports: [
    DashboardModule.forRootAsync({
      imports: [JobsModule, CacheModule],
      inject: [JobPublisher, RedisConnection],
      useFactory: (queues: JobPublisher, redis: RedisConnection) => ({
        path: '/api/_dunx',
        queues,
        redis,
        authorize: (req) => isOperator(req),
      }),
    }),
  ],
})
export class OpsModule {}

const app = await HttpFactory.create(AppModule);
app.use(DashboardMiddleware); // first, ahead of any session guard

The panels

Seven panels, each with a JSON sibling under {path}/api/*, so curl is a real way to read this on a box with no browser. The queues page is bull-board's.

| Panel | Shows | | --------- | ------------------------------------------------------------ | | Routes | Every route, its guards and metadata, linked to /docs | | Providers | The container graph, by module | | Gateways | Every WebSocket gateway and its events | | Redis | Connection state and INFO | | Config | Keys always, values only where reveal says so | | Runtime | The process, its memory and its probes | | Stats | Per-route request timings and per-operation query timings |

Three things that are decisions

  • authorize has no default. Leaving it out serves the page to anyone who can reach the port. Omitting it logs a warning naming the mount at boot.
  • A rejected request gets 404, not 403. Register the middleware ahead of any session guard: a guard running first answers 401 and tells a prober the mount exists. authorize takes the raw Request so it can be self-sufficient.
  • Config values are redacted by default. reveal is an opt-in allow-list; a deny-list of the usual suspects leaks the first key nobody thought of.

Notes

  • QueueSource and RedisProbe restate structurally what JobPublisher and RedisConnection already are, so queues: publisher is the whole wiring. It depends on neither @dunx/infra nor bullmq.
  • The board is built on the first request for the queues page, never at boot, so an app that never opens it holds no broker socket.
  • commands: false maps onto bull-board's own readOnlyMode.

License

MIT