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

@loopfortress/protoshell

v0.1.0

Published

Watch and run commands for rapid prototyping

Readme

Loop ProtoShell

===============

ProtoShell is a lightweight command-line utility designed to enhance your development workflow by watching file changes and running user-defined commands. It is particularly useful for projects with multiple roots, such as monorepos, where managing file watchers and build steps can quickly become complicated.

Key Features

  • 🔄 File Watching: Automates task execution by watching for file changes.
  • Configurable Runners: Define what to watch and what commands to run through JSON config files.
  • 📂 Multi-Root Support: Simplifies workflows in monorepo setups by defining multiple roots treated as separate projects.
  • 🚀 Fast Setup: Minimal configuration required to start.

Installation

Install globally via npm or your preferred package manager (using pnpm in this example):

pnpm add -g @loopfortress/protoshell

This will make the protoshell command available globally on your system.

Usage

Running ProtoShell

Run the tool by navigating to your project folder and executing:

protoshell

By default, it looks for a .protoshell.json file in the project root. You can specify a custom config file location by setting the PROTOSHELL_CONFIG environment variable:

export PROTOSHELL_CONFIG=/path/to/your/.protoshell.json
protoshell

Initializing Configuration Files

ProtoShell provides an init subcommand to help you create configuration files:

# Initialize a .protoshell.json file in the current directory
protoshell init

# Initialize a .autocompile.json file in the current directory
protoshell init --project

The init command creates a template configuration file that you can customize for your project:

  • Without the --project flag, it creates a .protoshell.json file for global configuration
  • With the --project flag, it creates a .autocompile.json file for project-specific runner configuration

Configuration Files

ProtoShell requires two types of configuration files to function:

  1. Global Configuration (.protoshell.json): Defines root-level properties and projects to watch.
{
 "autocompile": {
   "repo": {
     "path": "."
   }
 }
}
  1. Runner Configuration (.autocompile.json in each project): Defines which files to watch and what commands to run.
{
 "runners": {
   "typescript": {
     "watch": [
       {
         "match": "**/*.ts",
         "ignore": "**/*.d.ts"
       }
     ],
     "interpreter": "pnpm",
     "command": "tsc"
   }
 }
}

These configurations are validated against JSON schemas to ensure correctness.

Example Workflow

Monorepo Setup Example

If your project uses a monorepo structure, you can define each sub-project in a global .protoshell.json file.

Example .protoshell.json (Global Config)

{
  "autocompile": {
    "projectA": {
      "path": "./packages/projectA"
    },
    "projectB": {
      "path": "./packages/projectB"
    }
  }
}

Each sub-project can then include its own .autocompile.json to define files being watched and tasks to execute.

Example .autocompile.json for projectA

{
  "runners": {
    "build": {
      "watch": [
        {
          "match": "**/*.js",
          "ignore": "node_modules/**"
        }
      ],
      "interpreter": "npm",
      "command": "build"
    }
  }
}

By running protoshell, ProtoShell will automatically watch the files and trigger the runners you’ve defined across all sub-projects.

Logging

  • LOG_INFO: "true"|"false" (Default: true) Disable or enable info level logs.
  • LOG_DEBUG: "true"|"false" (Default: true) Disable or enable debug logs.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request. Always ensure your contributions comply with the project's coding standards and pass validation.

License

This project is licensed under the MIT License. See the license file for details.