@anirudw/repolens 0.2.0 → 0.2.2

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 +5 -54
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Repolens
2
2
 
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)
6
+
3
7
  **A cross-platform, multi-lingual repository intelligence CLI.**
4
8
 
5
9
  Repolens analyzes your codebase using tree-sitter ASTs to map dependency networks, identify architectural pillars, and calculate coupling metrics.
@@ -10,57 +14,4 @@ Repolens analyzes your codebase using tree-sitter ASTs to map dependency network
10
14
  ## Install
11
15
 
12
16
  ```bash
13
- npm install -g @anirudw/repolens
14
- ```
15
-
16
- ## Quick Start
17
-
18
- ```bash
19
- # Analyze a repository
20
- repolens ./my-project
21
-
22
- # Export dependency graph
23
- repolens ./my-project --format json --output graph.json
24
-
25
- # Find implementations of an interface
26
- repolens ./my-project --implements ILogger
27
-
28
- # View architectural health metrics
29
- repolens ./my-project --health
30
- ```
31
-
32
- ## Options
33
-
34
- | Flag | Description |
35
- |------|-------------|
36
- | `-v, --verbose` | Enable verbose output |
37
- | `-f, --format` | Output format: `text` (default) or `json` |
38
- | `-o, --output <file>` | Output file path |
39
- | `-i, --implements <name>` | Find files implementing an interface |
40
- | `--health` | Display architectural health metrics |
41
-
42
- ## Features
43
-
44
- - **Multi-lingual AST parsing** — JavaScript, TypeScript, Python, Java, Markdown
45
- - **Path resolution** — Automatically resolves local imports
46
- - **PageRank centrality** — Identifies the most relied-upon files
47
- - **Entry-point detection** — Flags critical entry points
48
- - **Interface registry** — Track class/interface relationships
49
- - **Health metrics** — Coupling (Ca, Ce) and instability (I)
50
-
51
- ## Health Metrics
52
-
53
- The `--health` flag calculates coupling metrics:
54
-
55
- - **Ca (Afferent Coupling)** — Files that depend on this file
56
- - **Ce (Efferent Coupling)** — Files this file depends on
57
- - **Instability** — `I = Ce / (Ca + Ce)`
58
-
59
- | Value | Meaning |
60
- |-------|---------|
61
- | ~0 | Stable core dependency |
62
- | ~1 | Highly unstable (fragile) |
63
-
64
- ## License
65
-
66
- MIT
17
+ npm install -g @anirudw/repolens
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anirudw/repolens",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "A CLI tool to visualize repository dependency graphs",
5
5
  "type": "module",
6
6
  "bin": {