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

@textui/widgets

v0.5.0

Published

The TextUI component catalog - layout, display, controls, data, overlays and charts

Readme

@textui/widgets

npm license

The component catalog: eighty-seven components built out of the four primitives in @textui/core.

npm install @textui/widgets
import { Card, Row, Badge } from '@textui/widgets';

<Card title="Services">
  <Row gap={2}>
    <text content="api" />
    <Badge label="up" tone="success" />
  </Row>
</Card>

Importing is registering

There is nothing to call first. <Card/> compiles to a node that carries the imported function, and the runtime uses that in preference to any registry - so a screen written in JSX renders with the registry empty.

registerBuiltins(app) exists for the other case: a screen named in data, where a string has to resolve to something.

import { createApp } from '@textui/core';
import { registerBuiltins } from '@textui/widgets';

const app = createApp({ terminal, root, onBoot: registerBuiltins });

It registers the catalog, the surface layouts and the built-in shells in one call, and returns one Disposable that takes all of it back out. For a static render, renderOnce(node, { components: CATALOG }) is the same idea.

What is here

| Group | Count | | |---|---|---| | layout | 10 | Row, Column, Grid, Panel, Splitter, ScrollView | | display | 14 | Heading, Badge, Card, Alert, Progress, Spinner, Timeline | | control | 9 | Button, TextInput, TextArea, Select, Checkbox, RadioGroup, Slider, Switch | | data | 8 | Table, Tree, List, CodeViewer, MarkdownView, Feed | | overlay | 8 | Dialog, CommandPalette, PathPicker, Toast, Tooltip | | navigation | 7 | Tabs, Menu, Breadcrumb, Wizard | | surface | 9 | Mounts and layouts - how a screen is divided | | chart | 7 | Sparkline, BarChart, LineChart, Histogram, Heatmap, Gauge | | form | 5 | Form, Field, validation | | shells | 4 | The frame around an application | | panel | 1 | A pane that opens a resource with whatever viewer is registered |

One file per component, in a folder per group - src/display/badge.ts. ls src/display/ is the inventory.

Runtime

No dependencies beyond @textui/core, and no node: imports. Node 22+ and Bun.

Documentation

https://softov.github.io/textui/

Every component has its own page, with the prop table generated from the source and a working example - see docs/components/.


Part of TextUI - documentation - getting started

@textui/kit one install · @textui/core the runtime · @textui/widgets the catalog · @textui/terminal adapters and input · @textui/testing the harness · @textui/cli the CLI