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

@themukherjee/toview

v0.1.0-beta.1

Published

AI-native admin console for your own product. Introspects your Next.js + Prisma app and generates a capability graph an LLM can safely query.

Readme

toview

Your backend already knows everything. Why build another dashboard to see it?

toview introspects a Next.js + Prisma app and generates a capability graph — a typed map of what your backend can do (search, create, update, delete, per model) — without you hand-building admin pages. This is Phase 1 of a three-phase system; later phases turn the same graph into a natural-language admin console and a curated error/issue feed for AI coding agents.

Status

Phase 1 (this package): working, pilot-testing. Next.js + Prisma only for now.

Quick start

npx @themukherjee/toview init

This will:

  1. Detect your framework, ORM, auth provider, and known integrations (Stripe, Redis, S3, etc.)
  2. Show you what it found — nothing is written until you confirm
  3. Parse your Prisma schema and build a capability graph (.admin/graph.json)
  4. Scaffold .admin/ with editable config, permissions, and per-model annotation files

Re-run any time with:

npx @themukherjee/toview inspect

graph.json is fully regenerated on every run. Everything else in .admin/ (config, permissions, annotations) is written once and preserved across re-runs — edit it freely.

What gets generated

.admin/
├── config.ts        # detected stack + where to plug in your auth
├── graph.json        # the capability graph — regenerated every run
├── permissions.ts    # role -> allowed action mapping
├── tools/             # per-model annotations for fields toview couldn't safely infer
└── generated/         # cache for later phases, gitignored

Design decisions worth knowing

  • No LLM call at init time. Semantics come from your Prisma schema directly: a SubscriptionStatus enum gives real values for free. A bare Int field named status or role does not get guessed at — it's flagged under needsAnnotation for you to describe by hand. Wrong guesses on fields that gate destructive actions are worse than an honest "I don't know."
  • Static introspection only. No DB connection, no dev server required — the Prisma schema file is parsed directly. This keeps npx @themukherjee/toview init fast and reliable in CI/sandboxed environments.
  • Destructive by default is confirmed. Every delete tool, and any update tool touching a field that looks money-related (amount, price, balance, stripe*, ...), is flagged requires_confirmation in the graph.

Requirements

  • Node >= 18
  • A Next.js project with prisma/schema.prisma

Roadmap

  • Phase 2: natural-language query → capability-graph tool call → generated table/chart/KPI UI
  • Phase 3: read-only MCP server exposing errors correlated to capability-graph nodes, for coding agents like Claude Code

License

MIT