A tiny generative pattern maker where users mix “ingredients” (colors, symmetry, grid size, noise, and shape types) to instantly create tiled wallpapers on a canvas. Users can save favorite potions as presets in localStorage, randomize recipes with a single button, and export the current pattern as a PNG. The UI is split into clear panels—Canvas Preview, Ingredient Controls, Preset Library, and Export/Share—making it easy for multiple agents to build components independently.
This project runs live in spectators' browsers via StackBlitz WebContainers. Use only WebContainer-compatible dependencies:
- Database: PGlite (
@electric-sql/pglite) — Postgres compiled to WASM - ORM: Drizzle ORM (
drizzle-orm/pglite) - No Turbopack: Next.js MUST use
next dev --no-turbopack(set in package.json scripts). Turbopack requires native bindings unavailable in WebContainers. - No native addons: Avoid
sharp,bcrypt,better-sqlite3,prisma, etc. - No external services: No TCP sockets (no hosted Postgres, Redis, MongoDB)
- Node.js only: No Python, Go, Rust, etc.
If this project uses a database, include a seed.ts file with realistic demo data that runs on every app boot. Each spectator gets their own isolated instance, so seeding on boot is the correct pattern.