Overview
The full nestjs-media package set — core, the NestJS module, the browser client, the S3 multipart side-car, ORM stores, the image engine, and the ecosystem glue points.
Everything ships under the @dudousxd/nestjs-media* scope, versioned together. The disks are @nestjs/storage's (docs); install only the media packages you use.
The map
| Package | Role |
|---|---|
-core | SPIs (MediaStore, ImageProcessor, MultipartUploadDriver), MediaLibrary, attachments, uploadMode, folder listing, capabilities, diagnostics, resumable-upload engine, tus handler — on @nestjs/storage disks |
(umbrella) | NestJS MediaModule + MediaService (serve, authorize) + upload controllers |
-client | framework-agnostic browser client — uploadMedia (tus) + mediaUrl |
-disk-s3 | s3Multipart(): native multipart + delimiter listing for S3Disk |
-image-sharp | sharp-backed ImageProcessor |
-database-typeorm | TypeORM media store (non-destructive auto-schema); /nest: typeOrmMediaStore({ connectionName }) |
-database-mikro-orm | MikroORM media store (safe auto-schema) |
-database-drizzle | Drizzle media stores (sqlite, /pg, migration-first); /nest: factories on @nestjs/drizzle |
-database-prisma | Prisma media store (consumer-managed schema) |
-telescope | Telescope watcher consuming aviary:media:* |
-codegen | Codegen extension emitting a typed media client |
-react | useMediaUpload hook + MediaUploader component |
-testing | in-memory store/upload-session, storageOf(), conformance suites |
-dashboard | standalone /media console (SPA + JSON API) — disks, live uploads, media library |
How they layer
-react ─┐
├─▸ -client ──▸ (tus HTTP) ──▸ umbrella ─▸ -core
-codegen┘ │
@nestjs/storage disks (+ -disk-s3 side-car) ──┤ (StorageDisk, MultipartUploadDriver)
-image-sharp ────────────┤ (ImageProcessor)
-database-{typeorm,mikro-orm,drizzle,prisma} ───┤ (MediaStore)
-telescope ──────────────┘ (diagnostics consumer)-core defines the contracts; everything else either implements one (the S3 side-car, stores, the image engine) or consumes the library (the umbrella module, the glue points). Start at -core for the SPIs, or jump to the package you're wiring.
Diagnostics & the glue points
Media emits to aviary:media:* diagnostics channels with zero coupling; Telescope, Codegen, and React plug in from there.
@dudousxd/nestjs-media-core
The framework-agnostic heart — SPIs, the media-library, attachments, the upload engine, folder listing and diagnostics, on @nestjs/storage disks.