DEV Community

pishelin
pishelin

Posted on

I Built a Backend Framework Because Express Setup Made Me Miserable

The Problem

Tags: #node #typescript #webdev #programming #tutorial

After years of Next.js, going back to Express felt like traveling back in time:

  1. TypeScript? Configure it yourself
  2. Route structure? Copy from old repos
  3. Middleware? Install 5 different packages
  4. Prisma? More setup

The Solution

Fastay - file-based routing for Node.js:

src/
├── api/
│ ├── hello/
│ │ └── route.ts # → /api/hello
│ ├── users/
│ │ └── route.ts # → /api/users
│ └── products/
│ └── route.ts # → /api/products

What I Learned

  • How routing actually works under the hood
  • Middleware chain architecture
  • TypeScript generics at a deeper level
  • Documentation is 50% of the work

What's Next

  • [ ] Plugin system

Try It

npm install fastay

Top comments (0)