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

luffy-vcs-cli

v1.0.0

Published

A simple version control CLI

Readme

🌳 Luffy VCS CLI

A powerful, Git-like version control system with tree-based file management, built for developers who want professional VCS capabilities with an intuitive command-line interface.

🚀 Features

Professional Version Control

  • Tree-based Architecture: Efficiently manages complex directory structures
  • Content Deduplication: Stores only unique file content, saving space
  • Professional Diffs: Color-coded, categorized change visualization
  • Time Travel: Checkout any previous commit to restore project state
  • Status Tracking: Real-time working directory status monitoring

Git-like Commands

  • Familiar Interface: Commands similar to Git for easy adoption
  • Rich Output: Beautiful, color-coded terminal output
  • Scalable: Handles projects with thousands of files efficiently
  • Cross-platform: Works on Windows, macOS, and Linux

Advanced Features

  • Tree Structure: Hierarchical file organization like Git
  • Smart Staging: Intelligent file staging with luffy add .
  • History Navigation: Browse complete project history
  • Server Integration: Push/pull to remote repositories
  • Backward Compatible: Works with existing repositories

📦 Installation

Global Installation (Recommended)

npm install -g luffy-vcs-cli

Local Installation

npm install luffy-vcs-cli
npx luffy <command>

🎯 Quick Start

# Initialize a new repository
luffy init

# Add all files to staging
luffy add .

# Commit your changes
luffy commit "Initial commit"

# Check repository status
luffy status

# View commit history
luffy log

# See changes in a commit
luffy show <commit-hash>

# Checkout a previous commit
luffy checkout <commit-hash>

📋 Commands Reference

Basic Operations

| Command | Description | |---------|-------------| | luffy init | Initialize a new repository | | luffy add <file> | Add specific file to staging | | luffy add . | Add all files in directory (tree-based) | | luffy commit <message> | Commit staged changes | | luffy status | Show working directory status |

History & Navigation

| Command | Description | |---------|-------------| | luffy log | Show commit history with file info | | luffy show <hash> | Show detailed diff for commit | | luffy checkout <hash> | Restore project to specific commit | | luffy ls | List files in current commit |

Remote Operations

| Command | Description | |---------|-------------| | luffy login | Login to remote server | | luffy push <repo> | Push commits to remote repository | | luffy pull <repo> | Pull latest commits from remote | | luffy listall | List all your repositories | | luffy logout | Logout from remote server |

🌟 Advanced Usage

Project Management

# Check what's changed since last commit
luffy status

# Stage all changes including new files and directories
luffy add .

# Commit with descriptive message
luffy commit "Add user authentication module"

# See what changed in the last commit
luffy show HEAD

# Go back to a previous version
luffy checkout abc123def456

Working with Complex Projects

# Initialize in existing project
cd my-large-project/
luffy init

# Add everything (handles nested directories efficiently)
luffy add .

# First commit with all files
luffy commit "Initial project structure"

# Check status after making changes
luffy status
# Output shows:
# Modified files (3):
#   ~ src/components/Header.js
#   ~ src/utils/api.js
#   ~ package.json
# 
# New files (1):
#   + src/components/NewFeature.js

Remote Collaboration

# Setup remote repository
luffy login
luffy push my-project

# Later, pull updates
luffy pull my-project

# Share your repositories
luffy listall

🎨 Output Examples

Status Command

$ luffy status
Repository Status
──────────────────────────────
✓ Working directory is clean
No changes since last commit

📋 Staging area: Empty

Log Command

$ luffy log
Commit: a1b2c3d4e5f6789...
Date: Mon Aug 01 2025 10:30:45 GMT+0530
Message: Add user authentication
Files: 15 (tree structure)
  - src/auth/login.js
  - src/auth/register.js
  - src/components/AuthForm.js
  - ... and 12 more files
──────────────────────────────────────────────────

Show Command

$ luffy show a1b2c3d4e5f6789
Changes in commit a1b2c3d4e5f6789:
────────────────────────────────────────────────────────────

📁 Added files (2):
  + src/auth/login.js
  + src/auth/register.js

📝 Modified files (1):
  ~ src/app.js
    ┌─ Diff:
    │ +  15: import { AuthService } from './auth/AuthService';
    │ +  16: 
    │    25: function App() {
    │ +  26:   const auth = new AuthService();

🏗️ Architecture

Tree-Based Storage

.luffy/
├── objects/           # Content-addressable storage
│   ├── a1b2c3d4...   # Blob objects (file content)
│   ├── e5f6g7h8...   # Tree objects (directory structure)
│   └── i9j0k1l2...   # Commit objects (snapshots)
├── HEAD              # Current commit pointer
└── index             # Staging area

Object Types

  • Blob: Raw file content
  • Tree: Directory structure with file/subdirectory references
  • Commit: Snapshot with tree reference, message, and metadata

🔧 Configuration

Server Configuration

The CLI connects to the Luffy VCS server for remote operations. No manual configuration needed - just login with your credentials.

Ignored Files

By default, these patterns are ignored:

  • .luffy/ (repository metadata)
  • .git/ (Git repositories)
  • node_modules/ (Node.js dependencies)

🤝 Contributing

We welcome contributions! Here's how to help:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Add tests for new functionality
  5. Submit a pull request

Development Setup

git clone https://github.com/Kanthiluffy/v1_version_control
cd luffy-vcs-cli
npm install
npm test

🐛 Troubleshooting

Common Issues

"Invalid token" error when pushing:

luffy logout
luffy login
luffy push my-repo

Files not being tracked:

# Check status first
luffy status

# Re-add files
luffy add .
luffy commit "Re-add missing files"

Large repository performance:

# The tree structure handles large repositories efficiently
# No special configuration needed

📄 License

MIT License

🙏 Acknowledgments

  • Inspired by Git's tree-based architecture
  • Built with Node.js and modern JavaScript
  • Thanks to the open-source community for tools and inspiration

📞 Support


Made with ❤️ for developers who love clean, powerful tools

Luffy VCS CLI - Version control that grows with your project 🌳