Skip to main content
The dreep package wraps every endpoint in this reference, adds typed errors, and generates signed URLs correctly — including the one detail that is easy to get wrong by hand (see Signed URLs).
  • Zero dependencies. Built on native fetch and node:crypto.
  • Fully typed. Written in TypeScript, ships .d.ts — every transform parameter is autocompleted and checked.
  • ESM and CommonJS. import and require both work.

Installation

Requires Node.js 18 or later.

Authentication

Create an API key on the API Keys page of your dashboard.
Your API key is a full-project credential and must stay server-side. It must never appear in browser or mobile app code — anyone holding it can read, upload and delete every asset in the project. The SDK throws on construction if it detects a browser.To upload from a browser, use the presigned upload flow, where your backend hands the client a short-lived URL and the key never leaves your server.

Quickstart

Method reference

Every method takes a single options object, so adding an argument never changes the order of the others.

Cancelling requests

Requests time out after 30 seconds. Uploads don’t — a large file can legitimately take minutes — so pass a signal when you want to bound one. Every method accepts it.