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

@traceletdev/cli

v0.6.1

Published

Performance toolkit that brings Lighthouse-level insight and ESLint-level ergonomics

Readme

Tracelet

Small traces. Big clarity.

Tracelet is a modern performance toolkit that brings Lighthouse-level insight and ESLint-level ergonomics into one seamless workflow.

Go Version License

Features

  • 🚀 Fast - Every operation completes in seconds
  • 🎯 Deterministic - Reproducible metrics regardless of environment
  • 🔧 Integrated - Fits into your dev loop, editor, and CI
  • 👁️ Transparent - See what's happening, not just summaries

Quick Start

Install via npm (Recommended)

# Install tracelet CLI
npm install -D @traceletdev/cli

# Install framework plugin (choose one)
npm install -D @traceletdev/next    # for Next.js
npm install -D @traceletdev/vite    # for Vite

# Initialize config
npx tracelet init

# Lint
npx tracelet lint

# Probe
npx tracelet probe http://localhost:3000

See Framework Integration below for setup details.

Build from source

# Build
go build -o tracelet ./cmd/tracelet

# Initialize
./tracelet init

# Lint
./tracelet lint

# Probe
./tracelet probe http://localhost:3000

What's Included

📋 Lint

Performance budgets as code. Enforce route-level JavaScript limits with ESLint-style rules.

tracelet lint
# Route        JS(gzip)  Verdict
# /            9KB       ✅
# /product     47KB      ❌ over budget

🔍 Probe

Chrome-based performance audits in 2-3 seconds. Collect TTFB, FCP, LCP, CLS, TBT-Lite, FSI.

tracelet probe http://localhost:3000 --profile mobile

🖥️ HUD

Real-time overlay for development. See live performance feedback in your browser.

Tracelet HUD showing route budget violations on a live Next.js app

The HUD starts automatically when you run your dev server — no separate process or <script> tags needed.

Next.js — wrap your config with withTracelet:

// next.config.mjs
import { withTracelet } from '@traceletdev/next';
export default withTracelet({ /* ...your config */ });

Vite — the plugin handles it automatically in dev mode:

// vite.config.js
import tracelet from '@traceletdev/vite';
export default defineConfig({ plugins: [tracelet()] });

That's it. pnpm dev (or npm run dev) will start the HUD server and inject the overlay. The overlay shows a Routes tab (lint budgets), a Metrics tab (live Web Vitals), and a Components tab (React re-render counts).

Manual setup (without a framework plugin):

tracelet hud

Then add to your app's HTML:

<!-- In <head>, before your app bundle -->
<script src="http://localhost:3111/hook.js"></script>
<!-- Before </body> -->
<script src="http://localhost:3111/overlay.js"></script>

See @traceletdev/react for the bundled-app (import) setup.

🔄 CI

Automated checks with baseline comparison. GitHub Action ready.

tracelet ci --compare .tracelet/baseline.json --format markdown

📝 VS Code

In-editor diagnostics with quick fixes. See issues as you code.

Install the extension and get instant feedback on save.

Documentation

Framework Integration

Next.js

  1. Install packages:

    npm install -D @traceletdev/cli @traceletdev/next
  2. Add postbuild script to package.json:

    {
      "scripts": {
        "postbuild": "tracelet-next collect"
      }
    }
  3. Build your app:

    npm run build
    # Stats automatically collected
  4. Lint with tracelet:

    npx tracelet lint

Vite

  1. Install packages:

    npm install -D @traceletdev/cli @traceletdev/vite
  2. Add plugin to vite.config.js:

    import { defineConfig } from 'vite';
    import tracelet from '@traceletdev/vite';
    
    export default defineConfig({
      plugins: [
        tracelet(),
        // your other plugins
      ],
    });
  3. Build your app:

    npm run build
    # Stats automatically collected during build
  4. Lint with tracelet:

    npx tracelet lint

Adapters (Legacy)

For projects not using npm packages, see adapter files in adapters/ directory:

  • Next.js - node adapters/next-collect.js after build
  • Vite - Use adapters/vite-plugin-tracelet.cjs in vite.config.js

Examples

See examples/ — drop-in config examples (basic, strict, CI) and pointers to the runnable Next.js/Vite fixture apps.

Development

# Run tests
go test ./tests/integration -v

# Build CLI
go build -o tracelet ./cmd/tracelet

# Build VS Code extension
cd ui/vscode-extension
npm install
npm run compile

Project Structure

tracelet/
├─ cmd/tracelet/        # CLI entrypoint
├─ internal/            # Core packages
│  ├─ config/          # Config loader
│  ├─ lint/            # Linting engine
│  ├─ probe/           # Chrome probe
│  ├─ hud/             # HUD server
│  ├─ ci/              # CI helpers
│  └─ reporters/       # Output formatters
├─ adapters/            # Framework adapters
├─ ui/vscode-extension/ # VS Code extension
├─ tests/              # Tests and fixtures
└─ docs/               # Documentation

License

MIT

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines and our Code of Conduct. Release history is in CHANGELOG.md.


Tracelet — performance you can lint.