nextrush 2.0.0 → 2.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/README.md +54 -20
- package/dist/index.d.mts +737 -9
- package/dist/index.d.ts +737 -9
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -10,7 +10,8 @@ _Koa-style Context • Express-inspired API • Enterprise Features Built-in_
|
|
|
10
10
|
[](https://nodejs.org/)
|
|
11
11
|
[](https://www.typescriptlang.org/)
|
|
12
12
|
[](LICENSE)
|
|
13
|
-
[](https://github.com/0xTanzim/nextrush)
|
|
14
|
+
[](https://github.com/0xTanzim/nextrush)
|
|
14
15
|
|
|
15
16
|
```typescript
|
|
16
17
|
import { createApp } from 'nextrush';
|
|
@@ -25,7 +26,7 @@ app.listen(3000);
|
|
|
25
26
|
// Server running at http://localhost:3000
|
|
26
27
|
```
|
|
27
28
|
|
|
28
|
-
[**📖 Documentation**](./docs)
|
|
29
|
+
[**📖 Documentation**](./docs) • [**🚀 Quick Start**](#-quick-start) • [**💡 Why NextRush?**](#-why-nextrush-v2)
|
|
29
30
|
|
|
30
31
|
</div>
|
|
31
32
|
|
|
@@ -41,6 +42,38 @@ Unlike other frameworks that require dozens of plugins for production use, NextR
|
|
|
41
42
|
|
|
42
43
|
---
|
|
43
44
|
|
|
45
|
+
## 🎯 Zero Dependencies Philosophy
|
|
46
|
+
|
|
47
|
+
**NextRush v2 is built with ZERO runtime dependencies.** Every feature—from routing to WebSocket support—is implemented using only Node.js core modules.
|
|
48
|
+
|
|
49
|
+
### Why Zero Dependencies?
|
|
50
|
+
|
|
51
|
+
- **🔒 Security** - No third-party vulnerabilities in your supply chain
|
|
52
|
+
- **⚡ Faster Installs** - No dependency resolution, instant setup
|
|
53
|
+
- **🛡️ Stability** - No breaking changes from external packages
|
|
54
|
+
- **🔍 Full Control** - Every line of code is maintainable and auditable
|
|
55
|
+
- **🚀 Performance** - Optimized for Node.js internals, no abstraction overhead
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Check it yourself! Only devDependencies, ZERO runtime deps
|
|
59
|
+
npm ls --production --depth=0
|
|
60
|
+
# Result: (empty)
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Every framework claims to be "lightweight." NextRush v2 proves it.**
|
|
64
|
+
|
|
65
|
+
| Framework | Runtime Dependencies |
|
|
66
|
+
| --------------- | ------------------------------------ |
|
|
67
|
+
| **NextRush v2** | **0** ⭐ |
|
|
68
|
+
| Express | 34+ packages |
|
|
69
|
+
| Koa | 0 (but needs plugins for everything) |
|
|
70
|
+
| Fastify | 20+ packages |
|
|
71
|
+
| Hapi | 50+ packages |
|
|
72
|
+
|
|
73
|
+
> **Built-in features without the dependency hell.** Security, validation, WebSocket, templates, logging, CQRS—all implemented with pure Node.js.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
44
77
|
## 🎯 Why NextRush v2?
|
|
45
78
|
|
|
46
79
|
NextRush v2 represents the evolution of Node.js web frameworks, synthesizing proven patterns from Express, Koa, and Fastify into a unified, type-safe framework with enterprise features integrated at the core.
|
|
@@ -55,11 +88,12 @@ NextRush v2 represents the evolution of Node.js web frameworks, synthesizing pro
|
|
|
55
88
|
|
|
56
89
|
### ⚡ Performance That Scales
|
|
57
90
|
|
|
58
|
-
- **Zero Dependencies** - Pure Node.js core,
|
|
91
|
+
- **Zero Dependencies** - Pure Node.js core, no third-party overhead
|
|
59
92
|
- **13,261 RPS Average** - Competitive with established frameworks
|
|
60
93
|
- **Optimized Router** - O(1) static path lookup, pre-compiled routes
|
|
61
|
-
- **Memory Efficient** - ~60KB baseline
|
|
94
|
+
- **Memory Efficient** - ~60KB baseline, smallest footprint in class
|
|
62
95
|
- **Smart Caching** - Template caching, efficient buffer management
|
|
96
|
+
- **No Supply Chain Tax** - Every feature optimized for Node.js internals
|
|
63
97
|
|
|
64
98
|
### 🛡️ Enterprise Features Built-In
|
|
65
99
|
|
|
@@ -148,21 +182,21 @@ app.get('/users', {
|
|
|
148
182
|
|
|
149
183
|
### 🌟 Core Features Comparison
|
|
150
184
|
|
|
151
|
-
| Feature | NextRush v2 | Express | Fastify | Koa
|
|
152
|
-
| ----------------------------- | --------------- | --------------- | --------------- |
|
|
153
|
-
| **Security Middleware** | Built-in | Plugin required | Plugin required | Plugin required
|
|
154
|
-
| **Validation & Sanitization** | Built-in | Plugin required | Built-in | Plugin required
|
|
155
|
-
| **Template Engine** | Built-in | Plugin required | Plugin required | Plugin required
|
|
156
|
-
| **WebSocket Support** | Built-in | Plugin required | Plugin required | Plugin required
|
|
157
|
-
| **Event System (CQRS)** | Dual system | Plugin required | Plugin required | Plugin required
|
|
158
|
-
| **Advanced Logging** | Plugin included | Plugin required | Plugin required | Plugin required
|
|
159
|
-
| **Error Classes** | 8 custom types | Basic | Basic | Basic
|
|
160
|
-
| **Dependency Injection** | Built-in | Plugin required | Plugin required | Plugin required
|
|
161
|
-
| **Smart Body Parser** | Auto-detection | Plugin required | Built-in | Plugin required
|
|
162
|
-
| **Static File Serving** | Plugin included | Built-in | Plugin required | Plugin required
|
|
163
|
-
| **TypeScript Support** | First-class | Community | First-class | Community
|
|
164
|
-
| **Dependencies** |
|
|
165
|
-
| **Performance (RPS)** | ~13,261 | ~11,030 | ~22,717 | ~17,547
|
|
185
|
+
| Feature | NextRush v2 | Express | Fastify | Koa |
|
|
186
|
+
| ----------------------------- | --------------- | --------------- | --------------- | ----------------- |
|
|
187
|
+
| **Security Middleware** | Built-in | Plugin required | Plugin required | Plugin required |
|
|
188
|
+
| **Validation & Sanitization** | Built-in | Plugin required | Built-in | Plugin required |
|
|
189
|
+
| **Template Engine** | Built-in | Plugin required | Plugin required | Plugin required |
|
|
190
|
+
| **WebSocket Support** | Built-in | Plugin required | Plugin required | Plugin required |
|
|
191
|
+
| **Event System (CQRS)** | Dual system | Plugin required | Plugin required | Plugin required |
|
|
192
|
+
| **Advanced Logging** | Plugin included | Plugin required | Plugin required | Plugin required |
|
|
193
|
+
| **Error Classes** | 8 custom types | Basic | Basic | Basic |
|
|
194
|
+
| **Dependency Injection** | Built-in | Plugin required | Plugin required | Plugin required |
|
|
195
|
+
| **Smart Body Parser** | Auto-detection | Plugin required | Built-in | Plugin required |
|
|
196
|
+
| **Static File Serving** | Plugin included | Built-in | Plugin required | Plugin required |
|
|
197
|
+
| **TypeScript Support** | First-class | Community | First-class | Community |
|
|
198
|
+
| **Dependencies** | **0** ⭐ | 34+ packages | 20+ packages | 0 (needs plugins) |
|
|
199
|
+
| **Performance (RPS)** | ~13,261 | ~11,030 | ~22,717 | ~17,547 |
|
|
166
200
|
|
|
167
201
|
---
|
|
168
202
|
|
|
@@ -190,7 +224,7 @@ app.get('/users', {
|
|
|
190
224
|
- **Advanced Logging** - Structured logs with multiple transports
|
|
191
225
|
- **Security** - CORS, Helmet, Rate Limiting included
|
|
192
226
|
- **Validation** - Schema validation & input sanitization
|
|
193
|
-
- **Testing** - Test-friendly design,
|
|
227
|
+
- **Testing** - Test-friendly design, 1461 passing tests
|
|
194
228
|
- **Static Files** - High-performance file serving
|
|
195
229
|
- **Compression** - Gzip & Brotli support
|
|
196
230
|
|