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

hactar-cli

v1.4.0

Published

A lightweight Node.js CLI for gathering and visualising storage information from Plex Media Server libraries

Readme

HACTAR Buy Me A Coffee

Hactar is a lightweight Node.js CLI for gathering and visualising storage information from Plex Media Server libraries. It lets you quickly see which shows, seasons, movies or entire libraries consume the most disk space, so you can clean up or archive files with confidence.

🔧 Prerequisites

🚀 Getting Started

Install Hactar globally using npm:

npm install -g hactar-cli

That's it! You can now use the hactar command from anywhere in your terminal.

📌 Core Commands

| Command | Description | | ----------- | ---------------------------------------------------------------------------------------------------------------------------- | | configure | Prompts for Plex Server URL and token, then stores them in ~/.hactar/config.json. | | scan | Scans all known libraries, caches results locally, and displays a selectable list. | | dashboard | Opens an interactive TUI dashboard showing storage statistics, library breakdowns and an item‑by‑item table. Requires a TTY. | | test | Tests connectivity to the Plex server using stored credentials. | | help | Displays help information for available commands. |

The dashboard uses the blessed library and will not render in non‑interactive terminals.

🔒 Configuration

Run hactar configure before performing scans. The tool will prompt for:

  • Plex Server URL – e.g. http://localhost:32400 or the address of your remote server.
  • Plex Token – a long‑string token that authorizes API access.

The configuration is persisted in ~/.hactar/config.json. If the file is missing or incomplete, hactar will prompt you again.

📚 Example Workflow

# Configure first
hactar configure

# Scan all libraries (you’ll pick one when prompted)
hactar scan

# Launch the dashboard for interactive exploration
hactar dashboard

Happy cleaning!

🤝 Contributing

Want to contribute to Hactar? Here's how to set up a development environment:

# 1. Clone the repository
git clone https://github.com/joemaddalone/hactar.git
cd hactar

# 2. Install dependencies
npm install

# 3. Build the TypeScript sources
npm run build

# 4. Run commands during development
node dist/index.js <command>

# Or start development mode (auto-rebuild on changes)
npm run dev

Development Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm run dev - Watch mode for development
  • npm run start - Run the compiled CLI
  • npm run lint - Check code style
  • npm run format - Format code with Biome

Project Structure

  • src/ - TypeScript source code
  • dist/ - Compiled JavaScript output
  • src/commands/ - CLI command implementations
  • src/client/ - Plex API client and utilities
  • src/types/ - TypeScript type definitions