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

api-profiler-vscode

v1.0.0

Published

See how fast your API routes actually are, next to where they are written.

Readme

API Performance Profiler

See how fast your API routes actually are, next to where they are written. Measured on real requests, never guessed.

17  app.get('/users/:id', (req, res) => {      🟢 1.8ms · live
21  app.get('/slow', async (req, res) => {     🟡 202.0ms · 3 min ago
30  app.post('/login', (req, res) => {         🟢 28.2ms · live

The core idea: hit the route once, we replay it a thousand times. The profiler runs inside your app as middleware, so it sees the real request: the working token, the path param that exists, the body the route accepts. It records that request in memory and can replay it under load from a ▶ Load test lens above the route.

Setup

  1. In your Express (or NestJS-on-Express) app:

    npm install @api-profiler/express
    const { profiler } = require('@api-profiler/express');
    app.use(profiler());   // before your routes

    Not installed yet? When the extension finds routes in a workspace without the profiler it asks once, and offers Install and Add app.use(profiler()) (with a diff preview) — also in its sidebar and on every route line.

  2. Start the app and send it a few requests.

  3. Open the API Profiler view in the activity bar. Figures appear at the end of each route line and in the sidebar within a second.

What you get

  • Inline latency after every route line: 🟢 84.0ms · live. A route that goes quiet keeps its last figure, dimmed, with its age. Hover for average, max, count, error rate and requests per second.
  • Routes sidebar: all routes, slowest first; click one to jump to its line. Load-test results in their own section, never mixed with observed traffic.
  • ▶ Load test above each route that has a recording. One click replays the recorded request (10 connections × 5 s by default) and shows the route's server-side figures for the run.
  • Status bar: connected, app not running, or setup needed.

Express routes are found through app.METHOD, routers, app.use('/prefix', router) across files and route() chains; NestJS through @Controller + @Get and setGlobalPrefix. When a mount prefix cannot be resolved the route is matched by its tail and the hover says so.

Rules that never bend

  • A number that was not measured is never shown. Fewer than 10 samples → req/s is --; no recording → "send a request first".
  • Latency and throughput are never mixed up, and every figure says which mode produced it: observed traffic or generated load.
  • Load tests are off in production, localhost only, GET only unless a route is listed in profiler({ allowLoadOn: ['POST /search'] }).
  • Recorded requests hold live credentials. They stay in your app's memory, are masked before the extension ever sees them, and nothing leaves your machine. There is no account, no telemetry, no server.

Settings

| Setting | Default | | |---|---|---| | apiProfiler.port | 4780 | Port of the local channel the app opens | | apiProfiler.decorations | true | Show latency at the end of route lines | | apiProfiler.thresholds.fast | 200 | 🟢 below this average (ms) | | apiProfiler.thresholds.warn | 500 | 🟡 below this, 🔴 from here (ms) | | apiProfiler.load.connections | 10 | Concurrent connections for a load test | | apiProfiler.load.duration | 5 | Seconds a load test runs |

Also in the terminal

npx api-profiler gives the same live table without VS Code.

Licence

AGPL-3.0-only. Source, issues and roadmap: https://github.com/Nahid625/api-performance-profiler