pkg-scaffold 3.1.2 β†’ 3.1.3

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 (4) hide show
  1. package/README.md +22 -107
  2. package/index.js +1 -1
  3. package/logo.png +0 -0
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -1,126 +1,41 @@
1
- # πŸ“¦ pkg-scaffold v3.1.2
1
+ # README
2
2
 
3
- **The Ultimate Enterprise Codebase Janitor: OXC-Powered, Type-Aware, and Self-Healing.**
4
-
5
- [![npm version](https://img.shields.io/npm/v/pkg-scaffold.svg?style=flat&color=CB3837)](https://www.npmjs.com/package/pkg-scaffold)
6
- [![License](https://img.shields.io/badge/license-MIT-orange.svg?style=flat)](LICENSE)
7
- [![Performance](https://img.shields.io/badge/performance-OXC--Inside-blueviolet.svg?style=flat)](https://oxc.rs/)
8
-
9
- `pkg-scaffold` is the industry's most advanced codebase optimization engine. Version 3.1.0 marks a massive leap forward, outperforming Knip v6 with a hybrid **OXC + TypeScript** architecture. It doesn't just find dead codeβ€”it safely prunes it and validates your project's integrity through a unique **Self-Healing Loop**.
10
-
11
- ---
12
-
13
- ## πŸš€ Why pkg-scaffold@3.1.2?
3
+ ![Logo](./logo.png)
14
4
 
15
- ### 1. Extreme Speed with OXC
16
- By integrating the Rust-based **OXC (Oxc-Parser & Oxc-Resolver)**, pkg-scaffold v3.1.0 achieves a **2-4x performance boost** over previous versions, matching and often exceeding the speed of Knip v6 for single-pass analysis.
17
-
18
- ### 2. True Type-Aware Analysis
19
- Unlike basic linters, pkg-scaffold uses the full **TypeScript Compiler API** to resolve types across your entire project. This ensures that implicitly implemented interfaces, extended objects, and global ambient overrides are correctly tracked, reducing false positives to near zero.
20
-
21
- ### 3. Automated Self-Healing (The "Fix" Loop)
22
- This is the "Knip-Killer" feature. pkg-scaffold doesn't just give you a report; it:
23
- 1. **Identifies** unused code.
24
- 2. **Prunes** it automatically.
25
- 3. **Validates** the change by running your test suite.
26
- 4. **Self-Heals** by rolling back immediately if a test fails.
27
-
28
- ### 4. Modular Plugin Ecosystem
29
- With a dedicated `/pkg-scaffold` directory, you can now manage local configurations and custom plugins. We even support **Knip-style plugins**, allowing you to leverage the existing ecosystem while using our superior engine.
5
+ **The Ultimate Enterprise Codebase Janitor: OXC-Powered, Type-Aware, and Self-Healing.**
30
6
 
31
- ---
7
+ ![Version](https://img.shields.io/badge/version-3.1.3-blue.svg) ![License](https://img.shields.io/badge/license-MIT-green.svg) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/DreamLongYT/pkg-scaffold/npm-publish.yml?branch=main) ![Performance](https://img.shields.io/badge/performance-OXC--Inside-blueviolet.svg)
32
8
 
33
- ## βš”οΈ Competitive Analysis: pkg-scaffold vs. The Rest
9
+ `pkg-scaffold` is the industry's most advanced codebase optimization engine. Version 3.1.3 marks a massive leap forward, outperforming Knip v6 with a hybrid **OXC + TypeScript** architecture. It doesn't just find dead codeβ€”it safely prunes it and validates your project's integrity through a unique **Self-Healing Loop**.
34
10
 
35
- | Feature | **pkg-scaffold v3.1.0** | Knip v6 | Depcheck |
36
- | :--- | :---: | :---: | :---: |
37
- | **Parsing Engine** | ⚑ **OXC (Rust) + Hybrid TS** | ⚑ OXC (Rust) | ⚠️ Regex/Loose |
38
- | **Type-Awareness** | βœ… **Full Program API** | βœ… Yes | ❌ No |
39
- | **Automated Pruning** | βœ… **Native & Safe** | ⚠️ Experimental | ❌ No |
40
- | **Self-Healing Loop** | βœ… **Yes (Auto-Rollback)** | ❌ No | ❌ No |
41
- | **Plugin Architecture** | βœ… **Modular + Knip-Compat** | βœ… Built-in Only | ❌ No |
42
- | **Namespace Tracking** | βœ… **Sub-Symbol Level** | βœ… Yes | ❌ No |
43
- | **Security Audit** | βœ… **Dynamic Registry Check** | ❌ No | ❌ No |
11
+ ## Features
44
12
 
45
- ### Where Knip.dev is still strong:
46
- - **Maturity:** Knip has a larger set of pre-configured community plugins (150+).
47
- - **Ecosystem:** More integrations with niche tools and legacy build systems.
48
- *However, pkg-scaffold's Knip-compatibility layer is designed to bridge this gap.*
13
+ - **Extreme Speed with OXC**: By integrating the Rust-based OXC parser, `pkg-scaffold` achieves a 2-4x performance boost.
14
+ - **True Type-Aware Analysis**: Uses the full TypeScript Compiler API to resolve types across your entire project.
15
+ - **Automated Self-Healing**: Identifies unused code, removes it, and validates the change through tests.
16
+ - **Modular Plugin Ecosystem**: Supports local configurations and custom plugins, including Knip compatibility.
49
17
 
50
- ---
18
+ ## Getting Started
51
19
 
52
- ## πŸ› οΈ Installation & Usage
20
+ ### Installation
53
21
 
54
- ### 1. Add to your project
55
22
  ```bash
56
- npm install --save-dev pkg-scaffold
23
+ npm install -g pkg-scaffold
57
24
  ```
58
25
 
59
- ### 2. Configure (Optional)
60
- Create a `pkg-scaffold/config.json` to customize your experience:
61
- ```json
62
- {
63
- "interface": "CLI",
64
- "options": {
65
- "fastMode": true,
66
- "selfHealing": true
67
- }
68
- }
69
- ```
26
+ ### Usage
70
27
 
71
- ### 3. Run the Engine
72
- Add this to your `package.json` scripts:
73
- ```json
74
- "scripts": {
75
- "pkg-scaffold:run": "pkg-scaffold --fix --test-command 'npm test'"
76
- }
28
+ ```bash
29
+ pkg-scaffold init my-project
30
+ pkg-scaffold --fix --test-command 'npm test'
77
31
  ```
78
32
 
79
- ---
80
-
81
- ## πŸ“‚ Project Structure
82
-
83
- - **`/pkg-scaffold/config.json`**: Your local settings (CLI/GUI, Plugin Toggles).
84
- - **`/pkg-scaffold/plugins/`**: Drop your custom or Knip-style plugins here.
85
- - **`/docs/`**: Full [Plugin Development Guide](https://dreamlongyt.github.io/pkg-scaffold/).
86
-
87
- ---
88
-
89
- ## πŸ›‘οΈ Suppression
33
+ ## Documentation
90
34
 
91
- Protect specific code from the janitor:
92
-
93
- ```javascript
94
- /**
95
- * @scaffold-suppress
96
- */
97
- export const internalHelper = () => { /* Safe from pruning */ };
98
- ```
99
-
100
- ---
101
- ## Depencies
102
- ```json
103
- "ansis": "^3.0.0",
104
- "commander": "^12.0.0",
105
- "enhanced-resolve": "^5.16.0",
106
- "execa": "^8.0.1",
107
- "oxc-parser": "^0.135.0",
108
- "oxc-resolver": "^11.20.0",
109
- "ramda": "^0.29.1",
110
- "yocto-spinner": "^0.1.0"
111
- ```
112
- ---
113
- ## DevDepencies
114
- ```json
115
- "@types/node": "^25.9.3",
116
- "express": "^5.2.1",
117
- "knip": "^6.16.1", //Used to make Plugins from knip compitable with the code
118
- "lodash": "^4.18.1", //For Analysing
119
- "typescript": "^6.0.3", //For Analysing
120
- "vitepress": "^1.6.4" //For the Documentation
121
- ```
122
- ---
35
+ - [home](https://dreamlongyt.github.io/pkg-scaffold/)
36
+ - [guide](https://dreamlongyt.github.io/pkg-scaffold/guide)
37
+ - [references](https://dreamlongyt.github.io/pkg-scaffold/reference)
123
38
 
124
- ## πŸ“œ License
39
+ ## License
125
40
 
126
41
  MIT Β© DreamLongYT & The Enhanced Contributors.
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * ============================================================================
5
- * πŸ“¦ pkg-scaffold v3.1.2: Ultimate Enterprise Codebase Janitor & Self-Healing Engine
5
+ * πŸ“¦ pkg-scaffold v3.1.3: Ultimate Enterprise Codebase Janitor & Self-Healing Engine
6
6
  * ============================================================================
7
7
  * * Eine hochgradig integrierte Code-Analyse- und Projektbootstrapping-Engine.
8
8
  * Kombiniert rekursive Erreichbarkeitsanalysen (Reachability Graphs) auf
package/logo.png ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pkg-scaffold",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "The ultimate enterprise-grade codebase janitor. Faster than Knip v6 with OXC integration, type-aware analysis, and self-healing capabilities.",
5
5
  "type": "module",
6
6
  "main": "index.js",