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

@flatbread/explorer

v1.2.0

Published

Single-page app for browsing a Flatbread content graph, served by flatbread start. Ships a Proof preset.

Readme

@flatbread/explorer

Content-relation explorer for Flatbread. v1 ships a generic single-page app (SPA) shell plus a Proof preset. When your config uses proofContent(), flatbread start serves this UI at /.

Try it locally

# flatbread.config.js includes proofContent()
npx flatbread start --watch --open
# → http://localhost:5057/          explorer
# → http://localhost:5057/graphql   Apollo sandbox

No separate Next.js app is required. Flatbread checks for the prebuilt assets under dist/static/ (see Develop in the monorepo). When those assets are missing, Flatbread does not serve the explorer and npx flatbread start --open opens /graphql instead. pnpm play:efforts runs the explorer build automatically.

Static deploy

This package publishes prebuilt assets under dist/static/. Drop them on any static host and point at a reachable Flatbread GraphQL endpoint:

https://your-host.example/?endpoint=https://api.example.com/graphql

Same-origin deploys (assets served by Flatbread) need no query param.

What the package exports

| Export | Role | | ------------------------------ | ------------------------------------------ | | getExplorerStaticDir() | Absolute path to dist/static for Express | | explorerAssetsPresent() | Whether prebuilt index.html exists | | matchExplorerPreset(content) | Detect Proof (and later presets) | | EXPLORER_BOOTSTRAP_PATH | Bootstrap JSON path Flatbread injects |

There is no public React component export in v1.

Develop in the monorepo

pnpm --filter @flatbread/explorer test
pnpm play:efforts   # builds explorer, then flatbread start --watch --open

For UI-only iteration with hot module replacement (HMR), run Flatbread and Vite in separate terminals (Vite proxies /graphql and /events to Flatbread on port 5057, or FLATBREAD_PORT when set):

pnpm exec flatbread start --watch          # terminal 1 — GraphQL on :5057
pnpm --filter @flatbread/explorer dev      # terminal 2 — SPA on :5173