Adapters

Archil

Overview

Archil exposes disks through an S3-compatible API. The Archil adapter wraps the S3 adapter with Archil defaults: endpoint derivation from the Archil region, path-style addressing, and SigV4 signing with the geographic region.

Set branch to scope all operations to a disk branch. Archil routes branches through the bucket name as <diskId>.<branch>.

Configuration

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

const storage = new Storage({
  adapter: archil({
    bucket: 'disk_123',
    region: 'aws-us-east-1',
    accessKeyId: process.env.ARCHIL_S3_ACCESS_KEY_ID,
    secretAccessKey: process.env.ARCHIL_S3_SECRET_ACCESS_KEY,
  }),
});
archil({
  bucket?: string;
  disk?: { id: string; region: string };
  region?: string;
  accessKeyId: string;
  secretAccessKey: string;
  branch?: string;
  publicBaseUrl?: string;
  defaultUrlExpiresIn?: number;
});

Notes

Compatibility

CapabilitySupport
SnapshotsSibling locations via S3 adapter behavior
ForksSibling locations via S3 adapter behavior
Byte-range readsYes
Multipart uploadYes
Enforced upload limitsYes
User metadataYes
Signed URLsYes