SDK@uploadkitdev/core
Installation
Add @uploadkitdev/core to your project and make your first upload.
@uploadkitdev/core is a zero-dependency TypeScript SDK that works in Node.js, the browser, and Edge runtimes (Cloudflare Workers, Vercel Edge Functions). It handles single-part and multipart uploads, progress tracking, retries, and cancellation.
If you are using Next.js, install @uploadkitdev/next and @uploadkitdev/react instead — they include everything from core plus the server handler and React components. See the Next.js guide.
Install
pnpm add @uploadkitdev/corenpm install @uploadkitdev/coreyarn add @uploadkitdev/coreZero external runtime dependencies. Works with Node.js 18+, all modern browsers, and Edge runtimes.
Minimum working example
import { createUploadKit } from '@uploadkitdev/core';
const client = createUploadKit({ apiKey: 'uk_live_xxxxxxxxxxxxxxxxxxxxx' });
const file = /* a File or Blob */ someFile;
const result = await client.upload({ file, route: 'imageUploader' });
console.log(result.url); // https://cdn.uploadkit.dev/...Next steps
- Configuration — all
UploadKitConfigoptions - Upload guide — progress tracking, abort, error handling
- API reference — complete type definitions