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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@rsc-xray/report-html

v0.8.0

Published

Generate offline HTML reports for RSC X-Ray analysis: visualize boundaries, Suspense, bundle sizes, and optimization suggestions

Readme

npm Downloads

@rsc-xray/report-html

npm Downloads

HTML renderer for the model.json contract produced by the analyzer. Generates a static, shareable report without any server dependency.

What it solves

  • Converts analyzer output into an interactive HTML artifact that teams can open locally or publish from CI.
  • Highlights server/client boundaries, Suspense nodes, bytes per island, diagnostics, and suggestions.
  • Ships as an ESM module so it can run in Node or bundle into other tooling.

Installation

pnpm add -D @rsc-xray/report-html

Step-by-step usage

  1. Generate model.json using the CLI or analyzer API.

  2. Render the report:

    import { renderReport } from '@rsc-xray/report-html';
    import fs from 'node:fs/promises';
    
    const model = JSON.parse(await fs.readFile('model.json', 'utf8'));
    const html = renderReport({ model });
    await fs.writeFile('report.html', html, 'utf8');
  3. Open report.html in any browser or upload it as a CI artifact.

Prefer the CLI? Run:

pnpm -F @rsc-xray/cli report --model ./model.json --out ./report.html

Tests

  • packages/report-html/src/__tests__/renderReport.test.ts snapshots the generated HTML to guarantee parity with the documented workflow.

Run the suite with:

pnpm -F @rsc-xray/report-html test -- --run

RSC X‑Ray Pro

Paid plans available — unlock the full toolkit:

  • Overlay UI — live boundary tree, Suspense markers, bundle bytes, hydration timings
  • Flight tap & timeline — capture React Flight streaming; visualize chunk order, sizes, labels
  • Cache lens — inspect tags, revalidate policies, and route impact
  • Waterfall detector — find sequential awaits; guided fixes (preload/parallelize)
  • Codemods — use client, wrap with Suspense, add preload/hydration hook
  • VS Code extension — analyzer diagnostics + “Open in XRay” deep links
  • CI budgets & trends — PR comments, thresholds, and historical deltas

Learn more → https://rsc-xray.dev • Pricing → https://rsc-xray.dev/pricing