cerber-core 1.0.2 → 1.0.4
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 +70 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
**Status:** Production-ready ✅
|
|
11
11
|
**License:** MIT
|
|
12
12
|
|
|
13
|
+
## 🚀 Try It Now
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install cerber-core --save-dev
|
|
17
|
+
npx cerber-guardian --help
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
⭐ **Like what you see?** [Star the repo](https://github.com/Agaslez/cerber-core) and share with your team!
|
|
21
|
+
|
|
13
22
|
---
|
|
14
23
|
|
|
15
24
|
## 📊 Real Production Metrics
|
|
@@ -36,10 +45,71 @@ ROI: Break-even on Day 1
|
|
|
36
45
|
|
|
37
46
|
---
|
|
38
47
|
|
|
48
|
+
## 💼 Business Value
|
|
49
|
+
|
|
50
|
+
**For CTOs & Engineering Managers:**
|
|
51
|
+
- **Reduce production incidents** - 95% bugs caught pre-production (vs 60-70% manual reviews)
|
|
52
|
+
- **Cut debugging costs** - 4.5 hours saved per developer per session
|
|
53
|
+
- **Speed up onboarding** - BIBLE.md = instant project understanding for new hires
|
|
54
|
+
- **Enforce architecture** - Prevent technical debt before it enters codebase
|
|
55
|
+
|
|
56
|
+
**Cost Comparison:**
|
|
57
|
+
```
|
|
58
|
+
Manual Code Reviews: $150/hour × 2 hours/day = $300/day
|
|
59
|
+
Cerber Core: $0 (open source) + 4h one-time setup
|
|
60
|
+
Break-even: Day 1 ✅
|
|
61
|
+
Ongoing savings: $6,000/month per developer
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Who uses Cerber Core?**
|
|
65
|
+
- 🏢 **Startups** - Solo founders building fast with AI (SOLO layer)
|
|
66
|
+
- 👥 **Small teams** - 2-5 developers maintaining consistency (TEAM layer)
|
|
67
|
+
- 🚀 **Growing companies** - Enforcing architecture as team scales
|
|
68
|
+
- 🏭 **SaaS companies** - Production health monitoring (Cerber 2.1)
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
39
72
|
## 🎯 What is Cerber Core?
|
|
40
73
|
|
|
41
74
|
Cerber Core is a comprehensive toolkit for maintaining code quality and architecture in growing Node.js projects.
|
|
42
75
|
|
|
76
|
+
### 💎 The Core Value: Your Roadmap Becomes Executable Law
|
|
77
|
+
|
|
78
|
+
**Traditional problem:**
|
|
79
|
+
- Architect designs system → creates documentation
|
|
80
|
+
- Developers code → slowly drift from the plan
|
|
81
|
+
- Architecture reviews catch violations **too late**
|
|
82
|
+
- Technical debt accumulates
|
|
83
|
+
- **You pay for architecture again and again**
|
|
84
|
+
|
|
85
|
+
**Cerber Core solution:**
|
|
86
|
+
```
|
|
87
|
+
✅ Architect defines rules once (BIBLE.md + Guardian schema)
|
|
88
|
+
✅ Cerber enforces automatically forever
|
|
89
|
+
✅ Every commit validates against your roadmap (<1 second)
|
|
90
|
+
✅ Architecture stays intact as team scales
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**💰 Pay your architect once. Cerber guards the plan.**
|
|
94
|
+
|
|
95
|
+
Instead of hoping developers "follow the docs" → **Guardian blocks commits that violate your architecture**
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
// Your roadmap becomes code:
|
|
99
|
+
export const BACKEND_SCHEMA = {
|
|
100
|
+
rules: [
|
|
101
|
+
{
|
|
102
|
+
name: 'Protected routes must use authenticateToken',
|
|
103
|
+
pattern: /routes\/.*\.ts$/,
|
|
104
|
+
requiredImports: ['authenticateToken'],
|
|
105
|
+
severity: 'error' // Blocks violating commits
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
};
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**Result:** $6,000/month saved per developer. Architecture that doesn't erode. Teams that scale without chaos.
|
|
112
|
+
|
|
43
113
|
**Four Layers:**
|
|
44
114
|
|
|
45
115
|
1. **🛡️ Guardian 1.0** - Pre-commit architecture validator
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cerber-core",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "Your architecture roadmap becomes executable law. Guardian blocks commits that violate your plan. Pay architect once, Cerber enforces forever. Save $6k/month/dev.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"type": "module",
|