Hetzner Object Storage
Hetzner Object Storage via the S3-compatible API. Endpoint derived from the location code (fsn1, nbg1, hel1).
Installation
@aws-sdk/client-s3, @aws-sdk/s3-presigned-post, and @aws-sdk/s3-request-presigner are optional peer dependencies of files-sdk - install alongside the SDK so the adapter's imports resolve at runtime.
Hetzner Object Storage via its S3-compatible API. A thin wrapper around the S3 adapter - endpoint derived from the location code (fsn1, nbg1, hel1), virtual-hosted-style addressing, errors relabelled. Auto-loads from HCLOUD_ACCESS_KEY_ID and HCLOUD_SECRET_ACCESS_KEY. Generate access keys in the Hetzner Cloud Console under Object Storage → Credentials.
import { Files } from "files-sdk";import { hetzner } from "files-sdk/hetzner";const files = new Files({ adapter: hetzner({ bucket: "uploads", region: "fsn1", // or "nbg1", "hel1" // accessKeyId / secretAccessKey auto-loaded from // HCLOUD_ACCESS_KEY_ID / HCLOUD_SECRET_ACCESS_KEY }),});