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

safe-claude

v1.0.4

Published

Run Claude Code in secure Docker containers with multi-project support

Readme

Safe Claude

Run Claude Code in secure, isolated Docker containers with multi-project support.

🏠 Utilize Local Agents and Commands

  • Copies your ~/.claude/{agents, commands, CLAUDE.md} for use in every project.

🔒 Security & Isolation

  • Each project runs in its own isolated Docker container

🚀 Multi-Project Support

  • Automatic container naming based on project directory
  • Containers persist between sessions (start/stop automatically)

🛠️ Pre-installed Tools

  • Search & Navigation: ripgrep (rg), fd, fzf, ast-grep
  • Data Processing: jq (JSON), yq (YAML)
  • Development: git, gh (GitHub CLI), tmux, vim, nano
  • Shell: zsh with oh-my-zsh, powerline10k theme
  • ccusage: Track your Claude Code use
  • Node.js: Node 20 with npm

Installation

Option 1: Install via npm (Recommended)

# Global installation
npm install -g safe-claude

# Or local installation
npm install safe-claude

Option 2: Manual Installation

  1. Ensure Docker is installed and running
  2. Place the safe-claude script in your PATH or project directory
  3. Make it executable:
    chmod +x safe-claude

Usage

Basic Commands

# Run Claude Code in current directory, drop into docker shell
./safe-claude

# Show help
./safe-claude --help

# Remove current project container
./safe-claude --rm

# Remove ALL containers and images
./safe-claude --rm --all

# Save current container state to image
./safe-claude --save

First Time Setup

  1. Run safe-claude in your project directory
  2. The script builds the Docker image (one-time setup) and drops you into a zsh session
  3. Run claude (pre-configured with --dangerously-skip-permissions) to authenticate
  4. Exit the container and run ./safe-claude --save to commit your configured state to the image
  5. From now on, safe-claude will use your saved configuration in new project containers

Container Management

Container Naming

  • Containers are named: claude-dev-{directory-name}
  • Each project directory gets its own isolated container
  • Containers persist between sessions (auto-start/stop)

Configuration Persistence

  • Use --save to commit current container state to the claude-dev image
  • Saved state includes installed packages, configuration, and authentication
  • All new containers start from your saved image state

Mounted Directories

The script automatically mounts:

  • Current directory/workspace/{directory-name} (working directory)
  • ~/.claude/commands → Shared slash command definitions
  • ~/.claude/agents → Shared agent configurations
  • ~/.claude/CLAUDE.md → Global user instructions (read-only)

Environment Variables

  • TERM and COLORTERM - Preserved for proper terminal colors

Aliases

Pre-configured aliases in containers:

  • c - Shortcut for claude --dangerously-skip-permissions
  • claude - Runs with --dangerously-skip-permissions flag
  • nrd - Shortcut for npm run build

CLAUDE.md suggestions

finding FILES? use 'fd'
finding TEXT/strings? use 'rg'
finding CODE STRUCTURE? use 'ast-grep'
interacting with JSON? use 'jq'
interacting with YAML or XML? use 'yq'