Migrate off Express #511
Replies: 2 comments 10 replies
-
Since Epic Stack will continue to use the Node.js runtime, I recommend you go with Fastify. It is the most compatible with existing Express/Connect middleware. Hono would be a good option if Epic Stack were platform agnostic, but you lose out on the middleware ecosystem since the API is different. |
Beta Was this translation helpful? Give feedback.
-
What about going with |
Beta Was this translation helpful? Give feedback.
-
UPDATE: Remix is actively working on solving "the middlware problem" and when they finish that we'll be able to migrate from Express to that. So I think express is good enough to get us to that point and moving to something else in the mean time is not worth it.
Express has served the node.js community for years. I'm incredibly grateful to Express for that.
The world has moved on and Express hasn't kept up. For this reason, I want to move off Express. The Epic Stack started with express for three reasons:
But I think it's a good idea to upgrade to something more modern. The biggest issue is we have several things we're using in Express that we won't want to lose with whatever we move to. I'm interested in Fastify (because it's backed by great devs, it's popular with lots of plugins, and it's really fast) and Hono.js (because it's standards based).
Unfortunately I'm just not motivated enough to make this change for me to actually spend time on it myself, but if anyone else is interested, I would really like to compare the options. The biggest requirement is that we don't lose features. Pretty much every middleware in https://github.com/epicweb-dev/epic-stack/blob/e41809cd7b566ac4e96f1d21c7237528026b4ede/server/index.ts should be represented in some way by what we migrate to.
Building an example is the best way to contribute to this effort because even if we decide to go a different direction, the example can still be helpful to others.
Beta Was this translation helpful? Give feedback.
All reactions