Build log

Why we built Cái Gương: look into the mirror for a prophecy

The story behind Cái Gương: a bronze-mirror ritual on your phone. Breathe, wipe the mist, read the prophecy; the mirror never lies twice, full moons bring rare lines, and the camera never leaves your device.

Why we built Cái Gương: look into the mirror for a prophecy

Anyone who grew up in Vietnam has heard some version of it: an old bronze mirror hangs in the family shrine, and on a full-moon night it shows what has not happened yet. We built Cái Gương (“The Mirror”) to bring that feeling to your phone as a small daily game: look into the mirror, breathe, wipe away the mist and read what it tells you.

Open Cái Gương · Source on GitHub

Intro: the mirror emerges from darkness
Intro: the bronze mirror emerges from the dark through blood-red and jade smoke while the candles light one by one. Tap to skip.

Why a mirror?

Fortune apps usually give you a “Reveal” button and a paragraph. The answer comes too easily, so it is forgotten as soon as it is read. We wanted a ritual first, even a few seconds long: look straight in so the mirror “sees” you, breathe on the glass, then wipe the mist yourself. The words appear exactly where your finger passed, so the prophecy feels like yours.

Start screen on a phone
Start: tap Gaze into the mirror to use the front camera, or Obsidian mirror if you would rather keep the camera off.

The mirror must see you first

When you choose to gaze in, the front camera appears inside the bronze frame, desaturated and rippling like water, with a blood-red ghost lagging a beat behind you. You can only breathe once the mirror sees someone in front of it. It uses the browser’s face detection where available and an on-device skin-tone check otherwise. Everything runs on your phone, and no image is ever sent anywhere. If you would rather not use the camera, the obsidian mirror gives you the full experience.

Obsidian mirror without the camera
No camera needed: the glass becomes obsidian with jade smoke swirling inside.

Breathe, wipe, read

Pick one of five realms (Today, Love, Career, Fortune, Wellbeing), ask silently or type a question, then hold the breathe button. If you like, tap 🌬 and actually blow into the mic. Mist covers the glass. Wipe it with your finger: it clears along your stroke, the words appear mirrored, flip around to be readable, and each letter drifts up out of the smoke.

The glass fogged after breathing
After holding the breathe button (or blowing into the mic), the glass is covered in thick mist.
Wiping the mist with a finger
Wipe with your finger: the mist clears where you touch and letters rise out of the smoke. The bar shows how much is wiped.

The mirror does not lie twice

Each prophecy is assembled from a hand-written corpus: an invocation, an omen, a realm message, advice and four lucky signs (colour, number, one of the 12 traditional hours, direction). The combination depends on the date, the realm and your question. Ask the same thing on the same day and the mirror says “The mirror does not lie twice” and gives back the same words. It also avoids repeating lines you have received recently. The moon phase is computed from the date, so full-moon nights are a spirit hour with rare prophecies about the Moon Lady and Cuội, marked ✦.

Full prophecy on a phone
The full prophecy with four lucky signs, the share-card button and the entertainment-only note.
Cái Gương on desktop: a prophecy inside the bronze mirror
A freshly revealed prophecy: invocation, omen, message and advice inside the glass, with lucky colour, number, hour and direction on the right, a glowing ring of Hán-Nôm glyphs and four candles.

Write it down, then see if it came true

Every prophecy goes into the Book of Prophecies. A few days later you open it and mark “Came true? Yes / Not yet”. The book counts how many came true and your daily streak. Data stays in your browser; to change devices, export a JSON backup and import it. To show off, Create share card gives you a PNG of the mirror exactly as it looks.

Prophecy journal with the Came true buttons
The journal: every prophecy received, how many came true and your daily streak. Each entry has Came true? Yes / Not yet and delete; backup export/import sits below.
Prophecy share card PNG
The 1080×1350 share card uses the mirror exactly as rendered, plus the prophecy and lucky signs. Share it directly or download the PNG.

Making it haunting

The first version looked cheap, so we rebuilt all the visuals in WebGL. The background is a near-black void with blood-red and jade smoke drifting slowly. The breath fog is its own layer that your finger can wipe away. A ring of Hán-Nôm glyphs (鏡, 靈, 魂, 夢, 月…) orbits the mirror and glows when it sees you. Candle embers and spirit wisps rise, and a thin layer of smoke drifts in front of everything. Four candles light one by one during the intro. Sound is synthesized on the device too: a low drone, wind, ringing chimes and distant whispers. On slower phones the app turns effects down on its own to stay smooth.

Try it

  1. Open the app on a phone or computer. Use “Add to Home screen” to install it like an app.
  2. Watch the intro or tap to skip.
  3. Tap Gaze into the mirror and allow the camera, or choose Obsidian mirror to play without it.
  4. Look straight into the glass. When the mirror sees you, its rim lights up. After about 8 seconds it carries on even if it cannot see your face clearly.
  5. Pick a realm: Today, Love, Career, Fortune or Wellbeing.
  6. Ask silently, or type your question (optional).
  7. Hold Hold to breathe on the glass until the bar fills, or tap 🌬 and blow gently into the mic.
  8. Wipe the mist with your finger (or mouse). The more you wipe, the more words appear.
  9. Read the prophecy and the four lucky signs. It is saved to your journal automatically.
  10. Tap Create share card for a PNG, or Ask again for another question.
  11. A few days later, open the 📜 journal and mark Came true?.
English interface
Switch to English in Settings; even older prophecies in the journal are shown in the chosen language.

Privacy: camera frames are processed only on your device, to draw the reflection and check that someone is in front of the mirror. No photo or video is ever uploaded. No accounts, no cloud, no tracking ads. Your journal lives in your browser; to move devices, use Export backup to a JSON file and Import backup on the new one.

For entertainment only: the prophecies are hand-written lines combined by date and question. They are not medical, financial or legal advice. Health and money lines are deliberately gentle and make no claims; one even says “ask a physician, not a mirror”.

Open Cái Gương; it is free with no sign-up. Source at github.com/gooduselabs/cai-guong. The full feature list is on the Cái Gương product page.