I was using Laravel and it's micro-framework in the last 2 years to create RESTful APIs, and now I'm learning express.js for a while and i was thinking which frameworks you guys mostly use and why. is it express.js a good choice?
The one you know!
I second that. Unless you want to use this as an opportunity to learn a new language then pick the one that interests you the most.
Really most modern languages can give you what you need.
Also with an API you can make some things simpler by using a gateway such as AWS or Google's API Gateway - they help with rate limits, quota, and auth keys.
It's always nice to pick up and learn new tools (I recently built out a new API with python + fastapi after working with Laravel for 8+ years). The best framework is the one you feel most comfortable with, if things go well you'll be supporting your API for years to come.
Here are some things that I liked in fastapi:
What was it about express.js that interested you? :)
I saw that most people use it in different stacks that are related to front-end frameworks, like MERN, MEVN, and MEAN stack.
Also when i see tutorials for sockets they usually use express.js with it.
That's why i thought i will give it a try and see what's the pros and cons. :)