Node.js SDK Overview
Show the table of contents
The CKBox Node.js SDK (@ckbox/sdk-node
) is a lightweight, JavaScript library that provides seamless integration between your Node.js applications and CKBox services. This SDK is designed to bootstrap core CKBox functionality with minimal setup, allowing developers to quickly implement file upload capabilities and asset management features.
The Node.js SDK serves as a bridge between your server-side Node.js applications and the CKBox API, providing:
- Zero-configuration approach - Get started with just a few lines of code
- Smart defaults - Sensible configuration defaults reduce boilerplate
- JWT-based authentication - Secure, token-based authentication handled automatically
- Multiple upload methods - Support for files, buffers, and streams
- Progress tracking - Real-time upload progress monitoring
- Concurrent uploads - Built-in queue management with configurable concurrency limits
- Error handling - Robust error management with detailed error information
- Asset retrieval - Fetch individual assets or paginated lists
- Advanced filtering - Search and filter assets by category, folder, and other criteria
- Asset operations - Delete assets and manage your file library
- TypeScript support - Full type definitions for enhanced development experience
- Workspace isolation - Multi-tenant architecture support
- Role-based access - Granular permission control (user, admin, superadmin)
- Error resilience - Comprehensive error handling and recovery
The CKBox Node.js SDK is perfect for:
- Content Management Systems - Integrate file upload and management into your CMS
- E-commerce Platforms - Handle product images and documentation
- Collaboration Tools - Enable file sharing and collaborative editing
- Document Processing - Upload and manage documents, PDFs, and media files
- Media Libraries - Build sophisticated media management applications
- API Backends - Add file handling capabilities to REST APIs
To begin using the CKBox Node.js SDK, you’ll need:
- CKBox plan - Sign up for CKEditor + CKBox
- Access Credentials - Obtain your
accessKey
andenvironmentId
from the Customer Portal - Node.js Environment - Node.js 16+
The next sections will guide you through installation, configuration, and implementing your first file upload.