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

agent-cli-kit

v1.0.0

Published

Starter kit for AI agents building CLIs. Includes auth, config, logging, API helpers.

Downloads

111

Readme

agent-cli-kit

A starter kit for AI agents building CLI tools. Handles config, logging, API calls, and auth.

Install

npm install agent-cli-kit

Quick Start

const { AgentCLI } = require('agent-cli-kit');
const { program } = require('commander');

// Create your agent
const agent = new AgentCLI('my-agent', '1.0.0');

// Add commands
program
  .command('action <target>')
  .action((target) => {
    agent.log.success(`Action on ${target}`);
  });

program.parse(process.argv);

Features

✅ Config management (auto-saved to ~/.agent-config/) ✅ Logging helpers (success, error, warn, info) ✅ API call wrapper with timeout ✅ Commander.js pre-integrated ✅ Zero additional setup needed

Built-in Methods

Logging

  • agent.log.success(msg) — ✅ messages
  • agent.log.error(msg) — ❌ errors
  • agent.log.warn(msg) — ⚠️ warnings
  • agent.log.info(msg) — ℹ️ info
  • agent.log.section(title) — 📍 section header
  • agent.log.json(obj) — Pretty-print JSON

Config

  • agent.get(key) — Get config value
  • agent.set(key, value) — Save config value

API

  • await agent.api(url, options) — Fetch with timeout + error handling

Example: Weather Agent

const { AgentCLI } = require('agent-cli-kit');
const { program } = require('commander');

const agent = new AgentCLI('weather-agent', '1.0.0');

program
  .command('weather <city>')
  .action(async (city) => {
    try {
      const data = await agent.api(`https://api.example.com/weather?city=${city}`);
      agent.log.section(`Weather in ${city}`);
      agent.log.info(`Temperature: ${data.temp}°C`);
    } catch (err) {
      agent.log.error(`Could not fetch weather`);
    }
  });

program.parse(process.argv);

License

MIT