
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@uploadkitdev/core
Advanced tools
UploadKit core SDK — type-safe presigned URL client for browser, Node and Edge runtimes.
Lightweight TypeScript client for UploadKit file uploads.
AbortSignal@uploadkitdev/shared is bundled# npm
npm install @uploadkitdev/core
# pnpm
pnpm add @uploadkitdev/core
# yarn
yarn add @uploadkitdev/core
import { createUploadKit } from '@uploadkitdev/core';
const client = createUploadKit({ apiKey: 'uk_live_...' });
// Pick a file (browser File object)
const file = document.querySelector<HTMLInputElement>('#file')!.files![0];
const result = await client.upload({
file,
route: 'imageUploader', // matches your file route name
onProgress: (pct) => console.log(`${pct}% uploaded`),
});
console.log(result.url); // https://cdn.uploadkit.dev/...
createUploadKit(config)Factory function that returns an UploadKitClient instance.
| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | — (required) | API key prefixed with uk_live_ or uk_test_ |
baseUrl | string | https://api.uploadkit.dev | Override for self-hosted or testing |
maxRetries | number | 3 | Number of retry attempts on transient failures |
client.upload(options)Upload a single file. Returns a Promise<UploadResult>.
| Option | Type | Description |
|---|---|---|
file | File | Browser File object to upload |
route | string | File route name defined in your handler |
metadata | Record<string, unknown> | Optional metadata stored with the file |
onProgress | (pct: number) => void | Progress callback (0–100) |
signal | AbortSignal | Cancel the upload via AbortController |
client.listFiles(options?)List files for the project linked to your API key.
| Option | Type | Description |
|---|---|---|
limit | number | Max files to return (default: 20) |
cursor | string | Pagination cursor from previous response |
Returns Promise<{ files: UploadResult[]; nextCursor?: string }>.
client.deleteFile(key)Permanently delete a file by its storage key. Returns Promise<void>.
const controller = new AbortController();
// Cancel after 10 seconds
setTimeout(() => controller.abort(), 10_000);
await client.upload({
file,
route: 'imageUploader',
signal: controller.signal,
});
MIT
FAQs
UploadKit core SDK — type-safe presigned URL client for browser, Node and Edge runtimes.
The npm package @uploadkitdev/core receives a total of 12 weekly downloads. As such, @uploadkitdev/core popularity was classified as not popular.
We found that @uploadkitdev/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.