Introducing Arc: A Node.js Web Framework Built from Scratch with TypeScript

I just published my first npm package called Arc. It is a web framework for Node.js that I built from the ground up using TypeScript. Instead of just using Express, I wanted to see if I could build the whole engine myself using only the native http module and zero external dependencies. I spent a lot of time on the core logic writing a router that uses regex to handle dynamic paths like /user/:id and setting up a recursive next function so middlewares run in the right order. Since I wanted it to be a complete tool, I also built my own custom parsers for JSON, URL encoded data, and cookies. It also has built in logic for JWT auth, CORS, rate limiting, and a static file server. Building this taught me way more about how a backend actually handles data flow than just using a pre made library ever did. I am still adding to it. My next plans are to include request validation, dependency injection, and cluster support to make it even faster. If you are into low level Node.js or want to help build out the engine, you are more than welcome to contribute. If you want to see how the guts of a framework actually work, check out the code or try it out: NPM: https://lnkd.in/dPkTEjYZ GitHub: https://lnkd.in/dfmwM_Cb #NodeJS #TypeScript #OpenSource #Backend #Coding

  • graphical user interface, text, application, email

To view or add a comment, sign in

Explore content categories