Skip to content

yjack-coder/re-dream

Repository files navigation

RE-DREAM — finish the dream you woke up from

Describe a dream that got cut off, then re-enter a hand-drawn, voice-steered dreamscape that continues wherever you tell it — narrated in real time — and keep the dream you finally finished.

Built at the UC Berkeley AI Hackathon 2026.

What it is

Everyone has woken a moment too early, pulled out of a dream just as it turned luminous. Dream recall collapses within minutes of waking — yet dreams matter: REM sleep is implicated in memory consolidation and emotional regulation, and dream content can carry signal about health (frequent distressing dreams have been linked to higher risk of cognitive decline and Parkinson's disease — Otaiku, eClinicalMedicine, 2022).

RE-DREAM is an interface that takes dreams seriously. You describe the dream that got cut off, then step back into a quiet dreamscape — a white line-art figure over a starlit, rippling sea — and steer it by speaking. When you wake, the dream gives you back a Dream Card: a title, its image, and a tender interpretation. Keep your dreams in a floating gallery and revisit them any time.

How it works

  • Anthropic (Claude) — the dream engine: continues the narrative in the direction you speak, art-directs the figure to draw, and names + interprets the dream on waking.
  • Deepgram — voice is the whole interface: Aura TTS narrates in a British voice; Nova STT lets you steer the dream by talking to it.
  • Flux / Pollinations — generated white line-art, screen-blended over a hand-built HTML5 Canvas starfield + water-ripple world.
  • Flask backend orchestrates everything (with a caching image proxy).

Run it locally

python3 -m venv venv && ./venv/bin/pip install -r requirements.txt
# create a .env with your keys:
#   ANTHROPIC_API_KEY=...
#   DEEPGRAM_API_KEY=...
./venv/bin/python app.py
# open http://localhost:5050

Controls: describe your dream (type or 🎤) → hold SPACE and say where the dream goes → I to wake → keep your dream → ✦ your dreams to revisit.

What's next

Reconstruct dreams from overnight signals — movement, heart rate, sleep-talk — so you can wake and immediately re-enter the dream you were just having. At scale, durable dream journals could turn fleeting subjective experience into longitudinal data.

About

RE-DREAM — finish the dream you woke up from. A voice-steered, hand-drawn dreamscape. Claude + Deepgram. UC Berkeley AI Hackathon 2026.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors