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

@terzitech/flathier-cli

v0.1.0-demo.4

Published

CLI and TUX for the flathier library to create and manipulate flat hierarchical data right from the terminal.

Readme

flathier-cli

flathier-cli is a command-line interface (CLI) and terminal-based user experience (TUX) tool for creating and manipulating flat hierarchical data structures. It provides a simple and intuitive way to manage hierarchical data directly from the terminal.

It uses the flathier library, also by Terzi Tech, which is a node.js library for creating and managing the flat hierarchy data structure. No other dependencies are required, making it lightweight and easy to integrate into existing projects.

Note: This project has been developed to be the core library of ReqText, a tool for managing requirements. I designed it for a specific use case however I found it useful for other use cases as well, which is why I am releasing it as an open source package. I will continue to develop it and add to this documentation for ease of startup and use.

Features

  • Command-line Interface: Perform operations like adding, deleting, promoting, and demoting items in a flat hierarchy.
  • Interactive Editor: A terminal-based editor (fhr-editor) for navigating and modifying hierarchical data in real-time.
  • Customizable Templates: Use predefined templates to initialize and manage hierarchical data structures.
  • Lightweight and Dependency-Free: Built with minimal dependencies for fast and efficient usage.

Installation

  1. Install the CLI locally using npm:

    npm install @terzitech/flathier-cli
  2. Usage:

    npx fhr init <file_name>

    Single Commands:

    npx fhr <command> <args>

    For the interactive editor:

    npx fhr-editor

Usage

CLI Commands

Run the CLI using the fhr command. Below are the available commands:

  • fhr help: Display help and usage information.
  • fhr init <file_name>: Initialize a new hierarchical data file.
  • fhr add: Add a new item to the end of the hierarchy.
  • fhr add_after <outline>: Add a new item after a specific outline.
  • fhr delete <outline>: Delete an item by its outline.
  • fhr version: Display the current version of the CLI.

Interactive Editor

Launch the interactive editor using:

npx fhr-editor

Key Bindings

  • Arrow Keys: Navigate through the hierarchy.
  • Enter: Edit the title of the selected item.
  • Ctrl+n: Add a new item.
  • Backspace/Delete: Delete the selected item.
  • Shift+Up/Down: Move the selected item up or down.
  • Left/Right: Promote or demote the selected item.
  • Escape: Exit the editor.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Submit a pull request with a detailed description of your changes.

License

This project is licensed under the AGPL-3.0 License. See the LICENSE file for details.

Acknowledgments

Special thanks to the contributors and the open-source community for their support.


Feel free to reach out with any questions or feedback!