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

1ch

v0.6.0

Published

Terminal UI rendered to fixed character grids via a custom HTML element

Downloads

180

Readme

1ch

Character-grid UI that runs in the browser. One <term-ui> element turns semantic HTML into a fixed-width terminal render -- boxes, tables, charts, progress bars, status lines -- all from standard tags.

1ch

Playground · Docs · npm

Install

npm install 1ch

Use

Register once, then forget about it:

import { registerTermUIElement } from "1ch";
import "1ch/style.css";
registerTermUIElement();

Drop it in with your preferred reactivity provider:

function DeployPanel() {
  const [build, setBuild] = useState(0);
  const { metrics } = useMetrics();

  return (
    <term-ui width="60" mode="dark">
      <section gap="1">
        <article title="deploy v2.4.1">
          <progress label="build" value={build} max="100"></progress>
          <progress label="tests" value="94" max="100"></progress>
        </article>
        <figure height="4" fill>
          {metrics.map(v => <data value={v} />)}
        </figure>
        <nav>
          <button onClick={() => deploy()}>deploy</button>
          <button onClick={() => rollback()}>rollback</button>
        </nav>
        <footer left=" healthy" right="64s ago "></footer>
      </section>
    </term-ui>
  );
}

<article> is a box. <progress> is a bar. <figure> is a chart. <nav> lays out horizontally. <footer> is a status line. No wrapper components, no special syntax -- just HTML that happens to render as a terminal.

Why

Tables draw with │─┼. Progress bars fill with ████░░░░. Buttons are [ deploy ]. Everything snaps to a character grid and it just looks right.

Who needs designs for internal tools when a character grid gives you a clean UI for free? Dashboards, admin panels, monitoring views, CLI-style apps -- just write the HTML and it looks like something you'd actually want to use.

Your CSS still works -- display: grid, gap, grid-template-columns get picked up from getComputedStyle and mapped to the grid. It's a web component, so React, Vue, Svelte, htmx, plain HTML -- whatever. onClick on a <button> fires like you'd expect.

Zero dependencies. Also does markdown and JSON (source-format="markdown" on the element).

Quick reference

| Element | Becomes | |---------|---------| | <article title="X"> | box | | <figure> | chart (text content, <data> children, or values) | | <footer left="X" right="Y"> | status bar | | <nav> | horizontal stack | | <progress> | bar | | <hr> / <hr label="X"> | separator / divider | | <pre> | code block | | <table> | table | | <section>, <div> | container (layout from CSS) |

Need custom behavior? Register your own compiler via registerHtmlTagCompiler(). Full details in the docs.

License

MIT