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 🙏

© 2024 – Pkg Stats / Ryan Hefner

project-tagger

v2024.12.11

Published

A powerful CLI tool for managing tags in projects.

Downloads

474

Readme

Project Tagger 🚀

A lightweight CLI tool that simplifies project organization through a tag-based system. Create and manage project tags to efficiently categorize your projects.

How It Works 🔍

Project Tagger creates .project.tag files in a hidden .tags directory within your project root. These .project.tag files act as searchable markers, making it easier to find and filter projects across your filesystem using tools like fzf or Everything.

Example

If you add react.project.tag to a React project, you can later search for react.project.tag to quickly locate all your React projects.


Installation 📦

NPM Global Installation

npm install -g project-tagger

Direct Usage with npx

npx project-tagger

Usage 🚀

  1. Navigate to Your Project Root:

    cd /path/to/your/project
  2. Run Project Tagger:

    project-tagger

CLI Menu Options

  • ✨ Add Tag
    Add custom tags to your project. Spaces in tag names are replaced with underscores.

  • 📋 List Tags
    View all existing tags in the .tags directory.

  • ❌ Remove Tag
    Select specific tags to remove.

  • 🧹 Clear All Tags
    Remove all tags from the current project at once.

  • 🔍 Detect Project Type and Suggest Tags
    Automatically detect common project structures (e.g., package.json for JavaScript, tsconfig.json for TypeScript, requirements.txt for Python) and suggest relevant tags to add.

  • 🚪 Exit
    Quit the CLI.


Using the Source Code 🛠️

  1. Install Dependencies:

    bun install
  2. Run the Application:

    bun run index.ts
  3. Manage Tags (CLI Interface):

    • Add a Tag:
      Follow prompts to add custom tags.

    • List Tags:
      View all tags in .tags.

    • Remove a Tag:
      Select tags to remove.

    • Clear All Tags:
      Remove all tags at once.

    • Detect Project Type and Suggest Tags:
      Let the CLI suggest tags based on detected project files.


Compilation

To compile the project manually, run:

bun build ./index.ts --compile --outfile ./dist/project-tagger

Alternatively, use the scripts defined in package.json:

  • Build for Current OS:

    bun run build
  • Build for Windows:

    bun run build:windows
  • Build for Linux:

    bun run build:linux
  • Build for macOS:

    bun run build:mac

Feel free to open an issue if you have any questions or suggestions!