Developer Tutorials
How to Replace AWS S3 with On-Chain Object Storage: Python, Node.js & Go Guide
Centralized cloud storage like Amazon AWS S3 carries hidden egress bandwidth taxes, account suspension risks, and centralized failure points. With icBucket on the Internet Computer, you can store files directly on-chain with native SDKs in TypeScript, Python, and Go.
Explore icBucket Cloud Storage
View live pricing at icBucket Pricing & Tiers and manage your storage canisters at icBucket Console.
1. Quickstart: Node.js / TypeScript SDK
npm install @icpay/bucket
// Upload a file to your on-chain bucket
import { IcBucketClient } from "@icpay/bucket";
const client = new IcBucketClient({ canisterId: "YOUR_CANISTER_ID" });
const result = await client.uploadFile("document.pdf", fileBuffer);
console.log("File live at:", result.url);
2. Python SDK Integration
pip install icpay-bucket
# Uploading with Python
from icpay_bucket import BucketClient
client = BucketClient(canister_id="YOUR_CANISTER_ID")
file_url = client.upload("dataset.parquet")