Installation
Installation and environment setup guidance.
To get started with Better Media, you need the core package and at least one storage adapter.
Quick Install
Choose your package manager and install the core library:
Recommended Setup
A typical production setup requires a storage adapter (e.g., S3) and a database adapter (e.g., Kysely for PostgreSQL).
Peer Dependencies
Better Media relies on certain peer dependencies depending on the adapters you choose:
- S3 Storage:
@aws-sdk/client-s3,@aws-sdk/s3-request-presigner - PostgreSQL/SQL:
kysely,pg(or your preferred driver) - Image Processing:
sharp
Local Development
For local development, we recommend using the Filesystem or In-Memory adapters to avoid external infrastructure dependencies.