Many modern frameworks incorporate their own storage layers to facilitate communication with various storage options such as local disk, S3, GCP, and others.
Few examples are :
Laravel - File Storage
AdonisJS - Drive
I recommend developing a new library such as @nestjs/storage that can effectively handle communication between applications and their designated storage layers.
I came up with the idea for "@nestjs/storage" while developing a serverless app for AWS Lambda. I needed to use the local disk during development and S3 for deployment. A library like this would be beneficial as it eliminates the need for developers to create custom storage solutions, which can be challenging.
One potential reference for the development of such a library could be the deprecated @codebrewlab/nestjs-storage library.