npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ckbox/sdk-node

v2.11.0

Published

CKBox SDK

Readme

CKBox NodeJS SDK

A lightweight JavaScript SDK for interacting with the CKBox API. This package provides easy integration between NodeJS application and CKBox services.

Installation

# Using npm
npm install @ckbox/sdk-node

# Using yarn
yarn add @ckbox/sdk-node

# Using pnpm
pnpm add @ckbox/sdk-node

Getting Started

To use the CKBox SDK, you'll need to obtain API credentials from your Customer Portal dashboard:

Initialize CKBox instance

import { CKBox } from '@ckbox/sdk-node';

// Configure CKBox
const config = {
  accessKey: 'your-access-key',
  environmentId: 'your-environment-id',
  workspaceId: 'your-workspace-id', // Optional
  userId: 'user-id', // Optional
  userName: 'User Name', // Optional
  role: 'user' // Optional, defaults to 'user'
};

// Initialize the CKBox wrapper
const { uploader, assets } = new CKBox(config);

Uploading Files

// Upload a file from a path
const uploadedFile = await uploader.uploadFile('/path/to/image.jpg', {
  categoryId: 'category-id', // Optional
  folderId: 'folder-id', // Optional
  onProgress: (progress) => {
    console.log(`Upload progress: ${progress.progress}%`);
  }
});

// Upload a buffer
const buffer = Buffer.from('file content');
const uploadedBuffer = await uploader.uploadBuffer(buffer, 'filename.txt', {
  categoryId: 'category-id'
});

// Upload a stream
const fileStream = fs.createReadStream('/path/to/file.pdf');
const uploadedStream = await uploader.uploadStream(fileStream, 'file.pdf', fileSize, {
  folderId: 'folder-id'
});

Managing Assets

// Get a specific asset by ID
const asset = await assets.getAsset('asset-id');

// List assets with pagination
const assetsList = await assets.getAssets({
  offset: 0,
  limit: 50,
  sortBy: 'uploadedAt',
  order: 'desc',
  categoryId: 'category-id' // Optional filter
});

Features

  • Simple and intuitive API for interacting with CKBox service
  • Secure authentication using JWT tokens
  • File upload functionality with progress tracking
  • Asset management (fetching and listing assets)
  • Comprehensive error handling
  • TypeScript support with full type definitions
  • Lightweight with minimal dependencies

API Reference

CKBoxConfig

Configuration object for CKBox SDK:

| Property | Type | Required | Description | |----------|------|----------|-------------| | accessKey | string | Yes | The access key available in the Customer Portal dashboard | | environmentId | string | Yes | The environment ID for CKBox instance | | workspaceId | string | No | The workspace ID for the user | | role | 'user' | 'admin' | 'superadmin' | No | The role of the user (defaults to 'user') | | userId | string | No | The user ID for the user | | userName | string | No | The user name for the user | | serviceOrigin | string | No | Base URL for the CKBox service (defaults to 'https://api.ckbox.io') |

Documentation

For more detailed information and examples, please refer to the CKBox documentation.

License

Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. CKBox is licensed under a commercial license and is protected by copyright law. For more details about available licensing options please contact us at [email protected].

Trademarks CKBox is a trademark of CKSource Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.