cerber-core 1.0.3 → 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 +37 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -73,6 +73,43 @@ Ongoing savings: $6,000/month per developer
|
|
|
73
73
|
|
|
74
74
|
Cerber Core is a comprehensive toolkit for maintaining code quality and architecture in growing Node.js projects.
|
|
75
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
|
+
|
|
76
113
|
**Four Layers:**
|
|
77
114
|
|
|
78
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",
|