Skip to content

S3-compatible virtual sandbox alongside the R2 one? #67

@davidmyriel

Description

@davidmyriel

Hi, I'd like to write a generic S3 adapter for our users (I work at Tigris data).

@flue/sdk/cloudflare#getVirtualSandbox(R2) is great if you're on Cloudflare.
However, there's no equivalent for Node, GitHub Actions, Workers without an R2 binding, or buckets that aren't R2.
The virtual sandbox falls back to in-memory and the agent forgets everything between calls.

I'd like to add @flue/sdk/s3#getS3Sandbox. It is the same BashFactory shape as the existing one, generic over any S3-compatible endpoint (AWS, Tigris, MinIO, R2's S3 API). @aws-sdk/client-s3 as an optional peer dep, the way wrangler is today. Lazy-imported, so projects that don't use it pay nothing.

Happy to share the implementation if it'd help you decide.

Dave

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions