Aug 20, 2025
Every modern application — from SaaS platforms to mobile apps — relies on files. Users upload profile pictures, teams share documents, and products deliver video content. Yet handling this is still harder than it should be.
Let’s look at what goes into managing files in today’s apps, and how Trelae makes it simple.
Most teams end up using S3 + CloudFront + external APIs + custom scripts — a fragile system that eats up time and resources.
Trelae brings everything together in a single platform:
Here’s what that looks like in code:
import { Trelae } from "trelae-files";
const client = new Trelae({ apiKey: "YOUR_API_KEY" });
const namespace = trelae.namespace('f81d4fae-7dec-11d0-a765-00a0c91e6bf6')
// Upload a file
const file = namespace.upload(fileToUpload, mimeType, {location: '/', name: 'hello.txt'})
// Transform an image
await file
.resize({
width: 800,
height: 600,
})
.save();
As apps become more media-heavy, file operations aren’t optional — they’re core. Trelae was built to be the infrastructure layer for modern file handling, so developers never need to reinvent the wheel again.
Aditya
Co-founder