Platform architecture
Download Hub uses a Cloudflare Worker for server-rendered pages and same-origin JSON APIs, with an isolated D1 database for account and marketplace records. Static assets and hosted launch downloads are part of the versioned deployment. GitHub is used for source backup, not as the production application host.
Public routes and search
The public catalogue is available through /, /movies, /music, /games, /images, /programs and /product/{slug}. Search supports query and category filters through the website. /sitemap.xml lists indexable pages; /robots.txt controls crawler guidance; /llms.txt provides a concise map for AI retrieval. These files support discovery and do not guarantee a search engine will index a page.
Public API reference
GET /api/v1/catalog supports q, category, platform, price, license, format, creator, delivery and sort filters. GET /api/v1/products/{slug} returns one published release. GET /api/status returns current status. /openapi.json is the machine-readable reference. These public reads need no API key. Downloads from other publishers open their official site; metadata access does not grant paid download rights.
Account APIs
Account operations are served under /api/auth and /api/account. A session cookie authenticates account requests. State-changing browser calls include X-Download-Hub: 1 and must satisfy the server’s origin checks. Never expose server secrets in the web app. Private endpoints do not become public because a route is linked in the interface.
Roles and data boundaries
Customer records are scoped to the authenticated account. Vendor submissions are scoped to the submitting vendor and require publication review. Staff and administrator actions require the corresponding server-side role. Hiding a menu is not an authorisation control.
Integrations
Google and Microsoft OAuth, Resend email, PayPal checkout and web push are optional integrations. Their enabled state depends on valid server configuration. Provider secrets belong in Worker secrets. An absent integration should return a useful unavailable state rather than simulate a successful sign-in, email, payment or notification.
Authentication and 2FA
Email and password sign-in is supported by the account service. Password recovery uses a limited-life email token when delivery is configured. Authenticator-app TOTP is the two-factor method. Enrolment is complete only after the user proves possession with a valid current code. SMS is not used for two-factor authentication.
Checkout and delivery
Checkout orders are created and verified on the server. Price and product identity come from the server catalogue. A browser redirect or client-submitted success flag cannot grant an entitlement. Publisher downloads remain publisher-delivered; hosted paid downloads require a verified entitlement.
Operational documentation
The source package includes user instructions, API reference, deployment and recovery steps, security notes, mobile project sources and a release-gate report. STATE.json records actual progress and blockers. The Status page reports current service checks and published incidents without inventing uptime history.
Responsible reporting
Send reproducible security or account-isolation concerns to developer@kellsconnect.com.au. Include the affected endpoint and expected behaviour without attaching credentials or another customer’s personal data. Use only accounts and content you are authorised to access.