Systems

File storage

CDN directories across providers — plug and play for Ziteox projects.

File storage

Purpose

File storage manages CDN directories across providers so projects can plug in without rewriting product code. Each client project gets isolated storage and a CDN hostname. Company data can live on a different provider than client delivery.

Current state

PieceStatus
Bunny Storage + CDN naming for client projectsLive (ops convention + portal helpers)
Shared helpers @ziteox/storageLive in the portal monorepo
Cloudflare R2 for Ziteox company dataLive (ops) — bucket ziteox-data per Cloud Storage Decision
File & Asset Delivery Service (asset-service)Planned / per notes — CDN Bunny; repo not confirmed in this checkout
Forge file-storage provider nameTo be defined — heard as “OneEasy”; unconfirmed

What exists today

CDN & storage naming (client projects)

  • Storage zone name format: CLIENT_PROJECT-storage (example: parl-storage)
  • CDN hostname format: CLIENT_PROJECT-cdn.ziteox.com (example: parl-cdn.ziteox.com)
  • One CDN zone per storage zone; no hostname reuse across buckets
  • When DNS is on Cloudflare, the CDN CNAME must be DNS only (grey cloud), not proxied — avoids double CDN with Bunny

Portal package

  • portal: packages/storage — @ziteox/storage, described as “Shared Bunny Storage HTTP API helpers”
  • Key exports: bunnyStorageConfig, buildFinancialDocumentObjectKey, buildEntityDocumentObjectKey, plus put/get/delete helpers in portal: packages/storage/src/index.ts
  • Re-exported from admin and client: portal: ziteox-admin/src/lib/bunny-storage.ts, portal: ziteox-client/src/lib/bunny-storage.ts

Company object storage

  • Decision (2026-06-23): Cloudflare R2 for company data (not Backblaze B2)
  • Bucket: ziteox-data (with layout such as brand-assets/, invoices, projects — see R2 document layout note)

Asset service

  • Notes describe an optional File & Asset Delivery Service, CDN Bunny, repository name asset-service. That repo was not found under the local Ziteox trees checked for this page — treat as per notes until confirmed.

Provider for the Forge system

Unconfirmed. Laki’s Forge file-storage note flags a provider heard as “OneEasy” — likely mis-heard; Laki to confirm the name. Do not treat that string as the chosen vendor.

Interfaces

KindWhat
Package (today)@ziteox/storage — Bunny HTTP helpers and object-key builders
NamingCLIENT_PROJECT-storage / CLIENT_PROJECT-cdn.ziteox.com
DNSCloudflare CNAME to Bunny CDN = DNS only
Company dataR2 bucket ziteox-data (ops; not the same as per-project Bunny zones)

Env var names only for Bunny helpers:

BUNNY_STORAGE_ZONE_NAME, BUNNY_STORAGE_PASSWORD, BUNNY_STORAGE_HOST

Project env vars stay in the admin portal, not in Forge.

Open questions

  • Provider heard as “OneEasy” — unconfirmed; what is the real provider name for the Forge file-storage system?
  • Is Forge’s plug-and-play layer Bunny-only for now, or a multi-provider adapter from day one?
  • Does asset-service exist as a repo, and is it in scope for Forge Systems docs?
  • How should company R2 (ziteox-data) relate to the client-project CDN model in the Forge interface?

Also listed on Open questions.

  • Systems
  • Loom: Ziteox Forge — File storage system · CDN & Storage Naming Guidelines · Cloud Storage Decision · File & Asset Delivery Service - Ziteox Internal System · Ziteox R2 Document Layout · Ziteox Forge — Env vars boundary