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

design-os-code2flow

v0.3.4

Published

Local CLI that turns a Next.js codebase into a living user-flow canvas: real screenshots per screen, code-evidenced transitions, PRD stories, lint and diff.

Readme

Code2Flow

Turn a web codebase into a local, evidence-backed Flow Canvas your product team can explore. Every screen is a real screenshot, every arrow is an action found in the code with file:line evidence and a confidence tier. Nothing leaves your machine.

Supported today: Next.js App Router, React Router (v6/v7), static HTML folders — see adapters.

Flow canvas

Install

npm i -g design-os-code2flow
code2flow

Node 20+, Google Chrome, and the target app's development server are required.

Quick start

code2flow init  /path/to/your-app    # config, .gitignore, AGENTS.md section, agent skills
code2flow run   /path/to/your-app    # dev server → scan → screenshots → lint → offline export
code2flow serve /path/to/your-app    # http://127.0.0.1:4317

Terminal run

Start with the user guide — install to hand-outs, step by step.

What you get

See the product map first. Features and the transitions between them, before any single flow.

Product map

Inspect what the code found. Click a screen or an edge pill: trigger, target, confidence, file:line evidence.

Inspector panel

Recognize UI states. Modals, tabs, drawers, dropdowns and hover overlays are frames of their own, on a tinted container next to their page.

State Screens

Present one story at a time. A clean lane per story, keyboard stepping, both sidebars out of the way.

Present lane

Play every step. Grid view shows every screenshot of a story in order; click a card for Focus view, one step at a time with the evidence beside it.

Play gallery

Play focus

Keep the legend close. The left rail holds features, stories and the arrow legend; every canvas icon explains itself on hover.

Rail legend

Docs

For agents: skills code2flow-map-codebase, code2flow-answer-flow-questions, code2flow-stories-from-prd ship in the package and are copied into your repo by code2flow init.

Develop

npm run cli -- scan fixtures/synthetic/app-router-basic   # run from source (tsx)
npx tsc --noEmit && npx vitest run                          # browser tests drive the installed Chrome
npm run recall                                              # parser vs hand-labelled ground truth
npm run audit:design                                        # design:os floors on a fixture export

Layout: src/parser (adapters → CanonicalFlowGraph), src/snapshot (Playwright capture), src/lint, src/viewer (vanilla TS + SVG), all sharing only src/schema.