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

@actionbookdev/json-ui

v0.1.1

Published

Universal JSON-to-UI rendering components for AI Agent reports

Readme

@actionbookdev/json-ui

Universal JSON-to-UI rendering components for AI Agent reports, based on json-render.

AI Agents output structured JSON, json-ui renders it into beautiful HTML reports.

Installation

pnpm add @actionbookdev/json-ui

CLI Usage

# Render JSON and open in browser
json-ui render report.json

# Render to file
json-ui render report.json -o out.html

# Read from stdin (pipe from AI Agent)
cat report.json | json-ui render -

Quick Start

import {
  Report,
  BrandHeader,
  Section,
  MetricsGrid,
  Table,
  Callout,
  BrandFooter,
} from '@actionbookdev/json-ui';

function DashboardReport() {
  return (
    <Report>
      <BrandHeader badge="📊 Weekly Report" />
      <Section title="Overview" icon="chart">
        <MetricsGrid
          metrics={[
            { label: 'Users', value: '12.5K', trend: 'up' },
            { label: 'Revenue', value: '$48K', trend: 'up' },
          ]}
          cols={2}
        />
      </Section>
      <Section title="Alerts" icon="warning">
        <Callout type="tip" title="Performance" content="API latency reduced by 60%" />
      </Section>
      <BrandFooter
        timestamp={new Date().toISOString()}
        attribution="Powered by ActionBook"
      />
    </Report>
  );
}

Components

Layout

| Component | Description | |-----------|-------------| | Report | Top-level container with theme support (light/dark/auto) | | Section | Collapsible section with title and icon | | Grid | Grid layout container | | Card | Card container with padding and shadow |

Text Content

| Component | Description | |-----------|-------------| | Prose | Markdown-like text (bold, italic, code, lists) | | Abstract | Abstract text with keyword highlighting | | Highlight | Blockquote with type styling (quote/important/warning) | | Callout | Colored callout boxes (info/tip/warning/important/note) | | KeyPoint | Key finding card with icon |

Academic / Technical

| Component | Description | |-----------|-------------| | Formula | LaTeX formula rendering | | Theorem | Theorem/lemma/proposition/corollary blocks | | Algorithm | Pseudocode with line numbers and indentation | | CodeBlock | Code block with syntax and line numbers | | DefinitionList | Term/definition pairs |

Data Display

| Component | Description | |-----------|-------------| | MetricsGrid | Metric cards with trend indicators | | Table | Generic table with striped/compact options | | ResultsTable | Results table with cell highlighting | | ContributionList | Numbered items with badges | | MethodOverview | Step-by-step flow visualization | | TagList | Grouped tags |

Media

| Component | Description | |-----------|-------------| | Image | Image with caption | | Figure | Multi-image figure with label and caption |

Interactive

| Component | Description | |-----------|-------------| | LinkButton | Link button with icon | | LinkGroup | Group of link buttons |

Info Headers

| Component | Description | |-----------|-------------| | PaperHeader | Title, ID, date, categories | | AuthorList | People with affiliations | | BrandHeader | Top badge and branding | | BrandFooter | Timestamp and attribution |

Catalog (for json-render)

import { catalog } from '@actionbookdev/json-ui/catalog';

// Use with json-render
const ui = createUI(catalog);

Features

  • Light/dark theme auto-detection
  • Responsive layout
  • Print-optimized styles
  • LaTeX basic rendering (Greek letters, superscripts, common symbols)
  • All components validated with Zod schemas

License

MIT