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

@stacklenzz/cli

v1.0.0

Published

Stacklenzz CLI - Install and validate backend observability dashboards in React and Next.js applications

Readme


Features

  • Automatic Environment Detection:
    • Automatically identifies active package managers (pnpm, npm, yarn, bun).
    • Detects frontend framework (Next.js App Router, Next.js Pages Router, Vite/React).
    • Identifies TypeScript vs JavaScript.
  • Doctor Diagnostic: Checks Node version, package health, and live reachability of your backend telemetry endpoint.
  • Non-Destructive Scaffolding: Automatically creates admin observability routes with security warnings without overwriting your existing code.
  • Dry-Run Mode: Inspect generated files before any changes are written to disk.

Installation

You can run the CLI on-demand via package runners (no permanent installation required):

# Using npx (scoped package or alias)
npx @stacklenzz/cli [command]

# Or with short command runner
npx stacklenzz [command]

Or install globally:

npm install -g @stacklenzz/cli

Once installed globally, you can invoke all commands directly using stacklenzz:

stacklenzz doctor
stacklenzz dashboard
stacklenzz init

Commands & Usage

Supported Binaries & Aliases

When installed globally or via package managers, the CLI is available under three equivalent commands:

  • stacklenzz
  • stackcli
  • stack

1. stacklenzz doctor (or npx stacklenzz doctor)

Diagnoses your environment, checks for installed dependencies, and verifies that your backend telemetry endpoint (/api/observability/stats) is online:

stacklenzz doctor

Options:

  • -e, --endpoint <url>: Test a custom backend telemetry URL (e.g., -e http://localhost:5000/api/observability/stats).

Example Output:

🩺 Stacklenzz CLI - System & Health Doctor

✓ Node.js runtime: v24.10.0 (compatible >= 18)
✓ Package manager: npm
✓ Frontend framework: next-app (TypeScript)
✓ Stacklenzz UI: Installed
✓ Telemetry endpoint reachable! HTTP 200 (45ms)
   Backend service: my-backend-api [production]
   Requests recorded: 14,291

Doctor check finished.

2. stacklenzz dashboard

Scaffolds a production-ready observability dashboard page into your React or Next.js app:

npx stacklenzz dashboard

Interactive Templates Available:

  1. ObservabilityDashboard: Universal console featuring interactive template switcher and 6 runtime themes (Recommended)
  2. FullBackendDashboard: Complete health suite with metric cards, HTTP status breakdown, latency gauge, runtime metrics, and live error inspector
  3. ApiOverviewDashboard: Request rates, status distribution, and top endpoints breakdown
  4. BackendPerformanceDashboard: P50, P95, and P99 latency percentiles and slowest routes
  5. ErrorMonitoringDashboard: Error spike tracking, 4xx/5xx streams, occurrence counters, and breadcrumbs
  6. NodeRuntimeDashboard: Process CPU %, RSS memory, heap allocations, and event loop lag
  7. MinimalDashboard: Compact status summary tile for embedding in existing admin sidebars

Options:

  • -r, --route <route>: Destination route path (default: /admin/observability).
  • -t, --template <template>: Template to generate (ObservabilityDashboard, FullBackendDashboard, etc.).
  • -p, --package-manager <pm>: Force a package manager (npm, pnpm, yarn, bun).
  • --dry-run: Preview file generation in the terminal without modifying any files.
  • -y, --yes: Skip interactive prompts and accept smart defaults.

Examples:

# Preview what would be created without disk writes:
npx stacklenzz dashboard --dry-run -y

# Generate a custom route in Next.js:
npx stacklenzz dashboard --route /admin/system-health -y

# Scaffold with specific package manager:
npx stacklenzz dashboard --package-manager pnpm

3. stacklenzz init

Creates a standardized, strongly-typed observability.config.ts configuration file in your project root:

npx stacklenzz init

🤝 Contributing & Documentation

Contributions are welcome! Please visit the official Stacklenzz Documentation Portal for full CLI command guides, framework setup tutorials, and troubleshooting tips.

To report bugs or contribute code:

  1. Open an issue or Pull Request on GitHub.
  2. Ensure unit tests pass (npm run test:cli).

License

Apache License 2.0 © Goodnews Azonubi