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

cppkg-cli

v1.2.0

Published

CLI for downloading C/C++ packages into a shared include directory or project workspace

Readme

cppkg-cli

Full guide | 中文

cppkg-cli downloads C/C++ dependencies into the current project. It keeps headers, source projects, cache files, lock data, and metadata under your workspace instead of installing libraries into system directories.

Use the hosted guide for the full workflow, install-mode details, CMake integration, configuration, and command options:

Quick Start

npm install -g cppkg-cli
cppkg-cli init
cppkg-cli add nlohmann/json --install
cppkg-cli compile src/main.cpp -o app

If src/main.cpp includes:

#include <nlohmann/json.hpp>

then cppkg-cli compile automatically adds the default ./cpp_libs/include path after installation.

Quick Commands

Package Management

| Task | Command | | --- | --- | | Create a manifest | cppkg-cli init | | Add and install a dependency | cppkg-cli add nlohmann/json --install | | Add without installing | cppkg-cli add nlohmann/json | | Install all manifest dependencies | cppkg-cli install | | Install with frozen lockfile | cppkg-cli install --frozen-lockfile | | Preview changes (dry-run) | cppkg-cli add fmtlib/fmt --dry-run | | Install offline from cache | cppkg-cli install --offline | | Skip transitive dependencies | cppkg-cli install --no-transitive | | Install workspace packages | cppkg-cli install --workspace | | Try a package without manifest | cppkg-cli get https://github.com/fmtlib/fmt | | Get a GitLab package | cppkg-cli get https://gitlab.com/libname/lib | | Get a Bitbucket package | cppkg-cli get https://bitbucket.org/owner/repo | | Install pre-built binaries | cppkg-cli get owner/repo --binary linux/x64 | | Remove a package | cppkg-cli remove json | | Update packages | cppkg-cli update | | Update to a specific tag | cppkg-cli update fmt --tag 11.2.0 | | Vendor dependencies locally | cppkg-cli vendor | | Audit for vulnerabilities | cppkg-cli audit |

Project Inspection & Discovery

| Task | Command | | --- | --- | | List installed packages | cppkg-cli list | | List with dependency tree | cppkg-cli list --tree | | Inspect source for missing includes | cppkg-cli inspect | | Auto-add recommendations | cppkg-cli inspect --add --install | | Search for a package | cppkg-cli search json | | Show dependency chain | cppkg-cli why fmt | | Check project health | cppkg-cli status |

Scaffolding & Integration

| Task | Command | | --- | --- | | Scaffold a new C++ library | cppkg-cli create my-lib | | Scaffold a header-only C library | cppkg-cli create my-lib --header-only --c | | Integrate cppkg into CMake | cppkg-cli integrate | | Generate cmake helper | cppkg-cli cmake | | Import from vcpkg.json | cppkg-cli import vcpkg.json | | Import from conanfile.txt | cppkg-cli import conanfile.txt |

Build & Compile

| Task | Command | | --- | --- | | Compile source files | cppkg-cli compile src/main.cpp -o app | | Build CMake project | cppkg-cli build --release | | Manage compiler profiles | cppkg-cli compiler list |

Server & Configuration

| Task | Command | | --- | --- | | Open the browser package manager | cppkg-cli server | | Publish a release | cppkg-cli publish --tag v1.0.0 | | View config | cppkg-cli config list | | Set config value | cppkg-cli config set githubToken ghp_xxx | | Manage download cache | cppkg-cli cache list |

For command options, run:

cppkg-cli <command> --help

Project Files

Typical cppkg files stay inside your project:

| Path | Purpose | | --- | --- | | cppkg.json | Project dependency manifest with platforms, hooks, binary settings. | | cppkg-lock.json | Resolved archive URLs, integrity data, and transitive dependency graph. | | cppkg.config.json | Optional project config (tokens, paths, proxy). | | cppkg-workspace.json | Optional workspace config for monorepo setups. | | cppkg-toolchains.json | Compiler profile definitions. | | cpp_libs/include/ | Shared include directory. | | cpp_libs/projects/ | Full source projects. | | cpp_libs/bin/ | Pre-built binaries (with --binary). | | cpp_libs/cache/ | Downloaded archive cache. | | vendor/ | Vendored dependencies (with cppkg-cli vendor). |