Adapter

MinIO

Overview

The MinIO adapter wraps the MinIO S3-compatible API. Snapshots and forks follow the same sibling-bucket pattern as the S3 adapter (server-side copy + manifest).

Primarily useful for local development against docker run minio/minio, or for self-hosted S3-compatible storage on your own infrastructure.

Configuration

import { Storage } from '@storagesdk/core';
import { minio } from '@storagesdk/adapters/minio';

const storage = new Storage({
  adapter: minio({
    bucket: 'agent-runs',
    endpoint: process.env.MINIO_ENDPOINT,
    accessKeyId: process.env.MINIO_ACCESS_KEY_ID,
    secretAccessKey: process.env.MINIO_SECRET_ACCESS_KEY,
  }),
});
minio({
  bucket: string;
  endpoint: string;        // required — no default
  accessKeyId: string;
  secretAccessKey: string;
  region?: string;         // defaults to 'us-east-1'
  forcePathStyle?: boolean; // defaults to true
});

Notes

Compatibility

CapabilitySupport
SnapshotsSibling buckets via server-side CopyObject
ForksSibling buckets via server-side CopyObject
Byte-range reads
Multipart upload
Enforced upload limits
User metadata
Signed URLs