Nanoo CDN
High performance, secure edge proxy using Cloudflare Workers and Backblaze B2. Zero egress costs, 3ms-9ms TTFB, and AWS SigV4 security.
Quick Start
Section titled “Quick Start”# 1. Clone the repositorygit clone https://github.com/nanoolabs/nanoocdn.git
# 2. Install dependenciespnpm install
# 3. Setup environment variables# Create .dev.vars from the template and add your B2_APPLICATION_KEYcp .dev.vars.templates .dev.vars
# 4. Run development server (testing at http://localhost:8787)pnpm dlx wrangler dev
# 5. Deploy to Cloudflare Workerspnpm dlx wrangler deployProject Structure
Section titled “Project Structure”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
Features & Integration
Section titled “Features & Integration”- 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.
Credits
Section titled “Credits”Based on the cloudflare-b2 implementation by Backblaze.
License
Section titled “License”Licensed under MIT and Apache 2.0.