Daily tech demos playground deployed via Cloudflare Pages preview branches.
This repository hosts experimental tech demos and prototypes. Each weekday, a new demo may be added under demos/<slug>/ on its own branch (e.g., demo/interactive-canvas). Cloudflare Pages automatically generates preview URLs for each branch, making it easy to share and review demos in isolation.
tech-demos/
├── index.html # Landing page listing all demos
├── src/ # TypeScript source files
│ └── main.ts
├── demos/ # Individual demo pages
│ └── hello/
│ └── index.html
├── dist/ # Build output (generated)
└── package.json
- Node.js 18+ and npm
npm installnpm run dev— Start development server with hot reloadnpm run build— Build for production todist/npm run preview— Preview production build locally
- Create a demo branch:
git checkout -b demo/your-feature-name - Add your demo: Create
demos/your-feature-name/index.htmland assets - Update landing page: Add your demo to the list in
index.html - Push branch: Cloudflare Pages will automatically deploy a preview
- Share the preview URL: Use branch-specific URLs for feedback
Cloudflare Pages supports branch aliases, allowing consistent URLs like demo-feature-name.tech-demos.pages.dev regardless of the exact branch name.
- Build Tool: Vite
- Language: TypeScript
- Deployment: Cloudflare Pages
- Styling: Vanilla CSS (keep it simple)
MIT