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

@tonyclaw/gitcode-cli

v1.1.0

Published

CLI for GitCode REST API — manage repos, PRs, issues, commits, and more from the terminal

Readme

gitcode-cli

CLI for the GitCode REST API — manage repos, PRs, issues, commits, and more from the terminal.

Install

npm install -g @tonyclaw/gitcode-cli

Setup

# Store token in config file
gitcode config set token <your-gitcode-token>

# Or use environment variable
export GITCODE_TOKEN=<your-token>

Get a personal access token from GitCode Settings.

Usage

# Repositories
gitcode repos list <username>
gitcode repos get <owner> <repo>
gitcode repos tree <owner> <repo> <branch>
gitcode repos languages <owner> <repo>
gitcode repos contributors <owner> <repo>

# Pull Requests
gitcode pr list <owner> <repo>
gitcode pr get <owner> <repo> <number>
gitcode pr create <owner> <repo> --title "fix" --head feat --base main

# Issues
gitcode issue list <owner> <repo>
gitcode issue create <owner> <repo> --title "bug" --body "..."
gitcode issue update <owner> <repo> <number> --state closed

# Commits
gitcode commit list <owner> <repo>
gitcode commit get <owner> <repo> <sha>
gitcode commit compare <owner> <repo> --base main --head dev

# Search
gitcode search repos <query>
gitcode search users <query>

# Branches & Tags
gitcode branch list <owner> <repo>
gitcode tag list <owner> <repo>

# More topics
gitcode milestone list <owner> <repo>
gitcode label list <owner> <repo>
gitcode release list <owner> <repo>
gitcode webhook list <owner> <repo>
gitcode member list <owner> <repo>
gitcode user profile [username]
gitcode org list <username>
gitcode enterprise members <name>
gitcode actions runs <owner> <repo>

All commands output JSON. Use gitcode --help to see all available topics.

All Topics

| Topic | Commands | |-------|----------| | actions | runs | | branch | list, get, create, delete | | commit | list, get, compare, diff | | config | get, set | | enterprise | members, repos | | issue | list, get, create, update, comments | | label | list, create, delete | | member | list, add, remove | | milestone | list, get, create, update | | org | list, members, repos | | pr | list, get, create, merge, files, comments | | release | list, get, create, delete | | repos | list, get, tree, languages, contributors, forks, stargazers, raw, file-list | | search | repos, users, issues, code | | tag | list, create, delete | | user | profile, starred, following | | webhook | list, create, delete |

Output Formats

List commands support --format for different output styles:

gitcode pr list claw/repo --format table    # ASCII table
gitcode pr list claw/repo --format compact  # Single-line JSON
gitcode pr list claw/repo --format json     # Pretty-printed JSON (default)

Dry Run

Set GITCODE_DRY_RUN=true to preview API requests without executing:

GITCODE_DRY_RUN=true gitcode pr list claw/repo
# [dry-run] GET https://api.gitcode.com/api/v5/repos/claw/repo/pulls

Shell Completion

Bash

gitcode autocomplete script bash >> ~/.bashrc
source ~/.bashrc

Zsh

gitcode autocomplete script zsh >> ~/.zshrc
source ~/.zshrc

PowerShell

gitcode autocomplete script powershell | Out-String | Invoke-Expression

Dynamic Suggestions

For API-driven completion (owner names, repo names, branches), the gitcode complete command is available for shell completion scripts:

gitcode complete owner              # → TonyClaw (your login + orgs)
gitcode complete repo <owner>       # → repo1, repo2, ...
gitcode complete branch <owner> <repo>  # → main, dev, ...

License

MIT © 2026 TonyClaw