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

@guntur-developer/code-rover

v0.1.0

Published

CLI tool for scanning and analyzing JavaScript/TypeScript codebases

Downloads

195

Readme

🐾 Code-Rover

Conquer Any Codebase.
Your Code, Offroad Ready.

CLI tool untuk scanning & analisis codebase JavaScript/TypeScript.
Code-Rover menjelajah seluruh project-mu dan memberikan laporan kesehatan yang jelas.


Fitur

  • 📊 Statistik project — total files, lines, functions, classes
  • 📦 Dependency analysis — mana yang terpakai, mana yang menganggur
  • 🔍 Code smellsconsole.log, TODO, FIXME, TypeScript any
  • 🔄 Circular dependency detection
  • 💚 Health Score (0-10) + rekomendasi perbaikan
  • 👀 Watch mode — re-scan otomatis saat file berubah
  • 📄 JSON output — siap untuk CI/CD
  • ⚙️ Configurable via .code-roverrc

Install

# Global
npm install -g code-rover

# Atau langsung pakai npx (tanpa install)
npx code-rover scan

Quick Start

cd your-project
code-rover scan

Commands

# Scan current directory
code-rover scan

# Scan specific path
code-rover scan --path ./src

# JSON output
code-rover scan --json

# Save report to file
code-rover scan --output report.json

# Summary only (health score + critical issues)
code-rover scan --summary

# Disable colors
code-rover scan --no-color

# Watch mode
code-rover watch
code-rover watch --path ./src

# Generate default config
code-rover init

Configuration (.code-roverrc)

Jalankan code-rover init untuk membuat file config default.

{
  "ignorePatterns": [
    "**/node_modules/**",
    "**/dist/**",
    "**/build/**",
    "**/*.test.js",
    "**/*.spec.ts",
    "**/*.d.ts"
  ],
  "maxLinesPerFile": 300,
  "alertOnConsoleLog": true,
  "alertOnAnyType": true,
  "alertOnTodo": true,
  "excludeDependencies": ["typescript", "@types/*"],
  "healthScore": {
    "unusedDepsPenalty": 0.5,
    "consoleLogPenalty": 0.3,
    "anyTypePenalty": 0.4,
    "circularPenalty": 1.5,
    "largeFilePenalty": 0.2
  },
  "extensions": [".js", ".jsx", ".ts", ".tsx", ".mjs", ".cjs"]
}

Contoh Output

═══════════════════════════════════════════
🐾  CODE-ROVER REPORT
═══════════════════════════════════════════
   Project : my-app
   Path    : /home/user/my-app

💚  HEALTH SCORE
   6.4/10  💛  Fair. Some refactoring would help.

📊  STATISTIK DASAR
   Total files      : 87
   Total lines      : 12,450
   Total functions  : 312
   Total classes    : 24
   Total imports    : 198

📦  DEPENDENCIES
...
⚠️  Dependencies yang tidak terpakai:
   - lodash
   - moment

🔍  CODE SMELLS
   console.log / warn / error : 34 🟡
   TODO comments              : 9 🟡
   TypeScript 'any'           : 17 🔴

🔄  CIRCULAR DEPENDENCIES DETECTED!
   1. src/services/user.js ↔ src/models/User.js

📄  TOP 5 FILES TERBESAR
   1. src/services/orderService.js - 456 lines 🔴
   ...

CI/CD Example (GitHub Actions)

- name: Code-Rover Scan
  run: npx code-rover scan --json --output code-rover-report.json

- name: Upload Report
  uses: actions/upload-artifact@v4
  with:
    name: code-rover-report
    path: code-rover-report.json

Tech Stack

| Component | Library | |------------------|----------------------| | Parser | @babel/parser + traverse | | CLI | Commander.js | | Styling | Chalk + cli-table3 | | Spinner | Ora | | File watching | Chokidar | | Glob | glob |


Development

git clone https://github.com/yourusername/code-rover.git
cd code-rover
npm install
npm link          # biar bisa panggil `code-rover` di mana saja
code-rover scan

Roadmap

v0.1.0 (current)

  • [x] Basic JS/TS scanning
  • [x] Dependency detection (used / unused)
  • [x] Code smells
  • [x] Circular dependency detection
  • [x] Health score + recommendations
  • [x] JSON + watch mode

v0.2.0

  • [ ] Auto-fix suggestions
  • [ ] HTML report
  • [ ] Git-aware scan (hanya file yang berubah)
  • [ ] Custom rules

v0.3.0

  • [ ] VS Code extension
  • [ ] Support Python / Go / Rust
  • [ ] Official GitHub Action

License

MIT


🐾 Code-Rover — Menjelajah kode dengan gaya Land Rover.
"Conquer Any Codebase."