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

shardview

v0.4.1

Published

Self-hosted database browser for any Prisma project. Drop-in CLI to browse, filter and edit data with tabs, multi-level filters, mass edit, cascade delete and pivot views.

Readme

ShardView

A self-hosted database browser for any Prisma project. Drop into a project, point it at your schema, get a fast UI to browse, filter, edit and bulk-mutate your data.

cd path/to/your-prisma-project
npx shardview

That's it — your default browser opens at http://localhost:5555.

ShardView reads your project's schema.prisma at runtime, loads your project's own @prisma/client (so it works with whatever Prisma version you use), introspects models via the DMMF and serves a React UI that runs entirely on your machine.

Features

  • Tabs — open as many models as you want; tabs are draggable, persist across reloads, support Cmd/Ctrl+click (open in new tab), Cmd/Ctrl+W (close), middle-click and a right-click context menu.
  • Sidebar — searchable model list, drag-reorderable pinned section, resizable width, dark mode.
  • Inline editing — click any cell to edit. Enums, booleans, dates, numbers, scalar lists and relations all have appropriate editors. FK scalars accept pasted IDs; relation cells expose a picker that opens a paginated table of the related model.
  • Multi-row filters — compose any number of conditions, switch between AND/OR group, and follow relation paths up to two hops deep (e.g. post.author.email contains "..."). Export the active filter as a ready-to-paste Prisma snippet.
  • Mass edit — select rows, choose which fields to apply, run a single updateMany.
  • Cascade delete — for projects whose schema doesn't declare onDelete: Cascade, optionally walk every FK reference and remove dependents recursively.
  • Pivot views — models with two or more FKs are detected as join tables and offer two extra views (joined-row and cards) that show the connected entities side-by-side, all inline-editable. Single relation cells whose target is a pivot get a split button that jumps directly to the model on the other side.
  • No backend required — the API runs in-process; nothing leaves your machine.

Usage

# inside a project that has prisma set up
npx shardview

# point at a different schema, change port, don't open browser
npx shardview --schema src/db/schema.prisma --port 5556 --no-browser

# load a specific .env file
npx shardview --env .env.staging

CLI options

| Option | Default | Description | | ----------------- | ------------------------ | -------------------------------------------- | | --schema <path> | ./prisma/schema.prisma | Path to the Prisma schema file. | | --port <num> | 5555 | Port to bind the local server. | | --env <path> | auto-discovered | Custom dotenv file to load before starting. | | --no-browser | (open by default) | Skip launching the default browser on boot. |

Requirements

  • Node.js 18+
  • A project with prisma and @prisma/client installed and a DATABASE_URL reachable from your machine.
  • Run prisma generate first if you haven't already.

ShardView resolves @prisma/client from your project's node_modules, or from a custom output path declared in the schema's generator block — so both classic and modern Prisma layouts work.

Install globally (optional)

npm install -g shardview
shardview              # then just type 'shardview' anywhere

npx shardview is recommended for occasional use; install globally if you reach for it daily.

How it works

ShardView ships two halves:

  • API — an Express app generated at startup from your project's DMMF. Every endpoint operates on model names dynamically; no schema is hardcoded.
  • UI — a single-page React app served as static files from the same process.

There is no shadow database, no migration step, no extra service. Schema introspection happens in-process the moment the CLI starts.

License

BSD 3-Clause © 2026 [email protected]