capsalock 0.0.0-stage → 1.0.1
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 +17 -0
- package/README.md +140 -2
- package/bin/capsalock.js +11 -0
- package/bin/cliEntrypoint.js +10073 -0
- package/package.json +126 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
Copyright 2026 Vinayak Singh (WhisperingPetX)
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
See the License for the specific language governing permissions and
|
|
17
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,141 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 🛡️ Capsalock — Sovereign Security Auditor, Auto-Fixer & Dev Platform
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Enterprise-grade, zero-dependency sovereign static application security testing (SAST), software composition analysis (SCA), secrets detection, and deterministic auto-remediation engine.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/capsalock)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
[](https://capsalock.vercel.app)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## ⚡ Quick Start: Instant CLI Usage
|
|
12
|
+
|
|
13
|
+
Run zero-footprint security audits anywhere in the world without sending code to any cloud:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# 1. Instant audit without installing anything (via npx)
|
|
17
|
+
npx capsalock scan .
|
|
18
|
+
|
|
19
|
+
# 2. Audit a specific folder or service
|
|
20
|
+
npx capsalock scan src/services/
|
|
21
|
+
|
|
22
|
+
# 3. Interactive or automated safe in-place auto-fix
|
|
23
|
+
npx capsalock fix
|
|
24
|
+
npx capsalock fix --yes
|
|
25
|
+
|
|
26
|
+
# 4. CI/CD Pipeline Quality Gate (exits with code 1 on violations)
|
|
27
|
+
npx capsalock scan . --fail-on=critical --format=json
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Global Installation (Optional)
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# Install globally via npm
|
|
34
|
+
npm install -g capsalock
|
|
35
|
+
|
|
36
|
+
# Run from any folder on Windows, macOS, or Linux
|
|
37
|
+
capsalock --version
|
|
38
|
+
capsalock scan
|
|
39
|
+
capsalock fix
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 🚀 Web Application Platform
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## ✨ Key Features
|
|
48
|
+
|
|
49
|
+
1. **🐙 GitHub Authentication & Multi-Repo Switcher**:
|
|
50
|
+
- Direct GitHub Personal Access Token (PAT) authentication for live GitHub API synchronization.
|
|
51
|
+
- 1-Click Demo accounts pre-loaded with rich, realistic enterprise repositories and tasks.
|
|
52
|
+
- Switch between repositories instantly with stars, forks, and branch tracking.
|
|
53
|
+
|
|
54
|
+
2. **📋 Interactive Kanban Board & Table Views**:
|
|
55
|
+
- 5 workflow columns: **Backlog**, **To Do**, **In Progress**, **In Review**, and **Done**.
|
|
56
|
+
- Native drag-and-drop or 1-click quick-move between columns with optimistic UI updates.
|
|
57
|
+
- Subtasks checklist with live completion meters and celebratory confetti on completion.
|
|
58
|
+
- Comprehensive tabular list with multi-column sorting, bulk actions, and search filtering.
|
|
59
|
+
|
|
60
|
+
3. **⏰ Deadline Management & Smart Notifications**:
|
|
61
|
+
- Target date & time scheduling for every deliverable.
|
|
62
|
+
- Real-time countdown badges: **Overdue** (pulsing red alert), **Due Today** (amber), and **On Track** (green).
|
|
63
|
+
- In-app Notification Drawer with category filters (Deadlines, Assignments, Sync Events) and pleasant synthesized Web Audio alert chimes.
|
|
64
|
+
|
|
65
|
+
4. **📊 Analytics Dashboard & Visual Intelligence**:
|
|
66
|
+
- Interactive SVG Sprint Burndown & Velocity slope chart.
|
|
67
|
+
- Workload Priority Matrix (Critical P0, High P1, Medium P2, Low P3) circular donut chart.
|
|
68
|
+
- Workflow Status Pipeline distribution funnel.
|
|
69
|
+
- Contributor Productivity Leaderboard with resolution speed and on-time completion rates.
|
|
70
|
+
|
|
71
|
+
5. **👥 Role-Based Access Control (RBAC) & Team Management**:
|
|
72
|
+
- 4 distinct access tiers:
|
|
73
|
+
- **Admin**: Full control, project deletion, user roles and security tokens.
|
|
74
|
+
- **Manager**: Sprint planning, task assignments, and executive reporting.
|
|
75
|
+
- **Developer**: Task creation, status updates, and checklist execution.
|
|
76
|
+
- **Viewer**: Read-only stakeholder access to dashboards and exports.
|
|
77
|
+
- Member roster with individual active vs completed workload bars.
|
|
78
|
+
|
|
79
|
+
6. **🎯 Milestones & Sprints Roadmap**:
|
|
80
|
+
- Group deliverables into version releases (e.g. `v2.4 - Offline Sync Release`).
|
|
81
|
+
- Dynamic progress bars tracking percentage of linked tasks resolved.
|
|
82
|
+
|
|
83
|
+
7. **📡 Offline Access & Cloud Synchronization**:
|
|
84
|
+
- Offline-first architecture persisting state in `localStorage` and `IndexedDB`.
|
|
85
|
+
- Mutation queue buffering changes made while disconnected and auto-synchronizing on reconnect.
|
|
86
|
+
- Simulated Offline Mode toggle for field-testing remote operations.
|
|
87
|
+
|
|
88
|
+
8. **📜 Immutable Audit Trail & Activity Stream**:
|
|
89
|
+
- Chronological logging of all team actions with actor attribution, timestamp diffs, and action badges.
|
|
90
|
+
|
|
91
|
+
9. **📄 Executive PDF & CSV Report Generator**:
|
|
92
|
+
- 1-click styled PDF executive report generator with KPIs and table layouts.
|
|
93
|
+
- Raw CSV dataset export for spreadsheet analysis.
|
|
94
|
+
|
|
95
|
+
10. **🌓 Dark & Light Mode + Quick Command Palette**:
|
|
96
|
+
- High-contrast accessible theme toggle with smooth transitions.
|
|
97
|
+
- Global `Ctrl+K` / `Cmd+K` command palette and keyboard shortcut navigation (`N` for new issue).
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 🛠️ Tech Stack
|
|
102
|
+
|
|
103
|
+
- **Frontend**: React 18, TypeScript, Vite
|
|
104
|
+
- **Styling**: Tailwind CSS, Glassmorphism, PostCSS
|
|
105
|
+
- **Icons**: Lucide React
|
|
106
|
+
- **Export Engine**: jsPDF, jsPDF-AutoTable
|
|
107
|
+
- **Animations & Sound**: Canvas-Confetti, Web Audio API Oscillator synthesis
|
|
108
|
+
- **Data Layer**: Offline-first LocalStorage & IndexedDB Engine + GitHub REST API v3
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 🚀 Getting Started
|
|
113
|
+
|
|
114
|
+
### 1. Prerequisites
|
|
115
|
+
- Node.js (v18 or higher)
|
|
116
|
+
- npm
|
|
117
|
+
|
|
118
|
+
### 2. Running Locally
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
cd capsalock
|
|
122
|
+
npm.cmd install
|
|
123
|
+
npm.cmd run dev
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Open your browser and navigate to `http://localhost:5173`.
|
|
127
|
+
|
|
128
|
+
### 3. Production Build
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
npm.cmd run build
|
|
132
|
+
npm.cmd run preview
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## ⌨️ Keyboard Shortcuts
|
|
138
|
+
|
|
139
|
+
- `Ctrl + K` or `Cmd + K`: Open Global Command Palette & Search
|
|
140
|
+
- `N`: Create New Issue (when not typing in an input field)
|
|
141
|
+
- `Esc`: Close any active modal or drawer
|
package/bin/capsalock.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { runCli } from './cliEntrypoint.js';
|
|
3
|
+
|
|
4
|
+
runCli(process.argv.slice(2)).then((exitCode) => {
|
|
5
|
+
if (typeof exitCode === 'number') {
|
|
6
|
+
process.exit(exitCode);
|
|
7
|
+
}
|
|
8
|
+
}).catch((err) => {
|
|
9
|
+
console.error('[ERROR] CapsaLock fatal error:', err);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
});
|