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/driver-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

On this page