Skip to content

Nanoo CDN

High performance, secure edge proxy using Cloudflare Workers and Backblaze B2. Zero egress costs, 3ms-9ms TTFB, and AWS SigV4 security.

Terminal window
# 1. Clone the repository
git clone https://github.com/nanoolabs/nanoocdn.git
# 2. Install dependencies
pnpm install
# 3. Setup environment variables
# Create .dev.vars from the template and add your B2_APPLICATION_KEY
cp .dev.vars.templates .dev.vars
# 4. Run development server (testing at http://localhost:8787)
pnpm dlx wrangler dev
# 5. Deploy to Cloudflare Workers
pnpm dlx wrangler deploy
  • Directory.github/
    • Directoryworkflows/
      • wrangler_dry_run.yml CI/CD pipelines
  • Directorysrc/
    • Directorylib/
      • cache.js Egress & cache handlers
      • signer.js AWS SigV4 implementation
      • utils.js Helper functions
    • index.js Entry point (Cloudflare Worker)
  • .dev.vars.templates Env template
  • ARCHITECTURE.md Mermeid diagram
  • CHANGELOG.md Version tracking
  • package.json Project metadata
  • wrangler.toml Workers configuration
  • Architecture & Flow: Optimized request lifecycle for minimal latency.
  • Security: Integrated AWS SigV4 for secure communication with Backblaze B2.
  • Efficiency: Leverages Cloudflare’s global network to keep TTFB exceptionally low.

Based on the cloudflare-b2 implementation by Backblaze.

Licensed under MIT and Apache 2.0.