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

@abhashlimbu/gdif

v1.0.0

Published

Lightweight, Git-like Version Control System (VCS) CLI

Readme

gdif

Lightweight, Git-like Version Control System (VCS) CLI built with Node.js, Commander, and Ignore.

Features

  • Content-Addressable Storage: SHA-1 hashing with zlib compression for blobs, trees, and commit objects stored in .gdif/objects/.
  • Staging Index: Track staged files with metadata in .gdif/index.
  • Branching & Checkout: Full branch creation, switching, and checkout tracking via .gdif/refs/heads/ and .gdif/HEAD.
  • Ignore Rules: Support for .gdifignore files (plus default ignore rules for .gdif, .git, and node_modules).
  • Unified Diff: Built-in line diffing comparing working tree with index or index with HEAD.
  • Commit History: Traversal of commit history with author, timestamps, and oneline options.

Installation & Setup

npm install

Optionally link globally:

npm link

Available Commands

| Command | Description | Example | | :--- | :--- | :--- | | init [directory] | Initialize an empty repository | gdif init | | status | Show working tree and staging area status | gdif status | | add <pathspecs...> | Stage file(s) or directories | gdif add . or gdif add file.txt | | commit -m <msg> | Commit staged changes | gdif commit -m "feat: initial commit" | | diff [file] | View diffs between working tree and staging | gdif diff or gdif diff --staged | | log [--oneline] [-n <N>] | Display commit log | gdif log --oneline | | branch [name] | List or create branches | gdif branch feature-1 | | checkout <target> | Switch to branch or commit | gdif checkout feature-1 | | restore <pathspecs...> | Discard changes or unstage | gdif restore file.txt or gdif restore --staged file.txt | | serve | Start HTTP server for remote sync | gdif serve --port 3000 | | clone <url> [dir] | Clone remote repository | gdif clone http://device-ip:3000 | | remote add <name> <url>| Add remote repo | gdif remote add origin http://device-ip:3000 | | pull <remote> <branch> | Fetch and integrate remote changes | gdif pull origin main | | push <remote> <branch> | Push local changes to remote | gdif push origin main |

Remote Syncing (including Android)

You can sync your repository across devices over your local network using the built-in HTTP server.

On the Host Device (e.g., your Android phone using Termux or another PC):

gdif serve --port 3000

On the Client Device:

# Clone the repository
gdif clone http://<host-device-ip>:3000 my-project

# Or add a remote to an existing repo
gdif remote add origin http://<host-device-ip>:3000
gdif pull origin main
gdif push origin main

Running Tests

npm test