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

@hejaz/ai-cli

v1.0.0

Published

Hejaz AI CLI — Claude Code-like terminal AI assistant with OS Agent, MCP, and knowledge base integration

Readme

@hejaz/ai-cli

A Claude Code-like terminal AI assistant powered by the Hejaz AI Gateway.

Features

  • Streaming Chat — Real-time SSE streaming with tool call display
  • OS Agent — Read/write/edit files, search code (glob/grep), execute shell commands
  • MCP Integration — Connect to Model Context Protocol servers (stdio transport)
  • Knowledge Base — Bind and query enterprise knowledge bases
  • Sub-Agent Display — Parallel agent execution visualization
  • Slash Commands/model, /kb, /mcp, /session, /config, /help
  • Permission System — Three-level access control (auto/confirm/dangerous)

Install

npm install -g @hejaz/ai-cli

Quick Start

# Start with API key
hejaz --api-key gw_YOUR_KEY --base-url https://your-gateway.com

# Or configure once
hejaz --api-key gw_YOUR_KEY --base-url https://your-gateway.com
# Config saved to ~/.hejaz/config.json — subsequent runs just:
hejaz

Usage

# Chat with AI
> Tell me about this project structure

# Use slash commands
> /model gemini-3-flash-preview
> /kb islamic-knowledge, sales
> /session new
> /help

# AI can use OS tools (with permission prompts)
> Read the package.json and suggest improvements
> Search for all TODO comments in src/
> Run the test suite

CLI Options

| Flag | Short | Description | |------|-------|-------------| | --api-key | -k | Gateway API key | | --base-url | -u | Gateway URL (default: http://localhost:8080) | | --model | -m | Default model | | --tenant-id | -t | Tenant identifier | | --kb | | Knowledge base IDs (comma-separated) | | --version | -v | Show version | | --help | | Show help |

OS Agent Tools

| Tool | Permission | Description | |------|-----------|-------------| | read_file | Auto | Read file with line numbers | | glob | Auto | File pattern search | | grep | Auto | Content regex search | | list_dir | Auto | Directory listing | | tree | Auto | Directory tree | | write_file | Confirm | Create/overwrite file | | edit_file | Confirm | Exact string replacement | | bash | Dangerous | Shell command execution |

Configuration

~/.hejaz/
├── config.json          # API key, model, base URL
├── permissions.json     # File access rules
├── mcp_servers.json     # MCP server configs
└── sessions/            # Session cache

License

MIT