News for hackers. Stuff that matters.

Ask HN: Writing APIs in Node.js – best framework?

Hi,

all the APIs I've ever written have been in Python, more specifically Django and FastAPI. I'm looking to resaddle as a nodejs dev, but need to hone my node.js skills.

Looking at the node.js ecosystem, there's tons of packages for every imaginable thing. However, I've not been able to find a more comprehensive framework as such as Django for node.js... Am I just not looking hard enough?

( 3 comments | 2 points | on HN )
Re:Ask HN: Writing APIs in Node.js – best framework? by mr90210 on Monday July 18, 2022 @06:24AM (#32136532)
You won’t likely find a framework such as Django.

You can’t go wrong with Express.js

If your logic is detached from the API (http), then ultimately the framework you decide to go with will not matter that much.

Re:Ask HN: Writing APIs in Node.js – best framework? by senttoschool on Monday July 18, 2022 @07:08AM (#32136813)
Nest.js Express.js Fastify.js
Re:Ask HN: Writing APIs in Node.js – best framework? by arvindkhadri on Monday July 18, 2022 @06:38AM (#32136597)
Have you looked at NestJS?