EdCube is a Next.js 16 gaming platform focused on fast access to browser games, account-based personalization, and edge-first delivery on Cloudflare.
- 🎮 Dynamic game library with featured carousel and searchable catalog
- ☁️ Cloudflare R2-backed game assets served through internal API proxy routes
- 🔐 Supabase authentication (email/password + OAuth) and account management
- ⚡ Edge-ready deployment with OpenNext for Cloudflare Workers
- 📜 Built-in legal pages and DMCA request flow
- Framework: Next.js 16, React 19, TypeScript
- Styling/UI: Tailwind CSS v4, shadcn/ui, lucide-react
- Auth & Data: Supabase (Auth + Postgres)
- Infrastructure: Cloudflare Workers, R2, Hyperdrive, Wrangler
- Build/Deploy: OpenNext Cloudflare adapter
- Node.js 20+
- npm
- Cloudflare + Supabase accounts (for full local parity and deployment)
npm ciCreate a .dev.vars file in the repository root for local runtime values (or set equivalent environment variables in your shell/CI):
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY=your_supabase_publishable_key
NEXT_PUBLIC_SITE_URL=http://localhost:3000
POSTGRES_CONNECTION_STRING=your_postgres_connection_string
CLOUDFLARE_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE=your_hyperdrive_local_connection_string
NEXT_PUBLIC_SUPABASE_ANON_KEYandNEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEYare also supported as fallback key names.
npm run devOpen http://localhost:3000.
| Command | Description |
|---|---|
npm run dev |
Start local Next.js development server |
npm run build |
Build production app |
npm run start |
Start production server locally |
npm run lint |
Run ESLint |
npm run preview |
Build and preview with OpenNext + Cloudflare runtime |
npm run upload |
Build and upload OpenNext bundle |
npm run deploy |
Run project deploy helper (scripts/deploy.mjs) |
npm run cf-typegen |
Generate Cloudflare environment TypeScript types |
The repository is configured for OpenNext + Cloudflare Workers:
- Ensure Wrangler is authenticated and required bindings are configured.
- Build and deploy:
npm run deployFor previewing the Cloudflare runtime locally:
npm run previewsrc/
app/ Next.js app routes, pages, API handlers
components/ Reusable UI and layout components
data/ Static game metadata
lib/ App-specific helper libraries
utils/ Shared utilities (R2, DB, Supabase)
docs/
roadmap.md Product and infrastructure roadmap
scripts/
deploy.mjs Deploy wrapper for OpenNext + Cloudflare
See /docs/roadmap.md for current priorities and implementation status.
- Fork the repository
- Create a feature branch
- Make your changes
- Run lint/build checks
- Open a pull request
No license file is currently defined in this repository.