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

@bryophyte/analyser

v0.1.0

Published

Static analysis for react components

Readme

Bryophyte Analyser

Bryophyte Analyser is a CLI/TUI for React + TypeScript codebases that discovers exported components, records prop usage, and traces where components are used across packages.

Quick Start

Prerequisites

  • Bun installed (bun --version)
  • A project or monorepo with package.json files

1) Install

Inside this repo:

bun install

2) Initialize Bryophyte once at your workspace root

bunx bryophyte init .

This creates .bryophyte/ and a central analyses folder at .bryophyte/analyses/.

3) Analyze one or more packages

bunx bryophyte analyse packages/ui
bunx bryophyte analyse packages/app

Each analyzed package is written as a JSON file to .bryophyte/analyses/<package-name>.json.

4) Search component usage in a target package

bunx bryophyte search Button packages/app --svg

This prints a Mermaid graph and can optionally write .mmd/.svg output.

Command Reference

bryophyte init [rootPath]

Initialize (or reuse) a central .bryophyte folder.

bunx bryophyte init .

bryophyte analyse <projectPath>

Analyze exported React components in a project.

bunx bryophyte analyse packages/ui

What it records:

  • component exports (default/named; function/arrow/class/variable)
  • extracted prop definitions
  • component usages and prop usage metadata (including snippets and context)

bryophyte search <componentName> <targetPath>

Search for usage flow of a previously analyzed component.

bunx bryophyte search Button packages/app -o button-usage.mmd --svg

Useful flags:

  • -o, --out <file> write Mermaid graph to file
  • --svg [file] render SVG graph
  • --list choose package when multiple packages export the same component
  • --skip-intermediate collapse intermediate chain nodes

Typical Workflow

# one-time setup
bunx bryophyte init .

# analyze source and target packages
bunx bryophyte analyse packages/ui
bunx bryophyte analyse packages/app

# trace one component into app routes
bunx bryophyte search Button packages/app --svg

Notes

  • Search relies on analysis files in .bryophyte/analyses/; run analyse before search.
  • Route traversal stops when a path contains a routes segment.
  • Path aliases and re-exports are supported with best-effort resolution.