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 🙏

© 2025 – Pkg Stats / Ryan Hefner

onboardgpt

v2.7.0

Published

OnboardGPT CLI for repository analysis and onboarding

Downloads

35

Readme

OnboardGPT CLI

AI-powered repository analysis and onboarding assistant. Generate intelligent summaries, analyze dependencies, detect entry points, and understand tech stacks with a single command.

🚀 Quick Start

# Install globally (recommended)
npm install -g onboardgpt

# Or run without installing
npx onboard-gpt --help

# Analyze current directory
onboard-gpt

# Analyze specific repository
onboard-gpt /path/to/repository

# Generate summary for developers
onboard-gpt --summarize developer

# JSON output for CI/CD
onboard-gpt --output json

📋 Features

🔍 Selective Analysis

  • --no-deps: Skip dependency analysis
  • --no-entry: Skip entry point detection
  • --no-stack: Skip technology stack analysis

🤖 AI-Powered Summaries

  • --summarize developer: Technical summary for developers
  • --summarize pm: Product manager focused summary
  • --summarize new-hire: Onboarding guide for new team members
  • --summarize auditor: Compliance and security focused summary

📤 Output Formats

  • --output text: Human-readable format (default)
  • --output json: Machine-readable JSON for CI/CD integration

🤖 AI Agent System (NEW!)

  • --agent: Enable advanced AI-powered code analysis
  • --interactive: Start conversational repository exploration
  • --agent-max-files <count>: Control analysis scope (default: 50)
  • --agent-max-depth <depth>: Control directory depth (default: 5)

🛠️ Additional Options

  • --verbose: Enable detailed error information
  • --help: Show usage information
  • --version: Display version number

📖 Usage Examples

Basic Analysis

# Full analysis with all features
onboard-gpt

# Analyze specific repository
onboard-gpt /path/to/my-project

Selective Analysis

# Skip dependency analysis (faster for large projects)
onboard-gpt --no-deps

# Only analyze tech stack
onboard-gpt --no-deps --no-entry

# Minimal analysis
onboard-gpt --no-deps --no-entry --no-stack

AI-Powered Summaries

# Developer-focused summary with code examples
onboard-gpt --summarize developer

# PM summary focusing on business impact
onboard-gpt --summarize pm

# New hire onboarding with setup instructions
onboard-gpt --summarize new-hire

# Security and compliance focused
onboard-gpt --summarize auditor

CI/CD Integration

# JSON output for automated processing
onboard-gpt --output json

# Selective analysis with JSON output
onboard-gpt --no-deps --output json

# Summary in JSON format
onboard-gpt --summarize developer --output json

AI Agent Analysis

# Enable AI agent for intelligent code analysis
onboard-gpt --agent

# Start interactive AI exploration session
onboard-gpt --agent --interactive

# Configure agent analysis scope
onboard-gpt --agent --agent-max-files 100 --agent-max-depth 5

# Combine agent with traditional analysis
onboard-gpt --agent --summarize developer

Complex Combinations

# Skip deps, generate PM summary, output as JSON
onboard-gpt --no-deps --summarize pm --output json

# Fast analysis with new-hire summary
onboard-gpt --no-deps --no-entry --summarize new-hire

# Full analysis with developer summary
onboard-gpt --summarize developer --verbose

# AI agent with selective analysis
onboard-gpt --agent --no-deps --interactive

🔧 Configuration

The CLI automatically detects and analyzes:

  • Dependencies: package-lock.json, yarn.lock, Pipfile.lock, poetry.lock
  • Entry Points: Main scripts, web applications, CLI tools, libraries
  • Tech Stacks: Languages and framework versions
  • Project Structure: Key files and directories

📊 Output Examples

Text Output (Default)

🚀 OnboardGPT Analysis
📁 Repository: /path/to/project
⚙️ Config: deps=true, entry=true, stack=true

📊 OVERVIEW
- Total Files: 1,245
- Languages: TypeScript, JavaScript, Python
- Dependencies: 127 (45 dev)

📦 DEPENDENCIES
- Production: 82
- Development: 45
- Total: 127

🚀 ENTRY POINTS
🌐 Web Applications:
  - src/app.js (Express server)
  - src/client/index.tsx (React app)

📝 SUMMARY
Generated AI summary based on audience...

JSON Output

{
  "overview": {
    "totalFiles": 1245,
    "languages": ["TypeScript", "JavaScript", "Python"],
    "keyDirectories": ["src", "tests", "docs"]
  },
  "dependencies": {
    "total": 127,
    "direct": 23,
    "dev": 45,
    "tree": [...]
  },
  "entryPoints": [...],
  "techStacks": [...],
  "summary": "AI-generated summary..."
}

🚦 Error Handling

The CLI provides helpful error messages:

# Invalid audience
❌ Error: Invalid audience: invalid. Must be one of: developer, pm, new-hire, auditor

# Invalid output format  
❌ Error: Invalid output format: xml. Must be one of: text, json

# Non-existent repository
❌ Error: Repository path does not exist: /invalid/path

🧪 Testing

Run the comprehensive test suite:

npm test

Test Coverage: 28 tests covering all functionality:

  • ✅ Basic CLI operations
  • ✅ Selective analyzer flags
  • ✅ Summary generation
  • ✅ Output formats
  • ✅ Error handling
  • ✅ Complex flag combinations

🔄 CI/CD Integration

Perfect for automated workflows:

# GitHub Actions example
- name: Analyze Repository
  run: |
    npx onboard-gpt --output json > analysis.json
    
- name: Generate Documentation
  run: |
    npx onboard-gpt --summarize developer > ONBOARDING.md

🎯 Success Criteria (Day 4 Complete)

Selective Analyzer Flags: --no-deps, --no-entry, --no-stack all working
Summary Controls: All audiences (developer, pm, new-hire, auditor) implemented
Output Formats: Both text and JSON formats working perfectly
Flag Combinations: All combinations tested and working
Error Handling: Comprehensive validation and user-friendly error messages
Unit Tests: 28/28 tests passing with ≥90% coverage
Integration Demo: Full functionality demonstrated end-to-end

🚀 Next Steps

Ready for Sprint 2: VS Code Extension Polish (Days 5-8):

  • User settings integration
  • UI improvements with collapsible sections
  • Live streaming progress indicators