π¬ Tsonik
A modern TypeScript client library for the Iconik API that makes media asset management simple and type-safe.
β¨ Features
- π― TypeScript-First - Full type safety with comprehensive interfaces
- π Promise-Based API - Modern async/await support
- π‘οΈ Error Handling - Detailed error types with helpful context
- π‘ Reliable HTTP - Built on Axios with intelligent automatic retries and exponential backoff
- ποΈ Resource Architecture - Organized by domain: assets, collections, jobs, metadata
- π Comprehensive Docs - Real-world examples and TypeScript best practices
π Quick Start
Installation
npm install tsonik
Basic Usage
import { Tsonik } from 'tsonik';
// Initialize the client
const client = new Tsonik({
appId: 'your-app-id',
authToken: 'your-auth-token'
});
// Get all assets
const assets = await client.assets.listAssets({
limit: 50,
offset: 0
});
console.log(`Found ${assets.data.objects.length} assets`);
// Create a new asset
const newAsset = await client.assets.createAsset({
title: 'My Video',
type: 'ASSET',
description: 'A sample video file'
});
π Whatβs Next?
π New to Tsonik? Start with our Getting Started Guide for complete setup instructions.
π‘ Want Examples? Check out our Usage Examples with real-world code samples for all features.
π Need Reference? Browse the complete API Reference with method documentation.
π Retry Configuration? Learn about Automatic Retry and how to configure it for your needs.
π Links
- GitHub Repository - Source code and issues
- npm Package - Installation and versions
- Iconik API - Official API documentation
Built with β€οΈ for the media industry. Open source and community-driven.