Use case

File Storage

Upload, store, and deliver files with signed URLs and CDN delivery. Production defaults for security and performance.

access.scalemule

API key policy

Production / Acme AI

Active
EnvironmentProduction
ServicesAuth, Data, Events
RoleAgent builder
Tenant-aware routes, scoped keys, and audit logging enabled.

Scoped access

API keys, roles, policies, and environments.

Tenant data

Application and tenant context on every request.

Reliable events

Signed delivery, retries, and webhook visibility.

Audit trail

Sensitive changes recorded for review.

The problem

AI can build the first version. Growth still needs a backend model.

01

The first version can work locally while production access, data, events, storage, and audit behavior remain undefined.

02

Backend pieces often arrive as separate patches once customers begin depending on the workflow.

03

Generated product logic needs a stable platform boundary before it can support real customer growth.

ScaleMule model

A shared backend foundation for file storage

Use ScaleMule as the backend target for the product pattern you are building, so identity, tenant data, events, storage, and audit stay connected instead of becoming separate glue projects.

S3-compatible object storage with CDN delivery

Signed URLs for secure, time-limited file access

Upload progress tracking and resumable uploads

Image and video processing pipelines

Common workflows

What teams can build on this foundation

These are examples of the product surfaces ScaleMule helps keep structured as generated code turns into customer-facing software.

S3-compatible object storage with CDN delivery

Start from the product pattern and keep the backend primitives visible from the first implementation.

Signed URLs for secure, time-limited file access

Attach access rules, tenant context, event delivery, storage rules, and audit events to the workflow.

Upload progress tracking and resumable uploads

Extend the same model as the product adds users, customers, integrations, and operational requirements.

Developer path

Start with the SDK, keep the backend model explicit

Using @scalemule/sdk

Code example
import { createScaleMule } from '@scalemule/sdk'

const client = createScaleMule({
  apiKey: process.env.SCALEMULE_API_KEY,
  tenant: 'media-co'
})

// Upload a file
const file = await client.storage.upload({
  bucket: 'user-uploads',
  key: 'avatar.png',
  body: fileBuffer,
  contentType: 'image/png'
})

// Generate a signed URL (expires in 1 hour)
const url = await client.storage.signedUrl({
  bucket: 'user-uploads',
  key: 'avatar.png',
  expiresIn: 3600
})

Outcomes

Why this matters once customers depend on the product

ScaleMule keeps practical backend controls visible while teams move quickly with AI coding tools.

File Storage can move from prototype to production with fewer backend rewrites.

Access, tenant data, events, storage, functions, and audit controls stay part of the same product model.

Teams get clearer answers when customers ask how the application handles boundaries and operations.

Build with AI. Grow on ScaleMule.

Give file storage a backend model that can support real users, real teams, and real customer questions.