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

helpgenai-runtime-react

v1.0.1

Published

React (Next.js App Router) display runtime for helpgenai. Reads generated help bundles from disk and renders them as a /help/{pageKey} route. Mirrors the Helpgenai.Runtime.Blazor contract.

Readme

helpgenai-runtime-react

React (Next.js App Router) display runtime for helpgenai. Reads generated help bundles off disk and renders them as /help + /help/<page> routes. Mirrors the Blazor runtime's display contract — bundles generated against either runtime are interchangeable.

License: Polyform Free Trial 1.0.0 + commercial-licensing addendum. 32-day free evaluation; any continued use requires a paid license. See LICENSE and contact [email protected].

Install

npm install helpgenai-runtime-react

Peer deps: react ^18 (or ^19) and react-dom.

Quick start (Next.js App Router)

// app/help/[pageKey]/page.tsx
import * as path from "node:path";
import { HelpPageView } from "helpgenai-runtime-react";
import { loadHelpPage } from "helpgenai-runtime-react/server";

const helpRoot = path.join(process.cwd(), "public", "help");

export default async function HelpPage({
  params,
}: {
  params: { pageKey: string };
}) {
  const bundle = await loadHelpPage(params.pageKey, { helpRoot });
  return <HelpPageView bundle={bundle} />;
}
// app/help/page.tsx
import * as path from "node:path";
import { HelpIndex } from "helpgenai-runtime-react";
import { loadHelpMap } from "helpgenai-runtime-react/server";

const helpRoot = path.join(process.cwd(), "public", "help");

export default async function HelpIndexPage() {
  const helpMap = await loadHelpMap({ helpRoot });
  return <HelpIndex helpMap={helpMap} />;
}
// app/layout.tsx — import the runtime CSS once
import "helpgenai-runtime-react/styles.css";
// next.config.mjs — let Next.js transpile the runtime's ESM
export default {
  transpilePackages: ["helpgenai-runtime-react"],
};

That's the whole integration. Run npx helpgenai build <page> from your tools/helpgen/ workspace and the bundle lands in public/help/<page>/ where the loader expects it.

Two entry points

  • helpgenai-runtime-react — React components. Pure JSX. Safe to import from Server Components, Client Components, or any React tree.
  • helpgenai-runtime-react/server — Server-only filesystem loaders (loadHelpMap, loadHelpPage, resolveScreenshotPath). Uses node:fs, so importing it from a "use client" module fails at build time.

Component reference

| Component | Where | What it does | | ------------------------ | --------- | ------------------------------------------------------- | | HelpPageView | server/client | Full per-page layout: breadcrumb, tabs, prose, panels, TOC, back-to-top | | HelpIndex | server/client | /help landing page grouped by helpmap.yaml | | MarkdownHelpContent | server/client | Renders the engine's prose markdown body | | IconLegendPanel | server/client | Renders icons.json typed reference panel | | CellStatesPanel | server/client | Renders cell-states.json typed reference panel | | BackToTop | client | Floating button shown after the user scrolls |

v1 scope

What's in:

  • The full display layer for /help + /help/<page>.
  • Server-side filesystem loaders for the engine's bundle layout.
  • The same editorial CSS shipped by the Blazor runtime, vendored verbatim.

What's deferred to v2:

  • Admin settings UI (helpmap / styleguide / hints / CONTENT-STYLE editor).
  • In-app guidance editor (per-section + per-page authoring).
  • Screenshot lightbox (delegated click handler).

If you need any of these today, the Blazor runtime ships them all — either render help from Blazor and the app from React, or open an issue and the v2 port can be prioritized.

Bundle layout

The engine writes:

<output_root>/
  _assets/
    helpmap.json            ← consumed by loadHelpMap()
    search-index.json
  <page-key>/
    metadata.json           ← consumed by loadHelpPage()
    <page-key>.md           ← prose body
    icons.json              ← optional typed-panel data
    cell-states.json        ← optional typed-panel data
    screenshots/*.png

Point helpRoot at <output_root> (typically public/help for a Next.js app) and the loaders find everything by convention.

Working example

See examples/react-todo in the helpgen monorepo — a runnable Next.js app that mirrors the Blazor todo example.