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

roy-tty-cli

v1.0.9

Published

Terminal todo CLI

Downloads

552

Readme

ROY-TTY

A terminal based todo app, built from scratch to understand how cli tools actually work under the hood.

Why this exists

I built this not because i needed another todo app but because i wanted to understand things. Things like how a cli command gets installed globally on a machine, how npm publishing works, how you can persist data without touching a database, and how terminal ui libraries behave when you actually use them in a real project.

This is not a product. It is a learning artifact.

Everything runs inside your terminal and everything gets saved to a local json file on your system. No server. No cloud. No account.

What it can do

Add tasks from the command line directly or through an interactive menu.

List everything with category grouping and current status so you can see whats done and whats still pending.

Toggle task state between done and pending whenever you need to.

Delete tasks cleanly from the list.

Organize by category so tasks like backend work, dsa practice, and system design stuff dont all pile into the same undifferentiated list.

Check your stats to see a simple progress breakdown of how many tasks you have finished.

Interactive mode gives you a menu driven interface inside the terminal using inquirer so you dont have to remember any commands.

Direct cli mode lets you just fire commands if you know what you want.

How to install

npm install -g roy-tty-cli

How to use it

Run it without any arguments to open interactive mode:

roy-tty

Or use it directly from the command line:

roy-tty add "finish the auth module"
roy-tty list
roy-tty list --done
roy-tty list --pending
roy-tty list --category backend
roy-tty done 1
roy-tty delete 1

Where your data lives

All your tasks are stored in a single json file at:

~/.roy-tty/todos.json

Nothing leaves your machine. Its just the node fs module reading and writing a file. Thats the entire database layer.

How its structured

index.js      entry point, wires up the cli
menu.js       interactive mode and the inquirer ui
commands.js   all the actual command logic lives here
store.js      the file based data layer
ui.js         terminal rendering and table formatting

What this project actually is

This is not production ready and it was never meant to be. No sync, no auth, no cloud backup, no fancy error handling for edge cases that probably dont matter.

What it does do is show how all these pieces fit together. The bin field in package.json, how global commands work, how inquirer handles menu interactions, how chalk styles terminal output, how you can build something genuinely usable with just node and a handful of libraries.

If you are trying to understand how cli tools work from first principles, the codebase is intentionally small enough to read in one sitting.

Tech used

  • Node.js
  • inquirer
  • chalk
  • figlet
  • cli-table3
  • fs module