Dreams
Dreams is an AI image generation app where friends describe their dreams via voice and get them visualised.
How it works
- Describe your dream — type it or use voice (transcribed via OpenAI Whisper).
- The prompt is optimised by Gemini before being sent to the image generation model.
- Replicate generates the image.
- The result is stored and shown in a public gallery.
The stack
Built on Cloudflare's platform as a production-grade learning project:
- Cloudflare Workers + Workflows — backend and async generation pipeline
- Cloudflare D1 — SQLite database for dream records
- Cloudflare R2 — image storage
- Cloudflare KV — rate limiting and idempotency
- Cloudflare AI Gateway — LLM observability
- Gemini — prompt optimisation and image evaluation
- Replicate — image generation
- Whisper — voice transcription
- Vitest — test suite
The objective was to emulate a full production stack on a low-stakes, fun project.
Try it
Visit https://nicos.website/dreams