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

codexray-cli

v0.3.27

Published

CLI tool for scanning codebases and creating interactive dependency graphs

Downloads

50

Readme

CodeXray CLI

Scan your codebase and visualize it as an interactive dependency graph. CodeXray helps you understand complex codebases by creating a visual atlas of your code structure, imports, and relationships.

Features

  • 📊 Interactive Visualization - See your code as a graph with files as nodes and imports as edges
  • 🔍 Dependency Analysis - Automatically detects imports and relationships between files
  • 🗂️ Folder Grouping - Visual organization by directory structure
  • 🚀 Language Support - TypeScript, JavaScript, Python, Rust, Go, and more
  • Fast Scanning - Efficient chunked streaming for large codebases
  • 🌐 Browser-based Atlas - Automatic browser opening after scan

Installation

npm install -g codexray-cli

Or use directly with npx:

npx codexray-cli scan .

Usage

Basic Scan

Scan your current directory:

codexray scan

Scan a specific directory:

codexray scan /path/to/project

Initialize Ignore File

Create a .codexrayignore file with common patterns:

codexray init

Connect to Remote Server

By default, CodeXray expects a local server at http://localhost:3000. To use a different server:

codexray scan . --api-base https://your-codexray-server.com

Or set an environment variable:

export CODEXRAY_API_BASE=https://your-codexray-server.com
codexray scan .

Options

Options:
  -u, --api-base <url>         CodeXray server URL (default: http://localhost:3000)
  -s, --session-id <id>        Session ID (auto-generated if not provided)
  --max-chunk <bytes>          Max bytes per chunk (default: 20480)
  --no-open                    Don't open browser after scan
  -i, --ignore <patterns...>   Additional patterns to ignore
  --show-ignored               Show which files are being ignored
  --no-default-ignore          Disable default ignore patterns
  -h, --help                   Display help
  -V, --version               Display version

Examples

Scan with custom server:

codexray scan . --api-base https://codexray.example.com

Scan without opening browser:

codexray scan . --no-open

Use specific session ID:

codexray scan . --session-id my-project-session

Self-Hosted Server

To run your own CodeXray server:

  1. Clone the repository:
git clone https://github.com/yourusername/codexray.git
cd codexray
  1. Install dependencies:
pnpm install
  1. Start the server:
pnpm dev:web
  1. Use the CLI with your local server:
codexray scan . --api-base http://localhost:3000

Supported Languages

CodeXray automatically detects programming languages by file extension:

  • JavaScript/TypeScript: .js, .jsx, .ts, .tsx
  • Python: .py
  • Rust: .rs
  • Go: .go
  • Java: .java
  • C#: .cs
  • C/C++: .c, .cpp, .h
  • Web: .html, .css, .svelte, .vue
  • Config: .json, .yaml, .yml
  • Documentation: .md

Ignored Paths

The following are automatically excluded from scans:

  • node_modules/
  • .git/
  • dist/
  • .next/
  • Build and cache directories

Troubleshooting

Connection Issues

If you get a "failed to create session" error:

  • Ensure the CodeXray server is running
  • Check the server URL with --api-base
  • Verify network connectivity

Large Codebases

For very large projects, you may want to:

  • Increase chunk size: --max-chunk 50000
  • Scan specific subdirectories instead of the entire project

License

MIT

Contributing

Contributions are welcome! Please check the main repository for guidelines.

Links