Transform your S3 buckets into powerful, AI-ready databases with JSON metadata, vector embeddings, and seamless file organization
// Multi-provider setup - works with AWS, Storj, MinIO, DigitalOcean
const aiContentDB = new S3Worm({
provider: "storj", // or 'aws', 'minio', 'digitalocean'
endpoint: "https://gateway.storjshare.io",
bucket: "ai-content-vault",
region: "us-east-1",
});
// Define your content schema with TypeScript
interface VideoContent {
id: string;
title: string;
description: string;
// File references
files: {
video: string; // 'videos/epic-demo.mp4'
thumbnail: string; // 'thumbnails/epic-demo.jpg'
transcript: string; // 'transcripts/epic-demo.txt'
};
// AI-powered metadata
ai: {
embedding: number[]; // 1536-dim OpenAI vector
tags: string[]; // Auto-generated tags
sentiment: "positive" | "negative" | "neutral";
categories: string[]; // ML-classified categories
};
// Analytics & engagement
analytics: {
views: number;
likes: number;
shares: number;
avgWatchTime: number;
heatmap: number[]; // Engagement per second
};
}Rich schemas with TypeScript support and automatic validation
Vector embeddings, semantic search, and multi-modal content support
Works with AWS, Storj, MinIO, DigitalOcean - zero vendor lock-in
Intuitive API, batch operations, and built-in caching