{"id":34176629,"url":"https://github.com/ludo-technologies/jscan","last_synced_at":"2026-02-18T19:08:37.061Z","repository":{"id":326318737,"uuid":"1074552269","full_name":"ludo-technologies/jscan","owner":"ludo-technologies","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-12T15:32:41.000Z","size":363,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-12T22:38:39.348Z","etag":null,"topics":["analyzer","code-quality","complexity","dead-code","javascript","linter","static-analysis","typescript"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ludo-technologies.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-12T02:35:06.000Z","updated_at":"2026-02-12T15:44:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ludo-technologies/jscan","commit_stats":null,"previous_names":["ludo-technologies/jscan"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ludo-technologies/jscan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ludo-technologies%2Fjscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ludo-technologies%2Fjscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ludo-technologies%2Fjscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ludo-technologies%2Fjscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ludo-technologies","download_url":"https://codeload.github.com/ludo-technologies/jscan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ludo-technologies%2Fjscan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29442041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analyzer","code-quality","complexity","dead-code","javascript","linter","static-analysis","typescript"],"created_at":"2025-12-15T12:44:21.644Z","updated_at":"2026-02-18T19:08:37.022Z","avatar_url":"https://github.com/ludo-technologies.png","language":"Go","readme":"# jscan - JavaScript/TypeScript Code Quality Analyzer\n\n[![CI](https://github.com/ludo-technologies/jscan/actions/workflows/ci.yml/badge.svg)](https://github.com/ludo-technologies/jscan/actions/workflows/ci.yml)\n[![Go](https://img.shields.io/badge/Go-1.24+-00ADD8?style=flat-square\u0026logo=go)](https://go.dev/)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![Status](https://img.shields.io/badge/Status-Active_Development-brightgreen.svg)](https://github.com/ludo-technologies/jscan)\n\n## jscan is a code quality analyzer for JavaScript/TypeScript vibe coders.\n\nBuilding with Cursor, Claude, or ChatGPT? jscan performs structural analysis to keep your codebase maintainable.\n\nSister project: [pyscn](https://github.com/ludo-technologies/pyscn) - Python Code Quality Analyzer\n\n## Features\n\n- **Complexity Analysis** - McCabe cyclomatic complexity with risk-level scoring\n- **Dead Code Detection** - Unreachable code, unused imports/exports, and orphan files\n- **Clone Detection** - Duplicate code identification using APTED tree edit distance + MinHash/LSH\n- **Dependency Analysis** - Module dependency graph with circular dependency detection\n- **CBO Metrics** - Coupling Between Objects measurement for module health\n- **Health Score** - Lighthouse-style overall project health scoring\n- **Multiple Output Formats** - HTML, JSON, CSV, and DOT (for graph visualization)\n- **`init` / `check` Commands** - Config scaffolding and CI/CD threshold enforcement\n- **Parallel Execution** - Concurrent file analysis for fast performance on large codebases\n- **Built with Go + tree-sitter** - Fast, error-tolerant parsing for ES6+ JavaScript and TypeScript\n\n## Installation\n\n### npm (recommended)\n\n```bash\n# Run without installing\nnpx jscan analyze src/\n\n# Install globally\nnpm install -g jscan\n```\n\n### From Source\n\n```bash\ngit clone https://github.com/ludo-technologies/jscan.git\ncd jscan\ngo build -o jscan ./cmd/jscan\n```\n\n### Go Install\n\n```bash\ngo install github.com/ludo-technologies/jscan/cmd/jscan@latest\n```\n\n## Usage\n\n### Analyze a file or directory\n\n```bash\n# Analyze a directory (default: HTML report)\njscan analyze src/\n\n# Analyze a single file\njscan analyze src/index.js\n\n# Run specific analyses\njscan analyze --select complexity src/\njscan analyze --select deadcode src/\njscan analyze --select complexity,deadcode,clones src/\n\n# Choose output format\njscan analyze --format json src/\njscan analyze --format csv src/\njscan analyze --format text src/\n```\n\n### Initialize configuration\n\n```bash\n# Generate a jscan.config.json with defaults\njscan init\n```\n\n### CI/CD health check\n\n```bash\n# Fail if health score drops below thresholds\njscan check src/\n```\n\n### Dependency visualization\n\n```bash\n# Output DOT graph for dependency analysis\njscan deps src/ --format dot | dot -Tsvg -o deps.svg\n```\n\n### Example Output\n\n```\nAnalyzing 3 files...\n\nsrc/index.js:\n  Complexity Analysis:\n    calculateTotal: complexity=5, risk=medium\n    processData: complexity=2, risk=low\n  Dead Code Analysis:\n    calculateTotal: 1 dead code blocks found\n      Line 42: Code after return statement is unreachable\n\nHealth Score: 72/100\n\nAnalysis complete!\nFiles analyzed: 3\n```\n\n## Configuration\n\njscan uses JSON-based configuration files. Run `jscan init` to generate one, or create a `jscan.config.json` / `.jscanrc.json` in your project root:\n\n```json\n{\n  \"complexity\": {\n    \"lowThreshold\": 10,\n    \"mediumThreshold\": 20,\n    \"enabled\": true\n  },\n  \"deadCode\": {\n    \"enabled\": true,\n    \"minSeverity\": \"warning\"\n  },\n  \"output\": {\n    \"format\": \"text\",\n    \"showDetails\": true\n  }\n}\n```\n\nSee `jscan.config.example.json` for all available options.\n\n## Architecture\n\njscan follows Clean Architecture principles with five distinct layers:\n\n```\nCLI (cmd/) -\u003e Application (app/) -\u003e Service (service/) -\u003e Internal (internal/) -\u003e Domain (domain/)\n```\n\nSee [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for the full design documentation.\n\n## Roadmap\n\n- TypeScript-specific analysis features (type-aware dead code, generic complexity)\n- Vue / JSX single-file component support\n- IDE / editor integrations\n- Watch mode for continuous analysis\n\n## Development\n\n```bash\n# Run unit tests\ngo test ./...\n\n# Lint\nmake lint\n\n# Build\nmake build\n\n# Test on sample files\n./jscan analyze testdata/javascript/simple/\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, coding conventions, and pull request guidelines.\n\n## License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n## Author\n\nCreated by [@daisukeyoda](https://github.com/daisukeyoda)\n\nSister project: [pyscn](https://github.com/ludo-technologies/pyscn) - Python Code Quality Analyzer\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fludo-technologies%2Fjscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fludo-technologies%2Fjscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fludo-technologies%2Fjscan/lists"}