@anirudw/repolens 0.1.3 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -33
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,42 +1,28 @@
1
- # repolens
1
+ # Repolens
2
2
 
3
- A CLI tool to visualize repository dependency graphs by parsing ASTs across multiple languages.
3
+ ![NPM Version](https://img.shields.io/npm/v/@anirudw/repolens?color=blue&style=for-the-badge)
4
+ ![NPM Downloads](https://img.shields.io/npm/dt/@anirudw/repolens?style=for-the-badge)
5
+ ![License](https://img.shields.io/npm/l/@anirudw/repolens?style=for-the-badge)
4
6
 
5
- ## Features
6
-
7
- - **Multi-language support**: JavaScript, TypeScript, Python, Java, and Markdown
8
- - **Smart scanning**: Respects `.gitignore` rules and common build directories
9
- - **Dependency analysis**: Builds a graph of imports and references
10
- - **Multiple outputs**: Terminal summaries, JSON export, and interactive HTML visualization
11
-
12
- ## Installation
13
-
14
- ```bash
15
- npm install
16
- npm run build
17
- ```
7
+ **A cross-platform, multi-lingual repository intelligence CLI.**
18
8
 
19
- ## Usage
9
+ Repolens analyzes your codebase using native C++ Abstract Syntax Trees (ASTs) to map out dependency networks, resolve local imports, and run PageRank algorithms to identify the architectural pillars of your project.
20
10
 
21
- ```bash
22
- # Scan current directory
23
- repolens
11
+ ## Features
24
12
 
25
- # Scan specific directory
26
- repolens ./path/to/repo
13
+ * **Multi-Lingual AST Parsing:** Uses `tree-sitter` to deeply understand JavaScript, TypeScript, Python, Java, and Markdown.
14
+ * **Intelligent Path Resolution:** Automatically resolves complex, extensionless local imports into absolute file paths.
15
+ * **PageRank Centrality:** Calculates inbound and outbound connection graphs to identify the most heavily relied-upon "Hub" files in your repository.
16
+ * **Entry-Point Detection:** Uses language-specific heuristics (e.g., `__name__ == "__main__"`, `public static void main`, React imports) to flag critical entry points.
17
+ * **JSON Export:** Dump your entire repository graph to disk for external visualization or CI/CD integrations.
18
+ * **Safe Scanning:** Automatically respects `.gitignore` and safely skips `node_modules` and `.git` directories.
27
19
 
28
- # With verbose output
29
- repolens --verbose
20
+ ---
30
21
 
31
- # Output formats
32
- repolens --format json --output graph.json
33
- repolens --format html --output graph.html
34
- ```
22
+ ## Installation
35
23
 
36
- ## Supported Languages
24
+ You can run Repolens on-demand using `npx`, or install it globally to use it as a daily driver.
37
25
 
38
- - JavaScript/JSX (.js, .jsx)
39
- - TypeScript/TSX (.ts, .tsx)
40
- - Python (.py)
41
- - Java (.java)
42
- - Markdown (.md)
26
+ **Global Installation (Recommended):**
27
+ ```bash
28
+ npm install -g @anirudw/repolens
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anirudw/repolens",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "A CLI tool to visualize repository dependency graphs",
5
5
  "type": "module",
6
6
  "bin": {