unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.85k stars 491 forks source link

UnJS: Add abstraction to object / file storage (e.g. local, S3, R2, Vercel Blob) #2304

Closed MickL closed 5 months ago

MickL commented 5 months ago

Describe the feature

This is a feature request for the UnJS ecosystem but I am unsure where else to put it:

It would be amazing to have a library that abstracts / unifies the usage of object/file storages (like S3).

Possible drivers could be:

Benifits:

Additional information

danielroe commented 5 months ago

I think unstorage is this very thing. It supports writing 'raw' content to FS/blob storage, etc.

MickL commented 5 months ago

Arent there then all the drivers for file storages missing? Like AWS S3, Cloudflare R2, Vercel Blob, etc

I always thought there is a huge difference between a KV store like Redis and a file store like S3

pi0 commented 5 months ago

@MickL Unstorage combines all storage with a unified/simplified interface via drivers. There is an open tracker for S3, and R2 is supported too. Always feel free to open improvement suggestions to add more drivers to unjs/unstorage if feel something is missing 👍🏼