dimah-s3

Introduction

@dimah-s3/server presign handlers and lifecycle hooks for S3 flows.

@dimah-s3/server is the backend for dimah-s3 S3 flows: upload, download, delete, and multipart.

It focuses on presign flows. For list, copy, tagging, and other S3 APIs, use @aws-sdk/client-s3 in your own code.

Presign-first

Clients transfer bytes directly with S3; your server only signs URLs and runs hooks. Flow: authorize, issue a short-lived URL, let the client upload/download, then confirm or clean up on the server.

Why @dimah-s3/server

  • One instancedimahS3() gives HTTP handler and direct api
  • Lifecycle hooks — auth, validation, and DB writes at each step
  • Verified uploadsHeadObject before trusting file metadata
  • Any runtime — first-class adapters for Next.js, Express, Hono, Fastify, Elysia, SvelteKit, plus any Request/Response stack

Documentation

On this page