Skip to content

🚀 What is Filesrocket?

Filesrocket is a package built entirely on Typescript that allows you to manage your files with various cloud storage services (Local, Cloudinary, Amazon S3) by using strategies called Services.

ðŸŠķ Philosophy

Filesrocket provides a system that allows developers with a single package to manage the storage services in the cloud that they want, be it Cloudinary, Amazon S3, without having to go through tedious configurations to consume the API's or SDK that these companies provide.

ðŸ’Ą Motivation

The main reason for Filesrocket is to be a package that allows you to manage your files regardless of the service you are using. Many times when we develop applications it is necessary to upload files, such as a client's photograph, the cover of a book, etc. And all this leads to setting up an entire infrastructure for each service we use. With Filesrocket you forget about all those problems, since it has all the solutions for each provider. In this way we greatly speed up development when we need to handle files and offer a uniform solution for each service.

🌈 Features

  • 🔭 Manage your files with multiple cloud storage services (Local, Cloudinary, Amazon S3
  • ✅ Validations (validate extensions, file sizes and more)
  • ⚡ Easy to configure and integrate
  • ðŸ›Ąïļ Written in Typescript
  • ðŸ‘ĻðŸŧ‍ðŸ’ŧ Community driven

ðŸĪ” Difference with other packages

Multer

Multer is possibly the most used package for uploading static files, it is easy to configure and intuitive. However, you will have to form the urls of your files, paginate your results, etc. Also, if you want to save them to a cloud storage service like Amazon S3, you'll need to do your own configuration, which Filesrocket does all for you âĪïļ

Busboy

Busboy is another alternative, which offers better performance because it adds a very thin layer for interpreting multipart/form-data requests. Unlike multer, you should also add the logic to store files, since busboy only interprets the requests, thus making it more complex.

By the way, Multer and Filesrocket use Busboy from behind.

Formidable

Formidable, it is also an excellent option, since it allows you to easily save files, add validations, etc. But it has similar characteristics as the previous ones.

Express-fileupload

Express-fileupload It is also a good option as it offers the similar features as the previous packages.

Released under the MIT License.