DreamScape

Tell your phone a dream when you wake. 0G paints it in private and hangs it on a wall you own.

DreamScape

Created At

ETHGlobal Mumbai

Project Description

You wake up from a vivid dream, and by breakfast it's gone. Dreamscape keeps it.

Each morning your phone nudges you. Hold the gold button and say the dream, or type one line, and pick how it felt. That's the whole habit: ten seconds. A few minutes later it hangs on your wall as a painting, with your voice kept beside it. 0G Private Computer hears it, reads its themes and paints it, all sealed, and your own iAI credit pays once you sign in with your 0G account.

Your 0G credit resets at midnight UTC, and whatever is left expires. So three hours before, Dreamscape spends it on three pieces: a poster of your week's sky, a four-panel comic of your newest dream, and a moving portrait. They wait in Drafts for your yes. Each morning lights a star, the month fills in like a calendar, and a sealed Morning Note compares your week with what most people dream.

Everything you keep is yours, and you can check it. Each dream is stored encrypted on 0G Storage and anchored on 0G Chain. Your gallery is an ENS name, yourname.dream-scape.eth, and each day is a name under it that points at that day's dream. Sell numbered editions of a piece for USDC: each edition is an ENS name the buyer owns, listed on Arkiv so anyone can search by theme, and they can give it to a friend. Share your whole gallery with a pass, an ENS name minted to a friend, who knocks and gets in for ten minutes or an hour.

Without 0G, Dreamscape can't hear, read or paint a dream in private, keep it encrypted, or pay for tonight's art, so the dream is forgotten by breakfast and the credit expires at midnight.

Live at dreamscape.hacklabs.in, with an Android app. Every receipt: dreamscape.hacklabs.in/proof.html

How it's Made

Dreamscape is a Next.js 16 app (React 19, Tailwind v4) with a SQLite store (node:sqlite) and a worker that runs every model call, upload and transaction as a retried job. The Android app is a Capacitor 8 shell around the live site that adds the microphone permission and a morning reminder the phone schedules itself (@capacitor/local-notifications).

0G Private Computer. Every call goes through router-api.0g.ai/v1, OpenAI-compatible, with the trust mode set to private, so a sealed provider runs it or it waits. whisper-large-v3 transcribes the voice note, 0gm-1.0-35b-a3b reads the themes and titles the dream, z-image-turbo paints it with verify_tee, tencent/hy-image-3.5-preview draws the comic panels from reference images so the hero looks the same in every panel, and bytedance/seedance-2.0 animates the moving portrait. Each step keeps its x_0g_trace request ID, TEE result, cost and who paid, shown under "How it was made" on every piece. When providers went down during the event, each job fell back to an ordered list of backup models, and the piece says which one stood in.

Sign in with 0G. The sign-in uses 0G's own Privy app. The server checks the token with jose against Privy's JWKS, trades it at /v1/auth/privy for a router session, and creates a scoped key on the dreamer's own account (POST /v1/api-keys, with a daily credit_limit), stored sealed. The 0G Pay SDK 0.4.0 reads the balance: telling one dream took it from $4.91 to $4.90, with the sealed reading at about $0.0001 and the sealed painting at about $0.009. 0G allows that sign-in only on localhost, so the live site signs in with the same wallet through our own wallet-only Privy app, and the key keeps paying. The nightly run starts at 21:00 UTC, three hours before the credit resets, inside a $1 daily budget.

0G Storage and Chain. Each dream record and painting is encrypted with AES-256-GCM under a per-dreamer key (HKDF from the server's master key) and uploaded with @0gfoundation/0g-storage-ts-sdk 1.2.13. DreamRegistry, our Solidity contract on 0G Galileo, anchors each dream's storage roots.

ENS v2 on Sepolia. dream-scape.eth has its own DreamscapeRegistry. Each gallery, name.dream-scape.eth, is registered to the dreamer's wallet with its own resolver. Day names like 2026-11-06.name.dream-scape.eth are answered by that resolver's wildcard text records (dreamscape.root, date, scope), written by a scribe key whose roles allow only those keys, and read through the Universal Resolver. Editions are names in each gallery's editions registry, minted by our NightMarket contract, so they move between wallets as ERC-1155 transfers. Passes are names in a passes registry, minted to the friend.

NightMarket and Arkiv. NightMarket takes Circle's USDC, sends 95% to the dreamer and 5% to a commons fund, and mints the edition. Listings, vendor stalls, knocks and timed visits are Arkiv entities on Rabdi (SDK 1.0.1), so the market is searchable by theme, kind and price without our server.

Image models garble text, so comic panels come back with no words, and the app letters the page itself.

Tested on anvil forks of Sepolia against the real ENS contracts, NightMarket and USDC (names, sales, passes, commissions), and on a local Arkiv node.

background image mobile

Join the mailing list

Get the latest news and updates

DreamScape | ETHGlobal