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

@alexlar/tbox

v0.1.0

Published

CLI tool for managing file/directory templates

Readme

tbox

Note: This tool is currently in active development. The API may change until version 1.0.0.

tbox is your personal CLI template manager. Save frequently used file structures, configs, and entire projects to reuse them with a single command!

Features

  • Quickly save and reuse files, project structures, and configurations
  • Simple commands for template management: save, get, delete, list
  • Support for glob patterns and recursive directory copying
  • Currently supports Unix-based systems (Windows support coming soon)

Quick Start

Installation

npm install -g @alexlar/tbox

Basic Usage

# Save your current project structure as a template
tbox save my-project ./ --recursive

# Save specific files using glob patterns and overwrite old one
tbox save my-template "./src/**/*.ts" "*.json" --force

# Create a new project from the template
tbox get my-template ./new-project

# List all available templates
tbox list

# Delete a template
tbox delete my-template

# Delete multiple templates at once
tbox delete old-template temp-backup

Note: When using glob patterns in the save command, make sure to wrap them in quotes to prevent shell expansion.

Documentation

Commands

save <template-name> <source...> [options]

Saves specified files and directories as a local template.

Options:

  • -f, --force — Overwrite the template if it exists and ignore some errors.
  • -p, --preserve-last-dir — Preserve only the final directory name from path patterns (ignored for file sources).
  • -r, --recursive — Copy directories recursively (behaves like the dir/** glob pattern; without this flag, it behaves like dir/*).
  • -x, --exclude <patterns> — Exclude files/directories matching the specified comma-separated glob patterns.

Example glob patterns for --exclude:

node_modules    # Excludes all node_modules directories
*.log           # Excludes all files with the .log extension
./config.json   # Excludes only the config.json file in the root directory

get <template-name> [destination]

Copies the specified template to the given destination path. If no destination is provided, the current working directory is used.

delete <template-name...>

Deletes the specified template(s).

list

Lists all saved templates.