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

@jbrejner/cli

v2.11.1

Published

Kosli CLI - Record and query software delivery events

Readme

Kosli CLI

The Kosli CLI is a command-line tool for recording and querying software delivery events. This npm package provides an easy way to install and use the Kosli CLI in JavaScript/TypeScript projects.

Installation

Global Installation

Install globally to use the CLI anywhere:

npm install -g @jbrejner/cli

Project Installation

Install as a development dependency in your project:

npm install --save-dev @jbrejner/cli

Usage

After installation, you can use the kosli command:

# Check version
kosli version

# Get help
kosli --help

# Example: Report a deployment
kosli report deployment <deployment-name> \
  --environment <environment-name> \
  --api-token <your-api-token>

Using with npx

You can run Kosli without installing it:

npx @jbrejner/cli version

Using in npm scripts

Add Kosli commands to your package.json:

{
  "scripts": {
    "kosli:version": "kosli version",
    "kosli:report": "kosli report deployment production --environment prod"
  }
}

Then run:

npm run kosli:version

How It Works

This npm package downloads the appropriate platform-specific Kosli CLI binary during installation:

  • Supported Platforms: macOS (darwin), Linux, Windows
  • Supported Architectures: x64 (amd64), arm64

The binary is downloaded from the official Kosli CLI releases.

Requirements

  • Node.js: >= 14.0.0
  • Internet connection: Required during installation to download the binary

Documentation

For full documentation, visit:

Troubleshooting

Installation Issues

If the binary download fails during installation, you can:

  1. Manually download the binary from GitHub releases
  2. Place it in node_modules/@jbrejner/cli/bin/
  3. Make it executable: chmod +x node_modules/@jbrejner/cli/bin/kosli

Version Mismatch

To verify the installed version:

kosli version

The version should match the npm package version.

CI/CD Integration

GitHub Actions

- name: Install Kosli CLI
  run: npm install -g @jbrejner/cli

- name: Report deployment
  run: |
    kosli report deployment ${{ github.sha }} \
      --environment production \
      --api-token ${{ secrets.KOSLI_API_TOKEN }}

GitLab CI

deploy:
  before_script:
    - npm install -g @jbrejner/cli
  script:
    - kosli report deployment $CI_COMMIT_SHA
      --environment production
      --api-token $KOSLI_API_TOKEN

Support

License

MIT License - See the LICENSE file for details.

About Kosli

Kosli provides complete visibility and change tracking for your software delivery pipelines. Learn more at kosli.com.