Skip to content

Quickstart

Install:

Terminal window
bun add @dropkit/upload

Upload:

import { upload } from '@dropkit/upload';
const { data, error } = await upload(file, { key: 'pk_live_...' });
if (error) throw new Error(error.message);
console.log(data.url);

That’s it. The URL is a live CDN link.

Get your key

  1. Sign up at dash.dropkit.app.
  2. Create a project.
  3. Copy the public key (pk_live_...).

Framework wrappers

  • React: @dropkit/react - <Uploader />
  • Svelte: @dropkit/svelte - <Uploader />
  • CLI: npx @dropkit/upload ./file.zip

Next