-
-
On the website: explain it back in your own words, and the Architect grades what you covered.
-
What the headset understands: labelled planes (blue) and furniture (orange), before any stage lands. Emulator capture.
-
Asked in the headset: how does compound interest work? Four stages land on the table, couch, TV unit and screen.
-
No headset? The website is a palace too: a room drawn in light, with a stage and its myth check on each object.
-
Pinch a stage to open it: the claim, why it’s true, an AI double-check badge, and the next stage.
-
The heart walk in the living room, with stages joined in causal order. Walking the room is walking the mechanism.
-
Same walk, new room: a bedroom. Furniture first, then walls, then a seated arc.
-
No hands at all: hold your gaze and the ring fills to open the stage. 11 of 11 hands-off checks passed.
-
20 live topics on two clouds, and both answered every one. Median: 2.8 s on the main cloud, 4.0 s on the backup.
-
The next day: every stage is back on its object, and 5 are glowing, ready to recall. (Emulator, dates moved back a day.)
-
Recall becomes a myth check: one truth, one common misconception. Pinch the true one.
-
Right answer, so the thread from that stage lights up.
-
No headset, so I built a film rig inside the emulator: 3,220 frames across 20 takes, 0 AI-generated.
-
Spaced repetition per stage: only the stages you’re about to forget glow “due today”.
-
Stress test: 1,000 random rooms and 9,037 placements. Every stage was placed, none ended up behind you, and there were 0 collisions.
Inspiration
Memory champions don't have better brains. They have better rooms.
The method of loci is 2,500 years old: put each idea in a place, then walk the place to remember it. 9 of the 10 champions scanned in a 2003 study used it. Regular people went from 26 to 62 of 72 words after 40 days of practice. The brain's own GPS (place cells, grid cells) won a Nobel Prize in 2014.
For 2,500 years there was one catch: you had to imagine the palace.
Your headset already knows where your couch is. So we stopped imagining.
What it does
Ask how anything works. Loci moves the answer into your living room.
- Ask anything, or paste your notes. The Palace Architect turns it into 4 to 7 linked stages. Each one has the claim, why it's true, the link to the next one, and the myth everyone believes.
- Your furniture becomes the diagram. The left atrium lives on your couch. Valves keep things one-way on your TV. A gold thread joins it all in causal order, so walking the room is walking the mechanism.
- It quizzes you instead of lecturing you. Recall turns each stage into a myth check: one truth, one misconception your teacher would wince at. Pinch the true one and the thread lights up.
- Rebuild the chain. The lights go out and the numbers disappear. Put cause and effect back together, one pinch at a time.
- It checks its own homework. A second AI pass caught 6 of 8 errors we planted, on the right stage, with zero false alarms on shipped concepts. The badge says double-checked, not gospel. We're honest like that.
- It knows when you're about to forget. Spaced repetition (FSRS) schedules every stage on its own, and persistent anchors keep each stage glued to the same furniture overnight. Tomorrow, only the stages you're about to lose are glowing at you.
- No controllers. No hands, if that's what you need. Look to select runs the entire loop with zero hands (11 of 11 checks). On glasses, your eyes aim and either hand selects (9 of 9). It's seated by design, with read-aloud, high contrast, big tiles and calm motion.
- No headset? The website is a palace too. A real answer in about 4 seconds, a room drawn in light, and an Architect that grades you when you explain it back.
How we built it
Solo. First-year student. Headsets owned: zero.
I built a mixed-reality app without ever putting on mixed reality. Every feature was built, tested and filmed inside the Immersive Web Emulator, from scratch. When you can't feel it, you have to prove it, so here's the proof:
- IWSDK (WebXR, Three.js and ECS): semantic planes and meshes, persistent anchors, hand tracking, gaze, spatial audio and UIKitML panels.
- A placement solver that has seen things. We threw 1,000 random rooms at it: 9,037 stages placed, spacing held, nothing behind you, 0 collisions. Including 86 rooms with no furniture at all, which is a very sad apartment.
- The Palace Architect agent: a hedged model chain (a fast model, a bigger one if it dawdles, a backup on a whole other cloud), schema-locked JSON, and rule-based vetting of every line. 20 of 20 live topics passed on the main cloud (median 2.8 s) and on the backup alone (median 4.0 s). It's never stuck waiting.
- Receipts, not vibes: 109 unit tests and emulator runs driven from the CLI.
- 3 pinches from a fresh install to your first stage (6/6)
- the next-day return (8/8)
- hands-off gaze (11/11)
- all 8 synthetic rooms, 15 checks each
- A film studio inside an emulator. You can't screen-record a headset you don't own. So I built a camera rig inside the emulator: pause the app, step it exactly 1/30 s, paint the room underneath, save the frame, repeat. At about 1.6 s per frame, that's 3,220 frames across 20 takes for 107 seconds of footage. 0 AI-generated frames. It's basically stop-motion, if stop-motion was done by a for-loop.
Technical deep dive
- ECS architecture. Loci's features are separate IWSDK systems: placement, recall, myth check, thread, surface traces, chain practice, onboarding and access. They talk through queries, not shared arrays. Nothing is allocated per frame: buffers are created in
init(), and a unit test asserts that the hand-sample buffer never allocates. - Placement solver (`src/core/placement.ts). It scores every labelled plane and mesh by semantic label, usable size, distance and seated comfort, then assigns stages in walk order under three hard constraints:
- a minimum spacing between stages;
- within 70° of forward, never behind you;
- heights inside the comfort limits.
When there are no surfaces, it falls back to a seated arc: furniture tops first, then walls, then the arc.
- Persistence chain. Each stage restores from its persistent anchor. If the room has changed, a semantic check notices (the couch isn't a couch any more) and re-fits that stage, not the whole palace.
- The thread. One ribbon mesh and one draw call for the entire chain. Per-stage segments relight when you answer correctly, through shader uniforms, not new geometry.
- Recall engine. ts-fsrs schedules each stage on its own. A stage you miss twice is sent back to the Architect for a brand-new picture built around the object it sits on.
- The Architect pipeline. It's a serverless agent:
- a schema-locked JSON plan;
- a hedged chain: if the fast model hasn't answered in 2.5 s, a larger model races it, and a second cloud is the last resort;
- a second fact-check pass over every stage;
- rule-based vetting for brands, real people and unsafe content.
A negation-aware check also rejects any "myth" whose words just restate the fact.
- Input. Every action (open, answer, rebuild, type) goes through one press path that pinch, gaze and pinch on glasses, and dwell-to-select all feed. That's why hands-off mode covers 100% of the loop, not just the menus.
- Test harness.
- 109 vitest tests, including the 1,000-room seeded property test.
- End-to-end flows run in the Immersive Web Emulator, driven from the IWSDK CLI: storage cleared, real pinches and gaze, assertions on ECS state.
- The next-day test literally moves every saved FSRS date back one day and re-enters the session.
- Frame-stepped capture.
world.updateis wrapped so it advances only when armed, at a fixed 1/30 s step. The renderer's own draws are skipped, the emulator's room canvas is composited under the app canvas, and each frame is saved as a JPEG. That makes playback true speed, even though each frame took about 1.6 s to render.
Challenges we ran into
- The headset-shaped hole. No Quest means no "try it and see". Every "does this feel right?" had to become a test that passes or fails.
- Filming the unfilmable. At emulator speed, screen-recording gives you a slideshow. Hence the rig, and a lot of renders that ran past midnight.
- Text you can read from the couch. Paragraph cards died on day one. Stages became one-headline labels that open on a pinch.
- Honest myths. A myth that's secretly true is worse than no myth. The Architect asks for misconceptions teachers actually correct, and a rule check bins any myth that just restates the fact.
Accomplishments that we're proud of
- A learning loop where the room is the content: real furniture, a causal thread, myth checks, rebuilding the chain, and coming back right before you'd forget.
- The day after works: every stage back on its object, the due ones awake.
- 1,000 rooms. 20 live topics. 2 clouds. 109 tests. 8 of 8 rooms. 0 AI frames. Every number in the video comes from a real run in the repo.
- Shipping the app, its accessibility paths, its test suite and its demo video, solo, without a headset.
What we learned
- Mixed reality is at its best when your actual room is the content, not the wallpaper.
- "Understand how it works" beats "memorise this" every single time.
- If you can't test by feel, test by proof. An emulator and a CLI make an absurdly good lab.
What's next for LOCI
- Get a Quest on my head, and tune Loci in rooms I've never seen.
- Shared palaces for a class or a team.
- Voice questions in the headset.
- Teacher-made walks that drop into any room.
Your room remembers. Now it can teach, too.
Built With
- amazon-bedrock
- gemini
- hand-tracking
- immersive-web-emulator
- iwsdk
- mixed-reality
- three.js
- ts-fsrs
- typescript
- vercel
- vite
- vitest
- webxr
- zod