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

create-terminatui

v0.7.0

Published

Create template for TerminaTUI CLI/TUI applications

Readme

create-terminatui

Create template for TerminaTUI CLI/TUI applications.

Note: This package is part of the terminatui monorepo.

Usage

bun create terminatui my-app
cd my-app
bun install
bun run start

What's Included

The template creates a TerminaTUI application with:

  • TuiApplication - An app that supports both CLI and TUI modes
  • Sample command - A greet command demonstrating options, TUI metadata, and result rendering
  • TypeScript - Strict TypeScript configuration
  • Dev container - Ready for containerized development

Running Your App

# TUI mode (default)
bun run start

# CLI mode
bun run start --mode cli greet --name World

# Show help
bun run start help

Adding Commands

  1. Create a new file in src/commands/
  2. Define options with OptionSchema
  3. Create a class extending Command<typeof options>
  4. Add the command to your app in src/index.ts

See src/commands/greet.ts for a complete example.

Documentation


Development (Contributing to this template)

This section is for developing the create-terminatui package itself.

Setup

From the monorepo root:

bun install

Available Scripts

Run from the packages/create-terminatui directory:

| Script | Description | |--------|-------------| | bun run build | Build the create script | | bun run test | Run full test (create + build + run) | | bun run test:create | Create a test app in /tmp/terminatui-test-app | | bun run test:template | Build and run the test app in CLI mode | | bun run test:template:tui | Run the test app in TUI mode | | bun run cleanup | Remove the test app directory |

Development Workflow

Test the full create flow

bun run cleanup                   # Clean up any previous test
bun run test                      # Create, build, and run test app
bun run test:template:tui         # Optionally test TUI mode
bun run cleanup                   # Clean up when done

Publishing

Both @pablozaiden/terminatui and create-terminatui are published together when a GitHub release is created:

  1. Create a GitHub release with a tag like v1.0.0
  2. The workflow automatically:
    • Sets both packages to version 1.0.0
    • Updates the template's terminatui dependency to ^1.0.0
    • Publishes both packages to npm

Key Files

  • src/create-terminatui.ts - The create script that copies template files
  • template/ - All files in this directory are copied to the user's project
  • template/src/commands/greet.ts - Sample command demonstrating all features

License

MIT