How would you make a package that serves a web page across multiple frameworks AND nodejs?

Just starting a project and was wondering the best way to do this sort of thing, would I export jsx components and the main thing separately or?
4 Replies
ph0rk
ph0rk2mo ago
is that like a backend that servers multiple client side files?
tylerlaws0n
tylerlaws0n2mo ago
Astro? https://astro.build/ It gives islands, so you can write in any framework and just import the appropriate plugin
Astro
Astro
Astro builds fast content sites, powerful web applications, dynamic server APIs, and everything in-between.
juan
juan2mo ago
so like it should support nextjs and plain nodejs programs, and serves a webpage that needs to be in the same process nextjs seems easy because i can just wrap app in the wrapper and im done but nodejs seems difficult
KiKo
KiKo2mo ago
so kinda like trpc does? I think the general idea is to export your routes that you need in a way that can be read by whichever integration for nodejs you could probably do hono fairly easily and express shouldn't be too bad either
Want results from more Discord servers?
Add your server