Start integrating

SDK

Install and configure official SDKs. Learn to set up your development environment with code examples.

This page will help you set up your local development environment to use the Chunkify API.

Prerequisites

Before you start, you'll need an API key:

1

Login

Sign up or sign in to chunkify.dev

2

Select a project

Select a project and go to this project settings

3

Create a new access token

Create a new key by clicking the "New Access Token" button in the Project Access Tokens section

4

Use the key

Copy the key (it starts with sk_project_)

Learn more bout authentication here

Remember to keep your Acess tokens safe and never share them publicly! Do not share it with others or expose it in client-side code.

Install an official SDK

To use the Chunkify API in server-side JavaScript environments like Node.js or Bun, you can use the official Chunkify SDK for TypeScript. Get started by installing the SDK using npm.

npm install @chunkify/chunkify

Now create a file called example.ts and paste the following code:

import Chunkify from '@chunkify/chunkify';

const client = new Chunkify({
    projectAccessToken: 'My Project Access Token',
});

// Create a source from a hosted file
const source = await client.sources.create({
    url: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
});

console.log(source);

Execute the code with bun run example.ts (or the equivalent command) and you should see the details of your newly created source.

Learn more on GitHub

Discover more about the Chunkify SDK for TypeScript on the library's GitHub page.