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

@21stware/rpui

v0.9.26

Published

RPUI: static UI prototype renderer (RPML Web Components runtime)

Readme

@21stware/rpui

The RPUI Web Components runtime — renders RPML (.rpml) static UI prototypes in the browser. Importing the bundle registers the custom elements as a side effect and injects one global stylesheet.

Install

npm install @21stware/rpui
# or: bun add @21stware/rpui

Render a prototype

Import the runtime once; author with the bare RPML language tags (page, view, button, …):

<script type="module" src="node_modules/@21stware/rpui/dist/rpui.js"></script>

<page title="Tasks" route="/tasks">
  <view device="desktop">
    <viewport device="desktop">
      <navigator height="56"><logo label="PM+"></logo></navigator>
    </viewport>
  </view>
</page>

Programmatic use (the runtime re-exports the parser entry points, so no separate dependency is needed):

import { parseToPage } from '@21stware/rpui';
document.body.appendChild(parseToPage(rpmlSource));

rpui CLI

The package ships an rpui bin with two commands for working with a directory of .rpml files. Both render the directory as one navigable gallery (collapsible sidebar, hash routing, index.rpml as the default home) and share the same zero-dependency runtime.

rpui serve — host a directory of prototypes

Hosts the directory on a local server, prints the URL, and opens the browser:

npx @21stware/rpui serve .
  RPUI serving 8 .rpml files from /Users/me/prototypes

  Local:  http://localhost:3000

  Press Ctrl+C to stop

The directory is re-scanned on every page load, so editing a .rpml and refreshing the browser shows the change — no build step, no watcher, no websocket.

| Argument | Description | |----------|-------------| | [dir] | Directory to serve (default: current directory) | | -p, --port | Port (default 3000; auto-increments if busy) | | --host | Host (default localhost) | | --no-open | Don't open the browser on start (headless / CI) |

# serve a specific directory on a chosen port, without opening a browser
npx @21stware/rpui serve ./prototypes --port 4000 --no-open

rpui build — compile to one HTML file

Compiles the directory into a single self-contained HTML file (inlined runtime + gallery) that works offline from file://:

npx @21stware/rpui build .
  ✓ compiled 8 .rpml files → prototypes.html

| Argument | Description | |----------|-------------| | [dir] | Directory of .rpml (recursive; default: current directory) | | -o, --out | Output HTML path (default: <dir>.html) | | --title | Gallery title (default: directory name) |

# compile to a named file with a custom title
npx @21stware/rpui build ./prototypes -o prototypes.html --title "Prototypes"

Exports

| Export | Description | |--------|-------------| | @21stware/rpui | side-effect entry; registers all custom elements and injects the runtime stylesheet | | registerAll() | re-run registration (idempotent; define() skips already-registered tags) | | parseToPage(source) | parse .rpml text into a ready-to-mount <page> element | | rewriteTags(source) | rewrite bare RPML language tags to the registered component tags |

See the repo root for the full RPML spec, llms.txt component reference, and the SKILL.md authoring workflow.