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

bg-manager

v1.0.1

Published

Simple background process manager for Windows - run processes in separate terminal windows

Readme

bg - Background Process Manager

English | 中文

A simple background process manager for Windows. Run long-running processes in separate terminal windows without blocking your main terminal.

Features

  • Non-blocking: Launch processes in new windows, your terminal stays free
  • Persistent: Track processes across terminal sessions
  • Logging: All output is timestamped and saved to log files
  • Process tree control: Stop commands kill the entire process tree

Installation

npm install -g bg-manager

Usage

Start a process

bg start <name> "<command>" [options]

# Options:
#   --cwd <dir>       Working directory
#   --daemon, -d      Run headless (no window, like pm2)
#   --env KEY=VALUE   Set environment variables (can be used multiple times)

# Examples
bg start server "npm run dev" --cwd /path/to/project
bg start kernel "python main.py"
bg start api "node server.js" --daemon
bg start worker "python task.py" --env API_KEY=xxx --env DEBUG=1

View status

bg list              # List all instances
bg status <name>     # Show details for an instance
bg logs <name>       # View log output (last 50 lines)
bg logs <name> -n 100  # View last 100 lines
bg logs <name> -f    # Follow log output in real-time

Stop processes

bg stop <name>       # Stop a specific instance
bg stopall           # Stop all running instances

Manage history

bg history <name>    # View instance history
bg prune             # Clean up old instances (keep last 10)
bg prune --keep 5    # Keep only last 5 per name

Help

bg --help            # Show all commands
bg <command> --help  # Show help for a specific command
bg --version         # Show version

How it works

  • Each bg start creates a new PowerShell window running your command
  • Output is captured with timestamps to ~/.bg-manager/instances/<id>/log.txt
  • Instance metadata is stored in ~/.bg-manager/
  • The bg command returns immediately, the process runs independently

Data location

All data is stored in ~/.bg-manager/:

  • active.json - Currently active instances
  • instances/<id>/ - Instance data and logs

Requirements

  • Windows (uses PowerShell for window management)
  • Node.js >= 14

License

MIT