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

@prsm/devtools

v1.0.2

Published

Read-only Express middleware dashboard for observing @prsm infrastructure at runtime

Downloads

29

Readme

Read-only Express middleware dashboard for observing prsm infrastructure at runtime. Mount it, pass your instances, get a live UI.

Installation

npm install @prsm/devtools

Quick Start

import express from 'express'
import { RealtimeServer } from '@prsm/realtime'
import Queue from '@prsm/queue'
import { Cron } from '@prsm/cron'
import { slidingWindow } from '@prsm/limit'
import WorkflowEngine from '@prsm/workflow'
import { prsmDevtools } from '@prsm/devtools'

const app = express()

const realtime = new RealtimeServer({ redis: { host: '127.0.0.1', port: 6379 } })
const queue = new Queue({ concurrency: 5 })
const cron = new Cron()
const apiLimiter = slidingWindow({ max: 100, window: '1m' })
const workflow = new WorkflowEngine()

app.use('/devtools', prsmDevtools({
  realtime,
  queue,
  cron,
  limit: { api: apiLimiter },
  workflow,
}))

app.listen(3000)
// open http://localhost:3000/devtools

Everything is optional. Only pass what you have - tabs appear only for connected subsystems.

What You See

Overview - unified event stream from all subsystems, live via SSE

Realtime - full inspector for @prsm/realtime with sub-tabs:

  • Rooms - active rooms, members, per-member presence state
  • Channels - channels with active subscribers
  • Collections - collections with subscribers, expandable resolved records per connection
  • Records - subscribed records with live-updating data view (via SSE) and subscription mode per connection
  • Metadata - detailed connection view with rooms, channels, collections, records, and presence

Includes a connection picker sidebar for filtering all views by a specific client, and a registered patterns panel showing exposed channels, records, collections, presence, and commands.

Queue - in-flight count (polled), completed/failed/retried counters (session), event log

Cron - registered jobs with next fire times, fire/error event log

Limits - registered limiters, peek inspector (inspect a key without consuming)

Workflows - registered workflow definitions with interactive graph view, step inspector, retry/timeout metadata

Executions - workflow execution list with filters, live graph overlay showing execution progress, per-step state, output/error inspector, and journal timeline

API

prsmDevtools(options)

Returns an Express Router. Mount it wherever you want.

app.use('/devtools', prsmDevtools(options))

Options

| Option | Type | Description | | --- | --- | --- | | realtime | RealtimeServer | A @prsm/realtime server instance | | queue | Queue | A @prsm/queue instance | | cron | Cron | A @prsm/cron instance | | limit | Object<string, Limiter> | Named limiters from @prsm/limit | | workflow | WorkflowEngine | An @prsm/workflow engine instance |

All options are optional. The dashboard adapts to what's provided.

Endpoints

The middleware exposes these under its mount path:

| Endpoint | Description | | --- | --- | | GET /api/config | Which subsystems are connected | | GET /api/events | SSE stream (queue, cron, workflow, and realtime record updates) | | GET /api/queue | Current in-flight count | | GET /api/cron | Registered jobs with next fire times | | GET /api/limits | List of named limiters | | GET /api/limits/:name/peek/:key | Peek at a limiter key | | GET /api/workflows | Registered workflows with graph data | | GET /api/workflows/describe | One workflow definition | | GET /api/workflow/executions | Workflow executions, filterable by workflow/status | | GET /api/workflow/executions/:id | One workflow execution | | GET /api/realtime/state | Full realtime state snapshot | | GET /api/realtime/connection/:id | Detailed connection info | | GET /api/realtime/room/:name | Room members with metadata and presence | | GET /api/realtime/record/:id | Fetch a record's current value | | GET /api/realtime/collection/:id/records | Resolved records for a collection + connection |

How It Works

The middleware listens to events on the instances you pass and forwards them to connected browsers via Server-Sent Events. Realtime record updates stream live over SSE - when you expand a record in the UI, its value updates in place as it changes on the server. Polling endpoints read current state from the instances' public APIs.

The Vue SPA is pre-built at publish time and served as static files from the same mount point. No build step needed in your project.

No dependencies on any @prsm packages. The middleware reads from whatever objects you give it.

License

MIT