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

fortify-ai-cli

v0.2.2

Published

AI powered developer-focused CLI for error explanation, git commit generation, codebase summarization, and terminal first workflows

Downloads

780

Readme

Fortify · GitHub license

Fortify (fortify-ai-cli) is a developer-focused terminal assistant that helps you explain errors, generate commit messages, summarize codebases, and streamline daily workflows directly from the CLI.

Built for developers who live in the terminal.


Demo

Fortify Demo


Features

  • Streaming AI responses directly in terminal
  • Git-aware commit message generation
  • Error and stack trace explanation
  • File and folder summarization
  • Interactive chat mode
  • Local CLI configuration and chat history persistence
  • Clean terminal UX with colors, prompts, and spinners

Example workflow:

# Explain a stack trace
fortify explain ./logs/error.txt

# Generate a commit message from staged changes
fortify commit --style conventional

# Summarize a codebase
fortify summarize ./src

# Interactive AI chat
fortify chat

# Inspect saved chat sessions
fortify history --list

Requirements

  • Node.js 20+
  • An OpenAI API key with billing or credits enabled

Get your API key here:

https://platform.openai.com/api-keys


Installation

Install globally:

npm install -g fortify-ai-cli

The installed command is:

fortify

Run directly without installing:

npx fortify-ai-cli --help

Quick Start

Authenticate once:

fortify auth

This stores your API key locally in:

~/.fortify/config.json

Then start using Fortify:

fortify chat
fortify explain ./crash.log
fortify commit
fortify summarize ./src
fortify history --list

Use help anytime:

fortify --help
fortify <command> --help

History Storage

Fortify stores local chat history in:

~/.fortify/history

Use:

fortify history --list
fortify history --show <session-id>
fortify history --clear

Cancellation Behavior

All interactive and streaming flows handle Ctrl+C gracefully:

  • In fortify chat, Ctrl+C exits the chat loop cleanly.
  • During streaming commands (explain, summarize, commit), Ctrl+C cancels the active generation without noisy stack traces.
  • Cancelled flows return exit code 130.

Configuration

Example configuration:

{
  "modelPreferences": {
    "defaultModel": "gpt-5.4",
    "fallbackModels": ["gpt-5.3", "gpt-5.4-mini"]
  }
}

If your OpenAI account has no billing or credits enabled, requests will fail regardless of fallback models.

Manage billing here:

https://platform.openai.com/account/billing


Package Name vs CLI Name

The npm package is published as:

fortify-ai-cli

because the shorter package name was unavailable on npm.

The installed CLI command remains:

fortify

Built With

  • Node.js
  • Commander.js
  • OpenAI Responses API
  • Streaming async iterators
  • Chalk
  • Ora
  • Inquirer

License

MIT - see LICENSE