Potherca
Potherca

Reputation: 14640

File Storage Abstraction module for Node.js?

Working on applications in PHP, I like to use a file storage abstraction layer (for instance Flysystem). This makes it trivial to switch between locations where files should be persisted to (cloud storage, local drive, ZIP, whatever).

Currently I am getting started in Node.js so I was wondering if a similar module exists for node?

Searching the NPM site gave me a ton of hits related to the filesystem but nothing in regards to this level of abstraction.

Upvotes: 20

Views: 9552

Answers (4)

Potherca
Potherca

Reputation: 14640

As of 2023 there is Flystorage.

FlyStorage Has adapters for:
FlyStorage Logo
Built by the maintainer of PHP FlySystem
  • Amazon S3
  • Azure Storage Blob
  • Google Cloud Storage
  • In-Memory
  • Local filesystem
  • (S)FTP 🔜 Soon™️
  • For Node.js, written in TypeScript.

    Upvotes: 5

    DuncanMacWeb
    DuncanMacWeb

    Reputation: 77

    There is filefog, which is intended to support Google Drive, Dropbox, SkyDrive and Box, as well as the local filesystem. Like passport it uses ‘strategies’ published as separate modules for each provider (filefog-dropbox, filefog-onedrive, etc.).

    However, it has not seen any activity since 2018.

    Upvotes: 5

    Roman Rhrn Nesterov
    Roman Rhrn Nesterov

    Reputation: 3673

    There used to be Flydrive, but as of 2022 it is no longer maintained.

    It has support for:

    • Local
    • Amazon S3
    • Digital Ocean Spaces
    • FTP

    Upvotes: 6

    Pier-Luc Gendreau
    Pier-Luc Gendreau

    Reputation: 13814

    pkgcloud integrates multiple services (compute, storage, database. etc) and supports multiple cloud providers. The storage service's API is simple to use and supports streams, making it memory efficient as well.

    Unfortunately, the project is longer maintained.

    Upvotes: 7

    Related Questions