devcompass 2.6.0 โ†’ 2.7.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/README.md CHANGED
@@ -1,52 +1,73 @@
1
1
  # ๐Ÿงญ DevCompass
2
2
 
3
- **Dependency health checker with ecosystem intelligence and real-time GitHub issue tracking for 500+ popular npm packages. Features parallel processing for 80% faster analysis.**
3
+ **Dependency health checker with ecosystem intelligence, real-time GitHub issue tracking for 500+ popular npm packages, parallel processing, supply chain security analysis, and advanced license risk detection.**
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/devcompass.svg)](https://www.npmjs.com/package/devcompass)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/devcompass.svg)](https://www.npmjs.com/package/devcompass)
7
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
8
 
9
- Analyze your JavaScript projects to find unused dependencies, outdated packages, **detect security vulnerabilities**, **monitor GitHub issues in real-time for 500+ packages**, **check bundle sizes**, **verify licenses**, and **automatically fix issues** with a single command. Perfect for **CI/CD pipelines** with JSON output and exit codes.
9
+ Analyze your JavaScript projects to find unused dependencies, outdated packages, **detect security vulnerabilities**, **monitor GitHub issues in real-time for 500+ packages**, **check bundle sizes**, **verify licenses**, **detect supply chain attacks**, **analyze package quality**, and **automatically fix issues** with a single command. Perfect for **CI/CD pipelines** with JSON output and exit codes.
10
10
 
11
+ > **NEW in v2.7.0:** Advanced security features - Supply chain analysis, license risk detection, package quality metrics! ๐Ÿ”
11
12
  > **NEW in v2.6.0:** 80% faster with parallel processing! โšก
12
13
  > **NEW in v2.5.0:** Expanded to 502 packages across 33 categories! ๐ŸŽฏ
13
14
  > **NEW in v2.4.0:** Real-time GitHub issue tracking & predictive warnings! ๐Ÿ”ฎ
14
- > **NEW in v2.3.1:** Fixed all security vulnerabilities! Health score: 2.5/10 โ†’ 8/10 ๐Ÿ”’
15
- > **NEW in v2.3:** Security scanning, bundle analysis & license checker! ๐Ÿ”
15
+ > **NEW in v2.3.1:** Fixed all security vulnerabilities! Health score: 2.5/10 โ†’ 8/10 ๐Ÿ”’
16
16
 
17
- ## ๐ŸŽ‰ Latest Update: v2.6.0
17
+ ## ๐ŸŽ‰ Latest Update: v2.7.0
18
18
 
19
- **80% faster analysis with parallel processing!** DevCompass now checks multiple packages simultaneously:
19
+ **Comprehensive security analysis without external dependencies!** DevCompass now includes advanced security features:
20
20
 
21
- - โšก **Parallel GitHub API requests** - Check 5 packages at once (configurable)
22
- - ๐Ÿ“Š **Real-time progress tracking** - Live updates showing current package
23
- - ๐Ÿš€ **80% performance improvement** - 5 packages in ~1s instead of ~5s
24
- - ๐Ÿ“ˆ **Smart batching** - Respects GitHub rate limits automatically
25
- - โฑ๏ธ **Performance metrics** - Shows time saved after analysis
26
-
27
- **Performance Comparison:**
28
- ```
29
- v2.5.0 (Sequential): 5 packages ร— 1s = ~5 seconds
30
- v2.6.0 (Parallel): 5 packages รท 5 = ~1 second (80% faster!)
31
- ```
21
+ - ๐Ÿ›ก๏ธ **Supply Chain Security** - Detect malicious packages & typosquatting
22
+ - โš–๏ธ **License Risk Detection** - Enhanced license compliance checking
23
+ - ๐Ÿ“Š **Package Quality Metrics** - Health scores for all dependencies
24
+ - ๐Ÿ’ก **Security Recommendations** - Actionable, prioritized fix suggestions
25
+ - ๐Ÿ” **Install Script Analysis** - Detect suspicious postinstall hooks
26
+ - ๐Ÿ“ˆ **Maintainer Activity** - Track package maintenance status
32
27
 
33
28
  **Example output:**
34
29
  ```
35
- โ น Checking GitHub activity (3/5 packages) - express
36
- โ น Checking GitHub activity (4/5 packages) - webpack
37
- โ น Checking GitHub activity (5/5 packages) - react
38
- โœ” Scanned 5 dependencies in project
39
- โšก GitHub check completed in 1.23s (parallel processing)
40
- ```
30
+ ๐Ÿ›ก๏ธ SUPPLY CHAIN SECURITY (2 warnings)
31
+
32
+ ๐ŸŸ  TYPOSQUATTING RISK
33
+ expresss
34
+ Similar to: express (official package)
35
+ โ†’ Remove expresss and install express
36
+
37
+ โš–๏ธ LICENSE RISK ANALYSIS (1 warning)
38
+
39
+ ๐Ÿ”ด CRITICAL LICENSE RISKS
40
+ gpl-package@1.0.0
41
+ License: AGPL-3.0
42
+ Network copyleft - very restrictive
43
+ โ†’ Replace with permissive alternative immediately
44
+
45
+ ๐Ÿ“Š PACKAGE QUALITY METRICS (20 analyzed)
46
+
47
+ ๐Ÿ”ด ABANDONED PACKAGES (1)
48
+ old-lib@1.0.0
49
+ Health Score: 1.2/10
50
+ Last Update: 3 years ago
51
+ โ†’ Migrate to actively maintained alternative
52
+
53
+ ๐Ÿ’ก SECURITY RECOMMENDATIONS (Prioritized)
54
+
55
+ ๐Ÿ”ด CRITICAL (Fix Immediately)
56
+ 1. Remove typosquatting package
57
+ $ npm uninstall expresss && npm install express
41
58
 
42
- **What's tracked:**
43
- - ๐ŸŽฏ **502 tracked packages** organized into 33 categories
44
- - ๐ŸŒ **Full ecosystem coverage** - Frontend, backend, build tools, testing, databases
45
- - โšก **Zero performance impact** - Smart filtering + parallel processing
46
- - ๐Ÿ“Š **Comprehensive monitoring** - React, Vue, Angular, Next.js, Express, and 497+ more
59
+ ๐Ÿ“ˆ Expected Impact:
60
+ โœ“ Current Health Score: 4.2/10
61
+ โœ“ Expected Score: 8.7/10
62
+ โœ“ Improvement: +4.5 points (45% increase)
63
+ ```
47
64
 
48
65
  ## โœจ Features
49
66
 
67
+ - ๐Ÿ›ก๏ธ **Supply Chain Security** (v2.7) - Malicious package & typosquatting detection
68
+ - โš–๏ธ **License Risk Analysis** (v2.7) - Enhanced license compliance checking
69
+ - ๐Ÿ“Š **Package Quality Metrics** (v2.7) - Health scoring for dependencies
70
+ - ๐Ÿ’ก **Security Recommendations** (v2.7) - Prioritized, actionable fixes
50
71
  - โšก **Parallel Processing** (v2.6) - 80% faster GitHub issue tracking
51
72
  - ๐ŸŽฏ **500+ Package Coverage** (v2.5) - Comprehensive ecosystem monitoring
52
73
  - ๐Ÿ”ฎ **GitHub Issue Tracking** (v2.4) - Real-time monitoring of package health
@@ -101,9 +122,236 @@ devcompass analyze --ci
101
122
  devcompass analyze --silent
102
123
  ```
103
124
 
104
- ## ๐Ÿ”ฎ Predictive Warnings (v2.6.0)
125
+ ## ๐Ÿ›ก๏ธ Supply Chain Security (v2.7.0)
126
+
127
+ DevCompass now detects **supply chain attacks** including malicious packages, typosquatting, and suspicious install scripts!
128
+
129
+ ### What it detects:
130
+ - ๐Ÿ”ด **Malicious packages** - Known bad actors from curated database
131
+ - ๐ŸŽฏ **Typosquatting** - Packages with names similar to popular packages (e.g., "epress" vs "express")
132
+ - ๐Ÿ“ฆ **Install script warnings** - Suspicious postinstall/preinstall hooks
133
+ - ๐Ÿ”— **Dangerous patterns** - curl, wget, eval, exec in install scripts
134
+
135
+ ### Detection Methods:
136
+ - **Exact pattern matching** - Database of 15+ known malicious packages
137
+ - **Levenshtein distance** - Detects 1-2 character differences from popular packages
138
+ - **Pattern analysis** - Scans install scripts for suspicious commands
139
+
140
+ ### Example Output:
141
+ ```
142
+ ๐Ÿ›ก๏ธ SUPPLY CHAIN SECURITY (3 warnings)
143
+
144
+ ๐Ÿ”ด MALICIOUS PACKAGES DETECTED
145
+ epress
146
+ Known malicious package detected
147
+ โ†’ Remove immediately - this package is known to be malicious
148
+
149
+ ๐ŸŸ  TYPOSQUATTING RISK
150
+ expresss
151
+ Similar to: express (official package)
152
+ Risk: HIGH - Potential malicious package
153
+ โ†’ Remove expresss and install express
154
+
155
+ ๐ŸŸก INSTALL SCRIPT WARNING
156
+ suspicious-package@1.0.0
157
+ Script: postinstall
158
+ Patterns: curl, eval
159
+ Risk: MEDIUM - Review install script before use
160
+ โ†’ Review the install script before deployment
161
+ ```
162
+
163
+ ### Monitored Patterns:
164
+ **Popular packages protected (15+):**
165
+ - express, request, lodash, axios, webpack
166
+ - react, vue, angular, next, typescript
167
+ - eslint, prettier, jest, mocha, chai
168
+
169
+ **Suspicious install script patterns:**
170
+ - Network operations: curl, wget, http://, https://
171
+ - Code execution: eval, exec, child_process
172
+ - Shell access: /bin/sh, /bin/bash, powershell
173
+ - Dangerous keywords: bitcoin, mining, keylogger, backdoor
174
+
175
+ ## โš–๏ธ License Risk Analysis (v2.7.0)
176
+
177
+ Enhanced license compliance checking with **business risk scoring** and **compatibility analysis**!
178
+
179
+ ### License Risk Levels:
180
+
181
+ **CRITICAL RISK (Immediate action required):**
182
+ - AGPL-1.0, AGPL-3.0 (Network copyleft - very restrictive)
183
+ - UNLICENSED (No license - all rights reserved)
184
+
185
+ **HIGH RISK (Review with legal team):**
186
+ - GPL-1.0, GPL-2.0, GPL-3.0 (Copyleft - requires source disclosure)
187
+ - SEE LICENSE IN, CUSTOM (Custom licenses requiring review)
188
+
189
+ **MEDIUM RISK (Limited obligations):**
190
+ - LGPL-2.0, LGPL-2.1, LGPL-3.0 (Weak copyleft)
191
+ - MPL-1.0, MPL-2.0 (File-level copyleft)
192
+ - EPL-1.0, EPL-2.0 (Module-level copyleft)
193
+
194
+ **LOW RISK (Safe for commercial use):**
195
+ - MIT, Apache-2.0, BSD, ISC (Permissive)
196
+ - CC0-1.0, Unlicense (Public domain)
197
+
198
+ ### License Compatibility Checking:
199
+ Detects conflicts between your project license and dependency licenses!
200
+
201
+ **Example Output:**
202
+ ```
203
+ โš–๏ธ LICENSE RISK ANALYSIS (3 warnings)
204
+
205
+ Project License: MIT
206
+
207
+ ๐Ÿ”ด CRITICAL LICENSE RISKS
208
+ gpl-library@1.0.0
209
+ License: AGPL-3.0
210
+ Network copyleft - very restrictive
211
+ โ†’ Replace with permissive alternative immediately
212
+
213
+ ๐ŸŸ  HIGH RISK LICENSES
214
+ old-package@2.0.0
215
+ License: GPL-2.0
216
+ Requires source code disclosure
217
+ โ†’ Consider replacing with MIT/Apache alternative
218
+
219
+ ๐ŸŸก LICENSE CONFLICT DETECTED
220
+ Your project: MIT
221
+ Dependencies with GPL: 2 packages
222
+ Risk: License compatibility issue
223
+ โ†’ Review legal compliance
224
+ ```
225
+
226
+ ## ๐Ÿ“Š Package Quality Metrics (v2.7.0)
227
+
228
+ Comprehensive **health scoring** for all your dependencies based on maintenance, activity, and community engagement!
229
+
230
+ ### Health Score Factors (0-10 scale):
231
+ - **Age** - Newer packages score higher (max -2 points for 3+ years)
232
+ - **Maintenance frequency** - Recent updates score higher (max -2 points)
233
+ - **GitHub activity** - Issue resolution tracked (max -2 points)
234
+ - **Dependencies** - Fewer dependencies score higher (max -1 point)
235
+ - **Documentation** - Description and repository presence (max -1 point)
236
+ - **Deprecation** - Deprecated packages get automatic 0
237
+
238
+ ### Package Status Categories:
239
+ - **HEALTHY (7-10):** Well-maintained, recent updates
240
+ - **NEEDS ATTENTION (5-7):** Some concerns, monitor closely
241
+ - **STALE (3-5):** Not updated in 1-2 years
242
+ - **ABANDONED (0-3):** 2+ years without updates, inactive maintainers
243
+ - **DEPRECATED (0):** Officially marked as deprecated
244
+
245
+ ### Example Output:
246
+ ```
247
+ ๐Ÿ“Š PACKAGE QUALITY METRICS (20 analyzed)
248
+
249
+ โœ… HEALTHY PACKAGES (15)
250
+ react, axios, lodash, express, webpack...
251
+
252
+ ๐ŸŸก NEEDS ATTENTION (3)
253
+ old-package@1.0.0
254
+ Health Score: 6.5/10
255
+ Last Update: 8 months ago
256
+ Open Issues: 45 (12% resolved)
257
+ โ†’ Monitor for updates
258
+
259
+ ๐ŸŸ  STALE PACKAGES (1)
260
+ aging-lib@2.0.0
261
+ Health Score: 4.2/10
262
+ Last Update: 18 months ago
263
+ โ†’ Consider finding actively maintained alternative
264
+
265
+ ๐Ÿ”ด ABANDONED PACKAGES (1)
266
+ deprecated-lib@0.5.0
267
+ Health Score: 1.2/10
268
+ Last Update: 3 years ago
269
+ Maintainer: Inactive
270
+ โ†’ Migrate to actively maintained alternative
271
+
272
+ ๐Ÿ”ด DEPRECATED PACKAGES (1)
273
+ old-framework@2.0.0
274
+ Package is officially deprecated
275
+ โ†’ Find alternative immediately
276
+ ```
277
+
278
+ ### Performance:
279
+ - Analyzes up to 20 packages per run (prevents rate limiting)
280
+ - ~100ms per package (npm registry API)
281
+ - 1-hour cache duration
282
+ - GitHub data integration for enhanced metrics
283
+
284
+ ## ๐Ÿ’ก Security Recommendations (v2.7.0)
285
+
286
+ Intelligent, **prioritized recommendations** with actionable commands and impact analysis!
287
+
288
+ ### Priority Levels:
289
+ 1. **CRITICAL** - Immediate security risks (malicious packages, critical vulnerabilities)
290
+ 2. **HIGH** - Production stability issues (typosquatting, GPL conflicts, abandoned packages)
291
+ 3. **MEDIUM** - Maintenance concerns (stale packages, install scripts, unused deps)
292
+ 4. **LOW** - Minor improvements (outdated packages, documentation)
293
+
294
+ ### What You Get:
295
+ - โœ… **Priority-based ordering** - Fix critical issues first
296
+ - โœ… **Copy-paste commands** - Ready-to-run npm commands
297
+ - โœ… **Impact analysis** - See expected health score improvement
298
+ - โœ… **Category grouping** - Supply chain, license, security, quality
299
+ - โœ… **Alternative suggestions** - Recommended replacements
300
+
301
+ ### Example Output:
302
+ ```
303
+ ๐Ÿ’ก SECURITY RECOMMENDATIONS (Prioritized)
304
+
305
+ ๐Ÿ”ด CRITICAL (Fix Immediately)
306
+
307
+ 1. Remove typosquatting package
308
+ Package: expresss
309
+ Action: Remove expresss and install express
310
+ $ npm uninstall expresss && npm install express
311
+ Impact: Prevents potential supply chain attack
312
+
313
+ 2. High-risk license detected
314
+ Package: gpl-package@1.0.0
315
+ Action: Replace with permissive alternative
316
+ $ npm uninstall gpl-package
317
+ Impact: Ensures license compliance
318
+
319
+ ๐ŸŸ  HIGH (Fix Soon)
320
+
321
+ 3. Abandoned package detected
322
+ Package: old-lib@1.0.0
323
+ Action: Migrate to actively maintained alternative
324
+ $ npm uninstall old-lib
325
+ Impact: Improves long-term stability
326
+ Health Score: 1.2/10
327
+
328
+ 4. Security vulnerabilities detected
329
+ Action: Run npm audit fix to resolve vulnerabilities
330
+ $ npm audit fix
331
+ Impact: Resolves 12 known vulnerabilities
332
+
333
+ ๐ŸŸก MEDIUM (Plan to Fix)
334
+
335
+ 5. Clean up unused dependencies
336
+ Action: Remove unused packages
337
+ $ npm uninstall axios express lodash
338
+ Impact: Reduces node_modules size, improves security surface
339
+
340
+ ๐Ÿ“ˆ Expected Impact:
341
+
342
+ โœ“ Current Health Score: 4.2/10
343
+ โœ“ Expected Score: 8.7/10
344
+ โœ“ Improvement: +4.5 points (45% increase)
345
+ โœ“ Issues Resolved: 5 critical/high/medium
346
+ โœ“ Eliminate 2 critical security risks
347
+ โœ“ Resolve 3 high-priority issues
348
+
349
+ ๐Ÿ’ก TIP: Run devcompass fix to apply automated fixes!
350
+ ```
351
+
352
+ ## ๐Ÿ”ฎ Predictive Warnings (v2.7.0)
105
353
 
106
- DevCompass now monitors **real-time GitHub activity for 500+ packages** to detect potential issues before they're officially reported!
354
+ DevCompass monitors **real-time GitHub activity for 500+ packages** to detect potential issues before they're officially reported!
107
355
 
108
356
  ### What it tracks:
109
357
  - ๐Ÿ› **Open bug reports** in the last 7/30 days
@@ -168,7 +416,7 @@ Organized into 33 categories covering the entire JavaScript ecosystem:
168
416
  6. **Smart filtering:** Only checks packages you've actually installed
169
417
  7. **Parallel processing:** Checks multiple packages simultaneously (v2.6.0)
170
418
 
171
- ### Performance (NEW in v2.6.0):
419
+ ### Performance (v2.6.0+):
172
420
  - **Parallel processing:** Checks 5 packages simultaneously (80% faster!)
173
421
  - **Smart filtering:** Only checks installed packages from your project
174
422
  - **First run:** ~1 second for 5 packages (was ~5s in v2.5.0)
@@ -177,12 +425,12 @@ Organized into 33 categories covering the entire JavaScript ecosystem:
177
425
  - **Zero overhead:** Uninstalled packages aren't checked
178
426
 
179
427
  **Performance Benchmarks:**
180
- | Packages | v2.5.0 | v2.6.0 | Improvement |
181
- |----------|--------|--------|-------------|
182
- | 5 | ~5s | ~1s | 80% faster |
183
- | 10 | ~10s | ~2s | 80% faster |
184
- | 20 | ~20s | ~4s | 80% faster |
185
- | 50 | ~50s | ~10s | 80% faster |
428
+ | Packages | v2.5.0 | v2.6.0+ | Improvement |
429
+ |----------|--------|---------|-------------|
430
+ | 5 | ~5s | ~1s | 80% faster |
431
+ | 10 | ~10s | ~2s | 80% faster |
432
+ | 20 | ~20s | ~4s | 80% faster |
433
+ | 50 | ~50s | ~10s | 80% faster |
186
434
 
187
435
  > **Performance Example:** If you have 5 tracked packages installed (e.g., react, axios, lodash, express, webpack), DevCompass checks all 5 in parallel, completing in ~1 second instead of ~5 seconds!
188
436
 
@@ -264,9 +512,9 @@ Detect restrictive licenses that may require legal review!
264
512
 
265
513
  ### Combined Analysis Example
266
514
 
267
- **Full Output:**
515
+ **Full Output (v2.7.0):**
268
516
  ```
269
- ๐Ÿ” DevCompass v2.6.0 - Analyzing your project...
517
+ ๐Ÿ” DevCompass v2.7.0 - Analyzing your project...
270
518
  โœ” Scanned 25 dependencies in project
271
519
  โšก GitHub check completed in 1.23s (parallel processing)
272
520
 
@@ -278,6 +526,15 @@ Detect restrictive licenses that may require legal review!
278
526
 
279
527
  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
280
528
 
529
+ ๐Ÿ›ก๏ธ SUPPLY CHAIN SECURITY (1 warning)
530
+
531
+ ๐ŸŸ  TYPOSQUATTING RISK
532
+ expresss
533
+ Similar to: express (official package)
534
+ โ†’ Remove expresss and install express
535
+
536
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
537
+
281
538
  ๐Ÿšจ ECOSYSTEM ALERTS (1)
282
539
 
283
540
  ๐ŸŸ  HIGH
@@ -299,18 +556,32 @@ Detect restrictive licenses that may require legal review!
299
556
 
300
557
  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
301
558
 
302
- ๐Ÿ“ฆ HEAVY PACKAGES (2)
559
+ โš–๏ธ LICENSE RISK ANALYSIS
303
560
 
304
- Packages larger than 1MB:
561
+ Project License: MIT
305
562
 
306
- typescript 8.1 MB
307
- webpack 2.3 MB
563
+ โœ… All licenses are compliant!
308
564
 
309
565
  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
310
566
 
311
- โœ… LICENSE COMPLIANCE
567
+ ๐Ÿ“Š PACKAGE QUALITY METRICS (20 analyzed)
312
568
 
313
- All licenses are permissive!
569
+ โœ… HEALTHY PACKAGES (18)
570
+ react, axios, lodash, express, webpack...
571
+
572
+ ๐ŸŸก NEEDS ATTENTION (2)
573
+ old-package@1.0.0
574
+ Health Score: 6.5/10
575
+ Last Update: 8 months ago
576
+
577
+ โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
578
+
579
+ ๐Ÿ“ฆ HEAVY PACKAGES (2)
580
+
581
+ Packages larger than 1MB:
582
+
583
+ typescript 8.1 MB
584
+ webpack 2.3 MB
314
585
 
315
586
  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
316
587
 
@@ -318,22 +589,35 @@ Detect restrictive licenses that may require legal review!
318
589
 
319
590
  Overall Score: 8.5/10
320
591
  Total Dependencies: 25
592
+ Supply Chain Warnings: 1
321
593
  Ecosystem Alerts: 1
322
594
  Predictive Warnings: 1
595
+ License Risks: 0
596
+ Quality Issues: 0
323
597
  Unused: 0
324
598
  Outdated: 2
325
599
 
326
600
  โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
327
601
 
328
- ๐Ÿ’ก QUICK WINS
602
+ ๐Ÿ’ก SECURITY RECOMMENDATIONS (Prioritized)
603
+
604
+ ๐ŸŸ  HIGH (Fix Soon)
605
+
606
+ 1. Typosquatting attempt detected
607
+ Package: expresss
608
+ $ npm uninstall expresss && npm install express
329
609
 
330
- ๐Ÿ”ด Fix critical issues:
610
+ 2. Upgrade vulnerable package
611
+ Package: axios@1.6.0
612
+ $ npm install axios@1.6.2
331
613
 
332
- npm install axios@1.6.2
614
+ ๐Ÿ“ˆ Expected Impact:
333
615
 
334
- Expected impact:
335
- โœ“ Resolve critical stability issues
336
- โœ“ Improve health score โ†’ 10/10
616
+ โœ“ Current Health Score: 8.5/10
617
+ โœ“ Expected Score: 9.8/10
618
+ โœ“ Improvement: +1.3 points (13% increase)
619
+ โœ“ Eliminate 1 supply chain risk
620
+ โœ“ Resolve 1 high-priority issue
337
621
 
338
622
  ๐Ÿ’ก TIP: Run 'devcompass fix' to apply these fixes automatically!
339
623
  ```
@@ -346,57 +630,44 @@ Perfect for parsing in CI/CD pipelines:
346
630
  devcompass analyze --json
347
631
  ```
348
632
 
349
- **Output:**
633
+ **Output (v2.7.0):**
350
634
  ```json
351
635
  {
352
- "version": "2.6.0",
636
+ "version": "2.7.0",
353
637
  "timestamp": "2026-04-04T10:30:00.000Z",
354
638
  "summary": {
355
639
  "healthScore": 8.5,
356
640
  "totalDependencies": 25,
357
641
  "securityVulnerabilities": 0,
642
+ "supplyChainWarnings": 1,
358
643
  "ecosystemAlerts": 1,
359
644
  "predictiveWarnings": 1,
645
+ "licenseRisks": 0,
646
+ "qualityIssues": 0,
360
647
  "unusedDependencies": 0,
361
- "outdatedPackages": 2,
362
- "heavyPackages": 2,
363
- "licenseWarnings": 0
648
+ "outdatedPackages": 2
364
649
  },
365
- "security": {
366
- "total": 0,
367
- "critical": 0,
368
- "high": 0,
369
- "moderate": 0,
370
- "low": 0,
371
- "vulnerabilities": []
372
- },
373
- "predictiveWarnings": [
374
- {
375
- "package": "express",
376
- "severity": "medium",
377
- "title": "Increased issue activity",
378
- "description": "8 issues opened recently",
379
- "recommendation": "Monitor for stability",
380
- "githubData": {
381
- "totalIssues": 234,
382
- "recentIssues": 8,
383
- "trend": "increasing",
384
- "repoUrl": "https://github.com/expressjs/express"
385
- }
386
- }
387
- ],
388
- "bundleAnalysis": {
389
- "heavyPackages": [
390
- { "name": "typescript", "size": "8.1 MB" },
391
- { "name": "webpack", "size": "2.3 MB" }
392
- ]
650
+ "supplyChain": {
651
+ "total": 1,
652
+ "warnings": [...]
393
653
  },
394
- "licenses": {
654
+ "licenseRisk": {
655
+ "total": 0,
656
+ "projectLicense": "MIT",
395
657
  "warnings": []
396
658
  },
397
- "ecosystemAlerts": [...],
398
- "unusedDependencies": [],
399
- "outdatedPackages": [...]
659
+ "packageQuality": {
660
+ "total": 20,
661
+ "healthy": 18,
662
+ "needsAttention": 2,
663
+ "packages": [...]
664
+ },
665
+ "recommendations": {
666
+ "total": 2,
667
+ "critical": 0,
668
+ "high": 2,
669
+ "items": [...]
670
+ }
400
671
  }
401
672
  ```
402
673
 
@@ -441,9 +712,13 @@ DevCompass caches results to improve performance:
441
712
  - **Cache duration:** 1 hour
442
713
  - **Cache file:** `.devcompass-cache.json` (auto-gitignored)
443
714
 
444
- **What gets cached:**
445
- - GitHub issue data (v2.4+)
446
- - Predictive warnings (v2.4+)
715
+ **What gets cached (v2.7.0):**
716
+ - Supply chain analysis
717
+ - License risk data
718
+ - Package quality metrics
719
+ - Security recommendations
720
+ - GitHub issue data
721
+ - Predictive warnings
447
722
  - Security vulnerabilities
448
723
  - Ecosystem alerts
449
724
  - Unused dependencies
@@ -580,7 +855,8 @@ DevCompass tracks **real-world issues** in 500+ popular packages and warns you b
580
855
  3. Uses semantic versioning for precise detection
581
856
  4. Checks live GitHub activity for 502+ packages
582
857
  5. Uses parallel processing for 80% faster checks (v2.6.0)
583
- 6. Shows actionable fix commands
858
+ 6. Analyzes supply chain security (v2.7.0)
859
+ 7. Shows actionable fix commands
584
860
 
585
861
  ## ๐ŸŽฏ What It Detects
586
862
 
@@ -698,16 +974,19 @@ fi
698
974
 
699
975
  ### Security-Focused Workflow
700
976
  ```bash
701
- # 1. Run security scan
977
+ # 1. Run comprehensive security scan
702
978
  devcompass analyze
703
979
 
704
980
  # 2. Check for critical vulnerabilities
705
981
  devcompass analyze --json | jq '.security.critical'
706
982
 
707
- # 3. Auto-fix if possible
983
+ # 3. Check supply chain risks
984
+ devcompass analyze --json | jq '.supplyChain.warnings'
985
+
986
+ # 4. Auto-fix if possible
708
987
  npm audit fix
709
988
 
710
- # 4. Verify fixes
989
+ # 5. Verify fixes
711
990
  devcompass analyze
712
991
  ```
713
992
 
@@ -753,6 +1032,9 @@ If you encounter a false positive, please [report it](https://github.com/AjayBTh
753
1032
  10. **Verify before uninstalling** - DevCompass helps identify candidates, but always verify
754
1033
  11. **Watch predictive warnings** - Monitor packages with increasing issue activity
755
1034
  12. **Leverage parallel processing** - First run takes ~2s with v2.6.0 (was ~8s)
1035
+ 13. **Monitor supply chain** - Check for typosquatting regularly (v2.7.0)
1036
+ 14. **Review license risks** - Ensure GPL/AGPL compliance (v2.7.0)
1037
+ 15. **Track package quality** - Replace abandoned packages proactively (v2.7.0)
756
1038
 
757
1039
  ## ๐Ÿค Contributing
758
1040
 
@@ -785,6 +1067,13 @@ Want to add known issues for a package?
785
1067
  ```
786
1068
  3. Submit a PR with your additions!
787
1069
 
1070
+ ### Adding Malicious Packages
1071
+ Help protect the community! Add known malicious packages:
1072
+
1073
+ 1. Edit `data/known-malicious.json`
1074
+ 2. Add to `malicious_packages` array or `typosquat_patterns`
1075
+ 3. Submit a PR with evidence/source
1076
+
788
1077
  ### Development
789
1078
  ```bash
790
1079
  # Clone the repo
@@ -849,7 +1138,11 @@ Check out DevCompass stats:
849
1138
  - [x] ~~Predictive warnings based on bug activity~~ โœ… **Added in v2.4.0!**
850
1139
  - [x] ~~Expand to top 500 npm packages~~ โœ… **Added in v2.5.0!**
851
1140
  - [x] ~~Performance optimizations with parallel processing~~ โœ… **Added in v2.6.0!**
852
- - [ ] Advanced security features with Snyk integration (v2.7.0)
1141
+ - [x] ~~Advanced security features~~ โœ… **Added in v2.7.0!**
1142
+ - [x] Supply chain security analysis
1143
+ - [x] Enhanced license risk detection
1144
+ - [x] Package quality metrics
1145
+ - [x] Security recommendations engine
853
1146
  - [ ] Enhanced fix command improvements (v2.8.0)
854
1147
  - [ ] Dependency graph visualization (v3.0.0)
855
1148
  - [ ] Web dashboard for team health monitoring (v3.0.0)