Adapter

Railway

Overview

A branded alias of the Tigris adapter because Railway Buckets run on Tigris. Behavior, snapshot/fork support, and storage.raw are identical to the Tigris adapter — the only difference is the import name, which matches the platform you’re working in.

Configuration

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

const storage = new Storage({
  adapter: railway({
    bucket: 'agent-runs',
    accessKeyId: process.env.ACCESS_KEY_ID,
    secretAccessKey: process.env.SECRET_ACCESS_KEY,
  }),
});
railway({
  bucket: string;
  accessKeyId: string;
  secretAccessKey: string;
  endpoint?: string;
  forcePathStyle?: boolean;
});

Notes

Compatibility

Identical to Tigris — same SDK underneath.