Project Info
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.
Analysis
View
Metric
- 1
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- AnthropicIn code
- FlaskIn code
- HTMLIn code
- PythonIn code
- JavaScriptClaimed
4 of 5 appear in the indexed code. 1 claimed on Devpost could not be matched to code, which may simply mean the tool leaves no trace in the repository.
AI coding agents
- Claude CodeCommits
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
65 KB
Source files
11
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
yjack-coder/re-dream
17 files · 125 KB · @ 2d78468
Structure
Application logic
9 files · 53%Domain rules, services and shared utilities.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here — open the file browser to check anything the diagram implies.
Languages
- Python51%
- HTML39%
- Markdown9%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
requirements.txt
pypi · 4- anthropic
- flask
- python-dotenv
- requests
Declared in the repository’s manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
This project’s features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.