Real-world use cases built with Nextpress. Each runs standalone with zero external dependencies - just clone and node server.js.
Classic CRUD REST API with filtering, validation, and proper HTTP status codes. The "hello world" of backend frameworks.
User registration and login with token-based authentication. Demonstrates the auth guard middleware pattern with route groups.
Upload, download, and manage files with a web UI. Raw binary streaming, traversal protection, and static file serving for the frontend.
Receive webhooks from any source, validate signatures, apply rate limiting, and fan out. Features a debug catch-all that echoes any request.
Full-stack pattern: JSON API under /api with route groups, static serving for the built frontend, and SPA fallback that serves index.html for client-side routes.
Getting started with zero-dependency HTTP framework building...
How prototype patching achieves hidden class stability for faster property access...
Why trie-based routing outperforms linear scanning and regex matching...
Every Nextpress feature is demonstrated across these five projects.
| Feature | Todo | Auth | Files | Webhooks | SPA |
|---|---|---|---|---|---|
| GET / POST / PUT / DELETE | ✓ | ✓ | ✓ | ✓ | ✓ |
| jsonParser() | ✓ | ✓ | - | ✓ | ✓ |
| cors() | - | - | - | ✓ | ✓ |
| serveStatic() | - | - | ✓ | - | ✓ |
| group() | - | ✓ | - | - | ✓ |
| Route params (:id) | ✓ | ✓ | ✓ | ✓ | ✓ |
| Wildcard routes (*) | - | - | - | ✓ | ✓ |
| Middleware chains | - | ✓ | - | ✓ | - |
| req.header() | - | ✓ | ✓ | ✓ | - |
| Query params | ✓ | - | ✓ | ✓ | ✓ |
| notFound() | ✓ | ✓ | ✓ | ✓ | ✓ |
| onError() | ✓ | ✓ | ✓ | ✓ | ✓ |
| all() | - | - | - | ✓ | - |
Clone any example, modify it, and ship. Or start from scratch with the docs.