LoopBack storage component provides Node.js and REST APIs to manage binary file contents using pluggable storage providers such as local file systems, Amazon S3, Azure, Google Cloud, Openstack, and Rackspace. It uses pkgcloud for cloud-based storage support. Current stable version is 3.7.0. The package is in Maintenance LTS mode since Dec 2016 with EOL Dec 2020. It is part of LoopBack 3 ecosystem and is now deprecated in favor of LoopBack 4. Key differentiators: simple API for file upload/download, seamless integration with LoopBack models, and support for multiple cloud providers via pkgcloud.
npm install loopback-component-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Attaches the storage component to a LoopBack application using a local filesystem provider.
Migrate to LoopBack 4 storage component: https://loopback.io/doc/en/lb4/migration-overview.html
Upgrade Node.js to >=8 or use an older version of the component.
Use storageComponent.attachTo(app, options) as shown in the quickstart.
Ensure provider-specific environment variables (e.g., AWS_ACCESS_KEY_ID) are set.
Run: npm install pkgcloud
Call storageComponent.attachTo(app, options) instead of app.use(...)
Create the root directory: mkdir -p /tmp/storage