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 162 repositories
  • gpt-realtime-whisper-live-transcript-redactor Public

    Live mic-to-text transcription with inline PII, secrets, and glossary redaction on Backblaze B2 — stream audio through OpenAI Realtime + Whisper, redact in flight, and persist a privacy-default session bundle. FastAPI + Next.js B2 sample app.

    backblaze-b2-samples/gpt-realtime-whisper-live-transcript-redactor's past year of commit activity
    TypeScript 0 MIT 0 1 5 Updated Oct 6, 2026
  • video-semantic-search Public

    Chat with your video: a full-stack TypeScript + Python sample app that transcribes long-form video with Whisper, embeds it, and returns the exact timestamped moments that answer a natural-language question. Backblaze B2 is the sole data store — source, audio, transcript, and vector index — with no separate database.

    backblaze-b2-samples/video-semantic-search's past year of commit activity
    TypeScript 1 MIT 1 1 4 Updated Oct 6, 2026
  • webdataset-streaming-pytorch-training Public

    Stream WebDataset shards straight from Backblaze B2 object storage into PyTorch training — no local staging disk. A FastAPI + Next.js sample app that packs media into .tar shards, writes them to B2, and streams them back as an IterableDataset with live throughput and a distributed worker/node shard split.

    backblaze-b2-samples/webdataset-streaming-pytorch-training's past year of commit activity
    TypeScript 0 MIT 0 0 14 Updated Oct 6, 2026
  • backblaze-frameio Public

    A custom action that allows you to quickly move data between Backblaze B2 and Frame.io.

    backblaze-b2-samples/backblaze-frameio's past year of commit activity
    JavaScript 5 MIT 2 3 2 Updated Oct 6, 2026
  • 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 are structured, refined, and evolved from input to final output, with clear prompt lineage for learning and experimentation.

    backblaze-b2-samples/image-generation-prompt-flow's past year of commit activity
    TypeScript 4 MIT 1 0 0 Updated Oct 6, 2026
  • show-historical-versions Public

    Node.js app, written in TypeScript, that lists all non-current file versions in the given bucket

    backblaze-b2-samples/show-historical-versions's past year of commit activity
    TypeScript 1 2 3 1 Updated Oct 4, 2026
  • cloudflare-b2 Public

    Provide access to a private Backblaze B2 bucket via a Cloudflare Worker

    backblaze-b2-samples/cloudflare-b2's past year of commit activity
    JavaScript 114 Apache-2.0 98 3 2 Updated Oct 4, 2026
  • titiler-cog-map-tiles Public

    Serve dynamic XYZ map tiles on demand from Cloud-Optimized GeoTIFFs (COGs) in Backblaze B2 — a full-stack TiTiler + FastAPI + Leaflet sample that reads only the COG byte-ranges it needs over the S3 API, with no second tile server and no data duplication.

    backblaze-b2-samples/titiler-cog-map-tiles's past year of commit activity
    TypeScript 0 MIT 0 0 15 Updated Oct 3, 2026
  • ffmpeg-hls-vod-transcoder Public

    Self-hosted HLS video-on-demand (VOD) transcoder: upload a source video and FFmpeg fans it out into a multi-bitrate adaptive-bitrate ladder (360p/720p/1080p) plus thumbnail sprites, stored on Backblaze B2 and streamed in-browser with hls.js. A Mux / Cloudflare Stream-style pipeline at object-storage cost. Next.js 16 + FastAPI.

    backblaze-b2-samples/ffmpeg-hls-vod-transcoder's past year of commit activity
    TypeScript 0 MIT 0 0 17 Updated Oct 3, 2026
  • dspy-compiled-program-versioning Public

    Version, evaluate, diff, and roll back compiled DSPy programs — a prompt-optimization workflow that stores every run as an append-only artifact bundle on Backblaze B2 (S3-compatible object storage), running fully offline against a local Ollama LLM.

    backblaze-b2-samples/dspy-compiled-program-versioning's past year of commit activity
    TypeScript 0 MIT 0 0 16 Updated Oct 3, 2026