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

vibeinsights

v2.6.0

Published

A sophisticated AI-powered CLI tool that transforms repository analysis and documentation generation for researchers and developers

Readme

Vibe Insights AI

A comprehensive CLI tool for AI researchers that analyzes repositories, generates documentation, and integrates with OpenAI API to provide intelligent code insights.

npm version license Downloads

Features

  • GitHub Integration: Authenticate with GitHub to analyze any public or private repository
  • Local Analysis: Analyze repositories on your local machine
  • Code Extraction: Extract and process codebases with intelligent filtering
  • OpenAI Integration: Generate AI-powered documentation using advanced LLMs
  • Multiple Documentation Types:
    • Architectural Documentation
    • User Stories
    • Code Story (Narrative Explanations)
    • Custom Analysis with your own prompts
  • Code Complexity Analysis: Identify complex code with detailed metrics
  • Dependency Analysis: Visualize dependencies between files
  • Semantic Code Search: Find code concepts using natural language
  • Tech Stack Detection: Automatically identify languages, frameworks and libraries
  • Terminal Rendering: View documentation directly in your terminal with proper formatting
  • Export Options: Generate output in various formats (Markdown, HTML, JSON, CSV, DOT)

Installation

Global Installation (Recommended)

npm install -g vibeinsights

Local Installation

npm install vibeinsights

Running with npx

npx vibeinsights vibe

Quick Start

Run the interactive mode for a guided experience:

vibe

Or use specific commands for direct access to features:

# Analyze complexity metrics for a codebase
vibe complexity ./my-project

# Extract code from a repository
vibe extract ./my-project

# Generate documentation using OpenAI
vibe generate-docs repo_id

# Search code using natural language
vibe search ./my-project

Complete Command Reference

Interactive Mode

Start interactive mode to guide you through the process:

vibe interactive

Extract Code

Extract and analyze code from a repository:

vibe extract [directory] --output analysis.md --exclude dist,build

Options:

  • --output, -o: Output file name
  • --exclude, -x: Additional exclusion pattern(s) (e.g., "dist,build")
  • --max-size, -s: Maximum file size in bytes to include

Generate Documentation

Generate documentation from repository code using OpenAI:

# Generate architectural documentation
vibe generate-docs <repository_id> --type architecture

# Generate narrative code story with moderate complexity
vibe generate-docs <repository_id> --type code_story --complexity moderate

# Generate user stories
vibe generate-docs <repository_id> --type user_stories

# Generate custom analysis
vibe generate-docs <repository_id> --type custom --prompt "Your custom prompt here"

Options:

  • --type: Type of documentation to generate (architecture, user_stories, code_story, custom)
  • --complexity: Complexity level for code stories (simple, moderate, detailed) - only used with type=code_story
  • --prompt: Custom prompt for documentation generation (required if type=custom)
  • --api-key: OpenAI API key (will use OPENAI_API_KEY environment variable if not provided)

List Repositories

List all analyzed repositories:

vibe list-repos

List Documentation

List all documentation generated for a repository:

vibe list-docs <repository_id>

View Document

View a specific document in the terminal or save as markdown:

vibe view-doc <document_id> --format terminal

Options:

  • --format: Output format: "terminal" or "raw" (default: "terminal")

Analyze Code Complexity

Analyze code complexity metrics:

vibe complexity <directory> --output json --threshold 15

Options:

  • --output: Output format (json, html, or csv)
  • --threshold: Complexity threshold for highlighting
  • --language: Filter by programming language
  • --filter: Pattern to filter files (glob syntax)
  • --exclude: Pattern to exclude files (glob syntax)
  • --details: Whether to show detailed breakdown by function/method

Analyze Dependencies

Analyze dependencies between files in a codebase:

vibe analyze-deps <directory> --output dot --depth 10

Options:

  • --output: Output format (dot, json, or html)
  • --depth: Maximum depth for dependency analysis
  • --filter: Pattern to filter files (glob syntax)
  • --exclude: Pattern to exclude files (glob syntax)
  • --highlight-circular: Whether to highlight circular dependencies
  • --show-external: Whether to include external dependencies

Search Code

Search for code patterns or concepts in a repository:

vibe search <directory> --query "database connection handling" --limit 10

Options:

  • --query: Search query
  • --limit: Maximum number of results
  • --context: Lines of context to show
  • --api-key: OpenAI API key for semantic search
  • --use-embeddings: Whether to use semantic search with embeddings

Detect Tech Stack

Detect technology stack used in a repository:

vibe detect-stack <directory> --output text --scan-deps

Options:

  • --output: Output format (text, json, or md)
  • --scan-deps: Whether to perform deep dependency scanning
  • --check-outdated: Whether to check for outdated dependencies

GitHub Authentication

# Login to GitHub with default settings
vibe login

# Login using web redirect flow
vibe login --web-redirect

# Login using custom GitHub app credentials 
vibe login --use-custom-app

# Force re-authentication (ignore existing token)
vibe login --force

# Logout of GitHub
vibe logout

Advanced Features

Code Story Feature

The Code Story feature transforms complex code structures into narrative explanations using OpenAI's language models. It helps developers and researchers understand intricate code by creating engaging stories that explain:

  • Design Decisions: Why code is structured a certain way
  • Logic Flow: How data and control flow through the system
  • Complex Algorithms: Detailed explanations using metaphors and analogies
  • Architecture Patterns: The reasoning behind architectural choices

Choose from three complexity levels:

  • Simple: Beginner-friendly explanations focusing on high-level concepts
  • Moderate: Balanced technical details with narrative storytelling
  • Detailed: In-depth explanations for experienced developers

Example usage:

vibe generate-docs repo_id --type code_story --complexity simple

Semantic Code Search

Find code patterns or concepts using natural language queries. This feature leverages OpenAI embeddings to understand semantic meaning:

vibe search ./my-project --query "error handling for API requests" --use-embeddings

Tech Stack Detection

Automatically identify the languages, frameworks, libraries, and build tools used in a project:

vibe detect-stack ./my-project --output md --scan-deps --check-outdated

This command generates a report that includes:

  • Primary programming languages
  • Frameworks in use
  • Libraries and dependencies
  • Build tools and configuration
  • Outdated packages that need updating
  • Recommendations for improvements

Environment Variables

OpenAI Integration

  • OPENAI_API_KEY: Your OpenAI API key for generating documentation

GitHub OAuth - For End Users

  • GITHUB_CLIENT_ID: Your GitHub OAuth app client ID (when using --use-custom-app)
  • GITHUB_CLIENT_SECRET: Your GitHub OAuth app client secret (when using --use-custom-app)

GitHub OAuth - For VibeInsights Developers

  • VIBE_DEFAULT_GITHUB_CLIENT_ID: Default client ID for built-in authentication flow
  • VIBE_DEFAULT_GITHUB_CLIENT_SECRET: Default client secret for built-in authentication flow

Configuration

Vibe Insights AI stores configuration and generated content in:

~/.vibeinsights/

This includes:

  • repositories/: Cloned and analyzed repositories
  • documents/: Generated documentation
  • github-token.json: Stored GitHub auth token

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT

Connect