Express.js
Baseline uses express as its core web server and routing engine to handle HTTP requests and manage middleware.
Official Documentation
For detailed information regarding routing implementation, syntax, and advanced patterns, refer to the Express.js documentation.
Compare Express and Fastify
Baseline prioritizes developer velocity and ecosystem compatibility over the raw performance offered by alternatives like fastify.
| Feature | Express (baseline) | Fastify |
|---|---|---|
| Ecosystem | Mature and highly compatible | Evolving |
| Integration | Predictable (vite & WebSockets) | Excellent native Zod support |
| Primary Benefit | Stability & Interoperability | High Performance |
While fastify is a high-performance alternative, express provides more predictable interoperability when managing complex interactions between vite (frontend asset serving) and websockets (real-time communication).