Welcome
Get started with Fileway
Fileway
Runtime-agnostic file storage engine for the JavaScript/TypeScript ecosystem.
Unify cloud and local file storage behind a single, edge-compatible, type-safe API.
Quick Example
import { FilewayClient } from "@fileway/core";
import { LocalDriver } from "@fileway/local";
const client = new FilewayClient({
driver: new LocalDriver({ directory: "./uploads" }),
});
const result = await client.upload(stream, { filename: "avatar.png" });
console.log(result.url);Available Drivers
folder
Local
Local filesystem storage via native Node.js streams.
cloud
S3
AWS S3, MinIO, and Cloudflare R2 via pure fetch + Web Crypto.
cloud
Google Cloud Storage
Google Cloud Storage with a service account, no Google SDK.
cloud
Azure Blob Storage
Azure Blob Storage with Shared Key or SAS auth, no Azure SDK.
database
Supabase Storage
Supabase Storage with a secret key or a user's session (RLS).
image
Cloudinary
Cloudinary media CDN via pure fetch + Web Crypto.
Was this page helpful?