New
Get 5GB free storage
5GB free storage

Global storage
for developers

Object storage that works where you need it. Skip the complex setup and get back to building what matters.

Easy integration

Get setup in minutes

A simple interface that lets you start uploading files in a few lines of code. Use our SDKs to integrate with your favorite Javascript framework.

Get your api keys
01import { Restash } from "@restash/node";
02import { createRestashUploader } from "@restash/client";
03
04// For server side usage
05export const restash = new Restash(process.env.RESTASH_SECRET_KEY);
06
07// For client side usage
08export const upload = createRestashUploader({
09 publicKey: "pk_xxx",
10 handleSignature: "/api/signature",
11});
01import { upload } from "@/lib/restash";
02
03const onSubmit = async (e: FormEvent<HTMLFormElement>) => {
04 const formData = new FormData(e.currentTarget);
05 const file = formData.get("file") as File;
06
07 const { url } = await upload(file, {
08 onProgress: ({ percent }) => {
09 console.log(percent);
10 }
11 });
12
13 console.log(url); // https://cdn.restash.io/xxx
14};
Client side SDK

Easy browser uploads

Start uploading files with realtime progress tracking directly from the browser. No need to send your files to the server.

Start for free
Server side SDK

Server side management

Upload, retrieve, and manage files in your storage using our Node.js SDK, streamlining file handling directly from your server.

Start uploading
01import { restash } from "@/lib/restash";
02
03export const POST = async (req: NextRequest) => {
04 const formData = await req.formData();
05 const file = formData.get("file") as File;
06
07 const result = await restash.files.upload(file);
08
09 // save to db or do something else with it
10 await db.user.update({ avatar: result.url });
11
12 return NextResponse.json(result);
13};
No config needed

Minimal setup

Restash works out of the box with no configuration required. Just plug in your api key.

Super fast, global cdn

Serve your assets from the edge

Serve your assets from CloudFront’s edge network for lightning-fast performance everywhere.

Client-side power

Direct Browser Uploads

Upload any file from the browser with our simple and flexible client SDK for Javascript.

Server-side power

Manage files from the server

Upload, retrieve, and delete files from your server with our SDK for Node.js.

Developer first

Built for developers

Restash was built with the goal to make object storage simple and easy to setup and use.

All file types

Universal File Support

Upload and serve images, videos, fonts, documents, or any other static asset with ease.

Simple pricing

Power your storage

Start with our free plan and upgrade as you grow

Hobby

The perfect starting place.
Free forever.

5GB of included storage

Upload files up to 1GB in size

Unlimited uploads and downloads

Fast and secure CDN

Folder organization

Start for free

Pro

Everything you need to build.
$20/month.

250GB of included storage

Upload files up to 5TB in size

Unlimited uploads and downloads

Fast and secure CDN

Folder organization

Coming soon

Global storage
for developers

The storage layer that doesn’t slow you down.
Simple to integrate. Powerful when it counts.