reposentry 1.0.0
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.
- package/LICENSE +21 -0
- package/README.md +148 -0
- package/dist/chunk-I2CN2HU4.js +2276 -0
- package/dist/chunk-I2CN2HU4.js.map +1 -0
- package/dist/chunk-JZB6VB4T.js +83 -0
- package/dist/chunk-JZB6VB4T.js.map +1 -0
- package/dist/chunk-NYYK2IZI.js +396 -0
- package/dist/chunk-NYYK2IZI.js.map +1 -0
- package/dist/chunk-RNKCNCJW.js +72 -0
- package/dist/chunk-RNKCNCJW.js.map +1 -0
- package/dist/chunk-ZW3DYU5Y.js +322 -0
- package/dist/chunk-ZW3DYU5Y.js.map +1 -0
- package/dist/cli-XGJDBLQ5.js +12 -0
- package/dist/cli-XGJDBLQ5.js.map +1 -0
- package/dist/copilot-OO6B2LU3.js +20 -0
- package/dist/copilot-OO6B2LU3.js.map +1 -0
- package/dist/fix-engine-W5U2J3IJ.js +260 -0
- package/dist/fix-engine-W5U2J3IJ.js.map +1 -0
- package/dist/fs-GEDK6OCC.js +26 -0
- package/dist/fs-GEDK6OCC.js.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/progress-EQXHBUOU.js +10 -0
- package/dist/progress-EQXHBUOU.js.map +1 -0
- package/dist/server-UJNM6VUZ.js +2088 -0
- package/dist/server-UJNM6VUZ.js.map +1 -0
- package/package.json +64 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mahesh Doiphode
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# ๐ก๏ธ RepoSentry
|
|
4
|
+
|
|
5
|
+
**AI-Powered Codebase Intelligence Platform**
|
|
6
|
+
|
|
7
|
+
Analyze any project. Generate docs, security audits, CI/CD pipelines, architecture diagrams, and more โ powered by GitHub Copilot.
|
|
8
|
+
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
[](https://nodejs.org)
|
|
11
|
+
[](https://www.typescriptlang.org)
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## What It Does
|
|
18
|
+
|
|
19
|
+
Point RepoSentry at any codebase and it generates a full intelligence report:
|
|
20
|
+
|
|
21
|
+
| Engine | What you get |
|
|
22
|
+
|--------|-------------|
|
|
23
|
+
| ๐ **Documentation** | README, API docs, Setup guide, Contributing guide, Changelog, FAQ |
|
|
24
|
+
| ๐๏ธ **Architecture** | Mermaid diagrams, dependency graphs, component maps |
|
|
25
|
+
| ๐ **Security** | Vulnerability scan, threat model, CVSS severity |
|
|
26
|
+
| ๐ **CI/CD** | Pipeline config (GitHub Actions, GitLab, CircleCI, Jenkins, Travis, Azure) |
|
|
27
|
+
| ๐งช **Testing** | API test collection, HTTP templates, Postman export |
|
|
28
|
+
| โก **Performance** | Anti-pattern detection, bottleneck analysis |
|
|
29
|
+
| ๐ค **Collaboration** | PR templates, issue templates, CODEOWNERS, onboarding *(git repos only)* |
|
|
30
|
+
| โค๏ธ **Health Report** | Weighted score, letter grade, trend tracking |
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Quick Start
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Install from source
|
|
38
|
+
git clone https://github.com/MaheshDoiphode/reposentry.git
|
|
39
|
+
cd reposentry
|
|
40
|
+
npm install && npm run build && npm link
|
|
41
|
+
|
|
42
|
+
# Navigate to any project and run
|
|
43
|
+
cd your-project
|
|
44
|
+
reposentry analyze
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
> **Requires:** Node.js โฅ 18 โข [GitHub Copilot CLI](https://docs.github.com/en/copilot) (recommended)
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Commands
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
reposentry # Interactive mode โ pick what to do
|
|
55
|
+
reposentry analyze # Full analysis โ .reposentry/
|
|
56
|
+
reposentry fix # Auto-fix detected issues (missing LICENSE, CI, etc.)
|
|
57
|
+
reposentry compare # Compare scores across analysis runs
|
|
58
|
+
reposentry serve # Preview reports at localhost:3000
|
|
59
|
+
reposentry badge # Generate shields.io health badge
|
|
60
|
+
reposentry init # Interactive setup wizard
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Key Flags
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
reposentry analyze --docs --security # Run specific engines only
|
|
67
|
+
reposentry analyze --all # Override config, run everything
|
|
68
|
+
reposentry analyze --depth deep # Thorough analysis
|
|
69
|
+
reposentry analyze --format json # Machine-readable output
|
|
70
|
+
reposentry analyze --model <model> # Pick Copilot model
|
|
71
|
+
reposentry analyze --force # Overwrite existing output
|
|
72
|
+
reposentry analyze --ignore "dist/**" # Skip patterns
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## In Action
|
|
78
|
+
|
|
79
|
+
### Full Analysis
|
|
80
|
+
|
|
81
|
+
Run all engines โ docs, architecture, security, CI/CD, testing, performance, collaboration, and health scoring:
|
|
82
|
+
|
|
83
|
+
> ๐ก Check out [`.reposentry/`](.reposentry/) in this repo โ we ran RepoSentry on itself so you can see real output.
|
|
84
|
+
|
|
85
|
+
<div align="center">
|
|
86
|
+
<img src="public/full-analysis.png" alt="RepoSentry full analysis" width="700">
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
### Auto-Fix Issues
|
|
90
|
+
|
|
91
|
+
Scan for missing files and let Copilot fix them:
|
|
92
|
+
|
|
93
|
+
<div align="center">
|
|
94
|
+
<img src="public/fix-issue-automatically.png" alt="RepoSentry fix โ issue detection" width="700">
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div align="center">
|
|
98
|
+
<img src="public/fix-issue-automatically-2.png" alt="RepoSentry fix โ Copilot creating files" width="700">
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Configuration
|
|
104
|
+
|
|
105
|
+
Optional โ works out of the box. Create `reposentry.config.js` or add to `package.json`:
|
|
106
|
+
|
|
107
|
+
```js
|
|
108
|
+
// reposentry.config.js
|
|
109
|
+
export default {
|
|
110
|
+
output: '.reposentry',
|
|
111
|
+
depth: 'standard',
|
|
112
|
+
engines: { docs: true, security: true, ci: true },
|
|
113
|
+
ignore: ['node_modules', 'dist'],
|
|
114
|
+
};
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## Score History & Comparison
|
|
120
|
+
|
|
121
|
+
Every `reposentry analyze` saves scores to a persistent history. Run `reposentry compare` to see how your project has improved over time โ per-category breakdown with trend arrows.
|
|
122
|
+
|
|
123
|
+
Preview reports in the browser with `reposentry serve`, including an interactive score comparison view.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Requirements
|
|
128
|
+
|
|
129
|
+
- **Node.js** โฅ 18
|
|
130
|
+
- **GitHub Copilot CLI** โ recommended for AI-powered analysis ([install guide](https://docs.github.com/en/copilot))
|
|
131
|
+
- Works on **git repos** and **non-git projects** (collaboration analysis requires git)
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Development
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
npm install # Install dependencies
|
|
139
|
+
npm run build # Build
|
|
140
|
+
npm run dev # Watch mode
|
|
141
|
+
npm test # Run tests (vitest)
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## License
|
|
147
|
+
|
|
148
|
+
MIT ยฉ RepoSentry Contributors
|