Skip to content
@backblaze-b2-samples

Backblaze B2 Sample Code Repositories

Sample projects and demos for Backblaze B2, from the Solutions Engineering and Labs teams. Unofficial and unsupported — questions and feedback welcome.

Build with Backblaze B2

Practical starter kits, reference apps, and Labs experiments for building with Backblaze B2 Cloud Storage.

Not sure where to start? Browse the curated B2 Samples catalog to find examples by workflow, including data lakehouse, AI, media, resilience, and integrations.

Get started with B2 · B2 S3-Compatible API

Start here

Your goal Recommended starting point What you get
Build a full-stack, file-backed app Vibe Coding Starter Kit A production-minded TypeScript + Python foundation with uploads, file browsing, and B2 already integrated.
Build an AI knowledge base Agentic RAG Vector Starter Kit Document ingestion, semantic search, grounded chat, citations, and B2-backed storage.
Upload directly from a web app B2 Browser Upload Focused examples using both the B2 Native and S3-Compatible APIs.
Learn the S3-Compatible API with Python B2 Python S3 Sample A small, approachable B2 quick-start application built with boto3.

Explore by workflow

What to expect

This organization contains two kinds of projects:

  • Starter kits and reference apps are designed to be read, adapted, and used as a foundation for your own B2 integration.
  • Labs experiments explore a specific workflow or technology. They are useful working examples, but may evolve quickly and are not a substitute for production architecture or formal product support.

Check each repository's README for prerequisites, security considerations, and its current maintenance status before adopting it.

Work with us

Have a bug report, a documentation improvement, or a B2 workflow you would like to see demonstrated?

  1. Start with the README in the most relevant repository.
  2. Open an issue there with a clear use case, expected outcome, and a minimal reproduction when applicable.
  3. For B2 account, billing, or production product support, use Backblaze Support rather than an example repository issue.

We welcome practical feedback from developers, customers, partners, and the open-source community. The most useful requests explain the real workflow you are trying to build, not just the technology involved.

Planning for storage at scale? If you are a customer with large-scale storage needs, contact Backblaze Sales to work with a Solutions Engineer on your architecture, integration, and pricing.

Building responsibly

Examples should never be copied blindly into production. Use least-privilege application keys, keep credentials out of source control, review access policies and lifecycle settings, and validate your integration against the official B2 documentation.


Backblaze B2 is S3 compatible object storage built for developers, data, media, and AI workloads.

Pinned Loading

  1. vibe-coding-starter-kit vibe-coding-starter-kit Public template

    Starter kit for vibe coders building apps with file uploads and object storage. This full-stack dashboard template integrates with Backblaze B2 Cloud Storage and includes secure upload flows, file …

    TypeScript 16 5

  2. agentic-rag-vector-starter-kit agentic-rag-vector-starter-kit Public template

    Agentic RAG vector starter kit with AI coding agent architecture, Langchain, LanceDB, and Backblaze B2 for document upload, semantic search, grounded chat, and document citations.

    Python 2 1

  3. image-generation-prompt-flow image-generation-prompt-flow Public

    AI image generation prompt flow example app focused on prompt engineering and prompt optimization, comparing models GPT Image, DALL-E, Gemini Nano Banana, and Google Imagen. Shows how image prompts…

    TypeScript 4 1

  4. openclaw-b2-sync-backup openclaw-b2-sync-backup Public

    OpenClaw automatic backup and sync to Backblaze B2. Keep state durable across machines, restore instantly on new hardware, and roll back to previous snapshots if configs break or memory becomes cor…

    TypeScript 3 3

  5. b2-transformers-video-object-detection b2-transformers-video-object-detection Public

    Real-time video object detection monitoring demo using Transformers.js and Backblaze B2 Cloud Storage. Runs YOLOv9 fully in the browser with automatic capture intervals, no server or GPU required. …

    JavaScript 2 2

Repositories

Showing 10 of 164 repositories
  • neocloud-partner-portal Public

    Neocloud partner portal demo for Backblaze B2

    backblaze-b2-samples/neocloud-partner-portal's past year of commit activity
    JavaScript 0 0 2 8 Updated Oct 21, 2026
  • videohash-deduplication Public

    Perceptual video deduplication on Backblaze B2: hash a video library with videohash, cluster near-duplicates by Hamming distance, and reclaim storage. Local, open-source, keyless compute — B2 holds the library, the hash index, and every cluster report.

    backblaze-b2-samples/videohash-deduplication's past year of commit activity
    TypeScript 1 MIT 0 0 9 Updated Oct 21, 2026
  • ai-avatar-video-generator Public

    Open-source AI avatar video generator: turn a script + avatar into a talking-head video with synced voice. Next.js + FastAPI demo using Backblaze B2 as the sole datastore — no database.

    backblaze-b2-samples/ai-avatar-video-generator's past year of commit activity
    TypeScript 1 MIT 1 0 7 Updated Oct 21, 2026
  • docling-rag-ingestion Public

    Docling RAG ingestion pipeline on Backblaze B2 — parse PDFs, DOCX, PPTX and HTML into clean Markdown and token-aware chunks written back to B2 over the S3-compatible API. Next.js + FastAPI, on-device models, no second API key.

    backblaze-b2-samples/docling-rag-ingestion's past year of commit activity
    TypeScript 5 MIT 0 0 19 Updated Oct 21, 2026
  • depth-anything-v2-dataset Public

    Depth Anything V2 dataset generator: turn large RGB image collections into dense depth maps locally, then store each source image with its depth map as a training-ready dataset on Backblaze B2, read over the S3-compatible API.

    backblaze-b2-samples/depth-anything-v2-dataset's past year of commit activity
    TypeScript 1 MIT 0 0 7 Updated Oct 21, 2026
  • bytetrack-dataset-builder Public

    Turn raw video on Backblaze B2 into training-ready multi-object-tracking datasets. ByteTrack + a keyless local detector fan one video out into per-track annotations, cropped clips, and versioned MOT-format label releases written back to B2 over the S3-compatible API. No GPU, no paid inference API.

    backblaze-b2-samples/bytetrack-dataset-builder's past year of commit activity
    TypeScript 0 MIT 0 0 8 Updated Oct 21, 2026
  • lerobot-b2-streaming Public

    Stream HuggingFace LeRobot v3 robot datasets straight from a Backblaze B2 bucket over the S3 API, fetching only the byte ranges you need instead of downloading the whole dataset. Record real teleoperation episodes to B2, index by task, and stream them back to train. The S3 streaming bridge LeRobot lacks (huggingface/lerobot#764).

    backblaze-b2-samples/lerobot-b2-streaming's past year of commit activity
    TypeScript 0 MIT 0 0 10 Updated Oct 21, 2026
  • ai-audio-starter-kit Public template

    Template for AI audio apps on Backblaze B2 — Next.js 16 + FastAPI, drag-and-drop upload, audio library with inline playback, metadata extraction, dashboards.

    backblaze-b2-samples/ai-audio-starter-kit's past year of commit activity
    TypeScript 0 MIT 0 2 8 Updated Oct 21, 2026
  • donut-receipt-parser Public

    OCR-free receipt & invoice parsing: runs the Donut vision model locally to extract line items, tax, and totals as structured JSON, storing every raw image and extraction in Backblaze B2 (S3-compatible) — no OCR step, no database, no second API key.

    backblaze-b2-samples/donut-receipt-parser's past year of commit activity
    TypeScript 0 MIT 0 0 9 Updated Oct 21, 2026
  • mmpose-video-keypoint-extraction Public template

    Extract 2D/3D pose keypoints from video with a local MMPose engine and store per-frame JSON, skeleton overlays, and a JSONL dataset manifest on Backblaze B2 — a Next.js + FastAPI sample for building pose datasets.

    backblaze-b2-samples/mmpose-video-keypoint-extraction's past year of commit activity
    TypeScript 0 MIT 0 0 19 Updated Oct 21, 2026