Daptin Client for Node/JS/TS ecosystem which extends over the basic JSON API calls and allows you to execute Action APIs, handle user auth, and perform efficient file uploads with S3 presigned URL support for direct browser-to-S3 transfers.
The client now supports direct S3 uploads using presigned URLs, dramatically improving upload performance by bypassing your server:
- β Direct browser-to-S3 uploads with presigned URLs
- β Automatic multipart uploads for large files
- β Real-time progress tracking with callbacks
- β Multiple file uploads with batch processing
- β Video streaming uploads with chunked transfers (MP4, WebM)
- β Live recording and streaming from webcam/microphone
- β Automatic method selection (presigned URL or streaming)
// Simple file upload with S3 presigned URLs
await client.assetManager.uploadFile(
'user_profile', 'user-123', 'avatar',
file, file.name,
{
onProgress: (progress) => {
console.log(`Upload: ${progress.percent.toFixed(1)}%`);
}
}
);π Complete S3 Upload Guide
π₯ Video Streaming Upload Guide
Checkout starter kit here: https://github.com/daptin/vue_typescript_starter_kit
npm install daptin-client --saveyarn add daptin-clientimport {DaptinClient} from 'daptin-client'
const daptinClient = new DaptinClient("http://localhost:6336", false);
daptinClient.worldManager.loadModels().then(function () {
daptinClient.jsonApi.findAll("todo").then(function(res: any){
console.log("all todos", res.data)
})
})
npm adduser
npm publish