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

project-code

v0.1.0

Published

A powerful CLI tool for managing code projects with VS Code integration

Downloads

7

Readme

Project Code CLI

🚀 A powerful CLI tool for managing code projects with VS Code integration

oclif Version Downloads/week License: MIT

Project Code CLI (project-code) helps developers manage their code projects efficiently with seamless VS Code integration. Discover, organize, and work with projects across multiple directories with powerful filtering, authentication, and automation features.

✨ Features

  • 🔍 Smart Project Discovery - Automatically find and catalog projects in your directories
  • 📁 Multi-Directory Support - Organize projects across multiple root folders
  • ⚡ VS Code Integration - Open projects directly in VS Code with one command
  • 🔐 Git Provider Authentication - Secure authentication with GitHub, GitLab, Bitbucket, and Local providers
  • 📦 Project Cloning - Clone repositories using simple project tags
  • 🏗️ Project Initialization - Set up new projects with proper structure and templates
  • 🎨 Customizable UI - Configure display options, themes, and sorting preferences
  • 🔧 Flexible Configuration - Extensive configuration options for all workflows
  • 📊 Multiple Output Formats - Table and JSON output for scripting and automation

🚀 Quick Start

Installation

# Install globally
npm install -g project-code

# Verify installation
project-code --version

📋 System Requirements

  • Node.js >= 18.0.0
  • npm or yarn package manager
  • Git (for cloning repositories)
  • VS Code (optional, for VS Code integration)

Basic Setup

# Set up your code directory
mkdir -p ~/code
project-code config add root ~/code

# Authenticate with GitHub (optional but recommended)
project-code auth login --provider github --token YOUR_GITHUB_TOKEN

# Or use Local provider for offline work
project-code auth login --provider local

# Discover your projects
project-code project list

# Open a project in VS Code
project-code project open my-project

# Clone a public repository
project-code project clone microsoft/vscode

# Or clone private repository (requires GitHub authentication)
project-code project clone your-username/private-repo

🎉 That's it! You're ready to manage your projects with Project Code CLI.

📚 Documentation

Complete documentation is available in the docs/ directory:

🛠️ Commands

Hello Commands

| Command | Description | |---------|-------------| | project-code hello <person> --from <name> | Say hello to someone from someone else | | project-code hello:world | Say hello world |

Project Management

| Command | Description | |---------|-------------| | project-code project list [options] | List all discovered projects with filtering and formatting options | | project-code project open <name> | Open project in VS Code | | project-code project init [path] | Initialize directory as project | | project-code project clone <repo> | Clone GitHub repository | | project-code project create <name> | Create new project |

Project List Options

# Filter by project type
project-code project list --type nodejs
project-code project list --type react,python

# Search projects
project-code project list --search "my-project"
project-code project list --search "urgent|priority"

# Output formats
project-code project list --format json > projects.json
project-code project list --tree
project-code project list --hierarchy

# Advanced filtering
project-code project list --parent ~/code/work
project-code project list --show-hidden
project-code project list --max-depth 10

Authentication

| Command | Description | |---------|-------------| | project-code auth login --provider <provider> | Authenticate with Git provider | | project-code auth logout | Log out from current provider | | project-code auth status | Check authentication status |

Authentication Examples

# GitHub authentication
project-code auth login --provider github --token ghp_your_token_here

# Local provider (no token required)
project-code auth login --provider local

# With username for clarity
project-code auth login --provider github --token ghp_token --username your-username

# Check current status
project-code auth status

Configuration

| Command | Description | |---------|-------------| | project-code config list | Display current configuration | | project-code config add <type> <value> | Add configuration values | | project-code config set <key> <value> | Set configuration values | | project-code config reset | Reset to default configuration |

Configuration Examples

# Root directories
project-code config add root ~/code
project-code config add root ~/work --name "Work Projects"

# UI settings
project-code config set ui.theme dark
project-code config set ui.sortBy type
project-code config set ui.showDescriptions false

# VS Code integration
project-code config set vscode.enabled true
project-code config set vscode.executablePath /usr/local/bin/code

# Project defaults
project-code config set project.defaultType nodejs
project-code config set project.maxDepth 8

💡 Common Workflows

Daily Development

# See all your projects
project-code project list

# Focus on today's work
project-code project list --search "urgent|priority"

# Open main project
project-code project open my-main-project

# Clone public repository for reference
project-code project clone microsoft/vscode --vscode

# Or clone private repository (requires authentication)
project-code project clone your-username/private-repo --vscode

Project Organization

# Set up organized structure
mkdir -p ~/code/{web,mobile,api,tools,experiments}

# Configure root folders
project-code config add root ~/code/web
project-code config add root ~/code/mobile
project-code config add root ~/code/api

# Initialize projects in appropriate locations
project-code project init ~/code/web/my-app --type react
project-code project init ~/code/api/my-service --type nodejs

Team Collaboration

# Set up shared project structure
project-code config add root /shared/team-projects

# Everyone uses same configuration
cp /shared/team-config.json ~/.project-code/config.json

# Team members see same project list
project-code project list --format table

🔧 Configuration

Basic Configuration

# Set up root directories
project-code config add root ~/code
project-code config add root ~/work

# Configure UI preferences
project-code config set ui.theme dark
project-code config set ui.sortBy type

# Set default project type
project-code config set project.defaultType nodejs

VS Code Integration

# Enable VS Code integration
project-code config set vscode.enabled true

# Set custom VS Code path (if needed)
project-code config set vscode.executablePath /usr/local/bin/code

🔐 Authentication

Project Code CLI supports authentication with multiple providers. Currently supported providers are GitHub, GitLab, Bitbucket, and Local.

GitHub Setup

  1. Create Personal Access Token:

  2. Authenticate:

    project-code auth login \
      --provider github \
      --token ghp_your_token_here
  3. Verify:

    project-code auth status

Local Provider Setup

The Local provider allows you to work with projects without requiring external authentication. This is useful for:

  • Local development and testing
  • Working with private repositories without tokens
  • Offline project management

Setup:

# Authenticate with Local provider (no token required)
project-code auth login --provider local

# Or with a token for consistency
project-code auth login --provider local --token any-value

# Verify authentication
project-code auth status

Use Cases:

  • Managing local projects without Git hosting
  • Testing CLI functionality
  • Working in environments without internet access
  • Development and debugging workflows

📁 Directory Structure

Follow the ~/code convention for optimal organization:

~/code/
├── personal/           # Personal projects
│   ├── websites/       # Personal websites
│   └── tools/          # Personal utilities
├── work/               # Work projects
│   ├── current/        # Active projects
│   └── clients/        # Client work
├── experiments/        # Testing & prototypes
└── archives/           # Completed projects

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

🔧 Troubleshooting

Common Issues

"Command not found"

# Ensure Project Code CLI is installed globally
npm install -g project-code

# Or use npx to run without global installation
npx project-code --version

"Authentication failed"

# Check authentication status
project-code auth status

# Re-authenticate
project-code auth logout
project-code auth login --provider github --token YOUR_TOKEN

# Verify token is valid
curl -H "Authorization: token YOUR_TOKEN" https://api.github.com/user

"No projects found"

# Check configured root directories
project-code config list

# Add root directories
project-code config add root ~/code
project-code config add root ~/projects

# Rescan projects
project-code project list

"VS Code integration not working"

# Check VS Code configuration
project-code config set vscode.enabled true

# Verify VS Code is in PATH
which code

# Set custom VS Code path if needed
project-code config set vscode.executablePath /usr/local/bin/code

Getting Help

  • Command help: project-code --help or project-code <command> --help
  • Documentation: See the docs/ directory for detailed guides
  • Issues: Report bugs
  • Discussions: Ask questions

❓ FAQ

What platforms are supported?

Currently supported: GitHub, GitLab, Bitbucket, and Local providers.

Do I need authentication to use Project Code CLI?

No! The Local provider allows you to use all features without authentication. GitHub authentication is only needed for:

  • Cloning private repositories
  • Accessing organization repositories
  • Using authenticated Git operations

Can I use Project Code CLI offline?

Yes! The Local provider works completely offline. You can:

  • Manage local projects
  • Initialize new projects
  • Configure settings
  • Use all project management features

How do I backup my configuration?

# Export current configuration
project-code config list > backup-config.json

# Or backup the config file directly
cp ~/.project-code/config.json ~/backup-config.json

Can I use multiple authentication providers?

Yes! You can authenticate with multiple providers:

# GitHub for work projects
project-code auth login --provider github --token WORK_TOKEN

# Local for personal projects
project-code auth login --provider local

🗑️ Uninstallation

Remove globally installed CLI

# Remove global installation
npm uninstall -g project-code

# Verify removal
project-code --version  # Should show command not found

Remove user data

# Remove configuration and cached data
rm -rf ~/.project-code/

# Remove any local installations
npm uninstall project-code  # if installed locally in a project

Clean reinstall

# Complete removal
npm uninstall -g project-code
rm -rf ~/.project-code/

# Fresh installation
npm install -g project-code
project-code config add root ~/code  # Reconfigure

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Built with OCLIF framework
  • Inspired by the need for better project management tools
  • Thanks to all contributors and supporters

Made with ❤️ for developers who love efficient workflows