unstorage icon indicating copy to clipboard operation
unstorage copied to clipboard

re-implement http server with web apis

Open bluwy opened this issue 10 months ago • 1 comments

Describe the feature

Just wondering of the issue title. I noticed that Astro is using unstorage but doesn't use its HTTP server feature, which depends on h3 that's medium-ish in size.

Alternatively perhaps there's a way to simplify the HTTP server support without bringing in many dependencies?

Additional information

  • [ ] Would you be willing to help implement this feature?

bluwy avatar Feb 24 '25 15:02 bluwy

Thanks for creating the issue. Yes probably for v2 we should migrate to simply Request => Response handler (and support node.js via srvx as optional peer dep.

I plan to do this ecosystem-wiede refactor as soon as have little more bandwidth (after h3 v2 release which also will go this direction)

(alternatively we can make h3 v2 -- which has less deps an optional peer dependency -- depends on how it goes I should investigate)

pi0 avatar Feb 24 '25 16:02 pi0

v2 will be zero dep: https://github.com/unjs/unstorage/releases/tag/v2.0.0-alpha.2

pi0 avatar Oct 07 '25 19:10 pi0