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

@lxgicstudios/ai-gitignore

v1.0.0

Published

Auto-detect your project's tech stack and generate a comprehensive .gitignore file. Supports Node, Python, Go, Rust, Java, Ruby, .NET, and 20+ more frameworks.

Readme

@lxgicstudios/ai-gitignore

npm version license node

Auto-detect your project's tech stack and generate a comprehensive .gitignore file. Supports 20+ languages and frameworks. No config needed.

Zero external dependencies.

Install

npm install -g @lxgicstudios/ai-gitignore

Or run it directly:

npx @lxgicstudios/ai-gitignore

Usage

# Generate .gitignore for current directory
ai-gitignore

# Preview what would be generated
ai-gitignore --preview

# Merge with existing .gitignore
ai-gitignore --merge

# Check for tracked files that should be ignored
ai-gitignore --check

# Scan a specific directory
ai-gitignore /path/to/project

# Overwrite existing .gitignore
ai-gitignore --force

# JSON output
ai-gitignore --json

Features

  • Auto-detects your tech stack by scanning project files
  • Supports 20+ languages: Node.js, TypeScript, Python, Go, Rust, Java, Ruby, .NET, PHP, Swift, Kotlin, Dart, Elixir, Scala, Haskell, R, Terraform, and more
  • Detects frameworks: Next.js, React/Vite, Docker
  • Includes OS-specific rules (macOS, Windows, Linux)
  • Includes editor rules (VS Code, JetBrains, Vim)
  • Merge mode to add rules to an existing .gitignore
  • Check mode to find tracked files that should be ignored
  • Preview mode to see output before writing
  • JSON output for scripting
  • Confidence scoring for detections
  • Zero external dependencies

Detected Stacks

| Stack | Detection Files | |-------|----------------| | Node.js | package.json, yarn.lock, .nvmrc | | TypeScript | tsconfig.json, *.ts files | | Python | requirements.txt, pyproject.toml, Pipfile | | Go | go.mod, go.sum | | Rust | Cargo.toml, Cargo.lock | | Java | pom.xml, build.gradle | | Ruby | Gemfile, Rakefile | | .NET | *.csproj, *.sln | | PHP | composer.json | | Swift | Package.swift, *.xcodeproj | | Kotlin | build.gradle.kts | | Dart/Flutter | pubspec.yaml | | Elixir | mix.exs | | Terraform | main.tf, *.tf | | Docker | Dockerfile, docker-compose.yml | | Next.js | next.config.js |

Options

| Option | Alias | Description | Default | |--------|-------|-------------|---------| | --help | -h | Show help message | | | --dir <path> | -d | Directory to scan | . | | --check | -c | Find tracked files that should be ignored | false | | --merge | -m | Merge with existing .gitignore | false | | --preview | -p | Preview without writing | false | | --force | -f | Overwrite existing .gitignore | false | | --json | | Output as JSON | false |

License

MIT - LXGIC Studios