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

ai-ship-cli

v0.3.0-beta.3

Published

AI-powered Git workflow CLI (commit, branch, PR generation)

Readme

🚀 AI-Ship

Review your code before your PR. Ship with confidence.

AI-Ship is a Git Intelligence CLI that helps you:

  • generate commits
  • create PRs / MRs
  • review your code with AI

👉 All before your code leaves your machine


🔥 Why AI-Ship?

The problem

  • Writing meaningful commit messages is harder than it should be
  • Naming branches consistently breaks developer flow
  • PR reviews come too late — basic issues slip through
  • Reviewers spend time on avoidable mistakes
  • AI tools (like Copilot) help write code — but don’t understand your full Git diff

👉 Git workflows remain manual where they should be intelligent


The solution

Run this before pushing:

ai-ship review main

👉 Get:

  • 🔴 Critical bugs
  • 🟡 Warnings
  • 🟢 Improvements

Before your PR even exists.


⚡ What AI-Ship Does

🧠 1. AI Code Review (Core Feature 🔥)

Analyze your code changes using:

  • git diff (actual changes)
  • intelligent filtering (no noise)
  • signal-based analysis (not just keywords)
  • AI (Gemini + local fallback)

👉 Output:

  • structured feedback
  • severity classification
  • clean HTML report

✨ 2. Smart Commits

ai-ship commit
  • Generates meaningful commit messages
  • Based on actual code changes
  • Avoids generic commits like "fix stuff"

🌿 3. Smart Branch Naming

--new-branch
  • AI-generated semantic branch names
  • Example: feature/add-user-auth

🚀 4. One-Command Workflow

ai-ship commit --new-branch --push --pr --yes

👉 This does everything:

  • Stage changes
  • Generate commit
  • Create branch
  • Push to remote
  • Open PR / MR (GitLab supported)

🔍 5. Pre-PR Review System

AI-Ship is NOT a PR bot.

👉 It runs before PR creation

  • No spam comments
  • No noise in GitHub/GitLab
  • Private, fast, local feedback

⚙️ 6. Configurable AI Providers

Supports:

  • Gemini (cloud) → fast + powerful
  • Ollama (local) → private + offline
ai-ship config set provider local
ai-ship config set gitlab.token <token>
ai-ship config set gitlab.baseUrl https://gitlab.com

🧩 7. Intelligent Diff Processing

AI-Ship doesn't blindly send diffs.

It:

  • extracts meaningful patches
  • scores them using signals (conditions, loops, API calls, etc.)
  • filters noise (lockfiles, low-signal changes)

👉 Result: better AI output


🧠 8. Signal-Based Review Engine

Instead of keyword matching, AI-Ship detects:

  • conditions
  • functions
  • loops
  • API calls
  • DB queries
  • error handling

👉 This makes reviews:

  • more accurate
  • less noisy
  • language-flexible (and ready for Tree-sitter)

📄 9. HTML Review Report

AI-Ship generates a clean HTML report:

  • grouped by file
  • severity-based coloring
  • summary at top

👉 Easy to scan, easy to act


🔍 Example Output

[file: auth.js]

signals: condition_added(2), api_call(1)

- [critical] Possible assignment instead of comparison
- [warning] Missing error handling in API call

🛠️ Installation

git clone https://github.com/developer-diganta/ai-ship.git
cd ai-ship
npm install
npm run build
npm link

🚢 Usage

Basic commit

ai-ship commit

Review before PR

ai-ship review main

Full workflow

ai-ship commit --new-branch --push --pr --yes

🎛️ CLI Options

| Flag | Description | | -------------------- | -------------------------- | | --new-branch | Create AI-generated branch | | --push | Push to remote | | --pr | Create PR / MR | | --yes | Skip confirmations | | --dry-run | Preview without executing |


⚙️ Configuration

ai-ship config set provider local
ai-ship config set gitlab.token <token>
ai-ship config show --verbose

Config stored in:

~/.ai-ship/config.json

🧠 Philosophy

“Review your code before the world sees it.”

AI-Ship is:

  • ❌ Not a chatbot
  • ❌ Not a PR comment bot
  • ✅ A local developer assistant

⚠️ Current Limitations

  • HTML UI is minimal (improving)
  • No line-level annotations (yet)
  • Limited language awareness (Tree-sitter planned)

🗺️ Roadmap

  • [ ] Tree-sitter integration (better multi-language support)
  • [ ] Line-level annotations
  • [ ] Enhanced HTML UI
  • [ ] VS Code extension

🤝 Contributing

PRs are welcome!

  1. Fork the repo
  2. Create your branch
  3. Submit a PR

👨‍💻 Author

Built by Diganta


⭐ Final Thought

AI-Ship introduces a new idea:

Pre-PR Code Intelligence

Let AI-SHIP handle all the git workflows while you focus on what goes into the code!