Inspiration
What it does
How we built it
Challenges we ran into
Accomplishments that we're proud of
Inspiration
The method of loci is an old memory technique: you attach each thing to remember to a place, then recall it by going through those places in order. Spaced repetition is another: you review a card just before you would forget it. Flashcard apps do the second on a flat screen, where every card looks the same. A headset with passthrough can do the first literally, in your own room. Loci combines the two and needs only your hands.
What it does
Open a web page and press Enter. A pile of cards appears in front of you. Pinch the top card, carry it, release: it is pinned there as the next stop on a route. In Place mode each card shows both sides, so you study while you pin.
In Walk mode the cards show only the question. Pinch the next stop to flip it, then press "Knew it" or "Not yet". A five-box Leitner schedule sets the next review: 1, 2, 4, 8 or 16 days. A card you miss goes back to box 1. The Today screen shows cards due and your day streak.
Because each card stays where you pinned it, the route itself becomes the cue: walk it, and each place prompts the next card. One round Menu disc reaches Place, Walk, Decks and Recenter. Built-in decks include the Greek alphabet.
Bring your own cards: decks.html turns lines of question ; answer into a link that carries the deck, up to 12 cards. A JSON file loads with ?deck=<url>. Progress is saved in localStorage.
How we built it
Plain three.js and the WebXR Device API, chosen over IWSDK for a small page with no build step. The session asks for immersive-ar first, then immersive-vr, with local-floor, hand-tracking and anchors as optional features. The pinch reads the thumb and index tip joints; buttons also respond to an index-tip touch. A card can be taken three ways: direct pinch near it, ray and pinch from a distance (pulling the hand back reels the card in), or a controller trigger.
Tests: 13 unit tests for scheduling and saved data (node --test), and an end-to-end Playwright scenario driven by Meta's iwer emulator with a simulated Quest 3 and hands.
Challenges
No headset was used during development. Every hand interaction (pin, walk, flip, grade) is exercised end to end by a Playwright test on Meta's IWER emulator with simulated Quest 3 hands, plus 13 unit tests on scheduling. Measured in the emulator with 12 pinned cards: 38 draw calls, 384 triangles and 0.8 ms of JavaScript per frame on a desktop CPU. Not measured: frame rate and real pinch distances on a Quest. A code review found that a palm menu shares its pose with the Quest system gesture, so the menu now opens on the back of the wrist, and the Menu disc stays the main entry point.
What's next
First on the list: a Quest 3 session, with measured frame rate and pinch distances, then fixes. Persistent anchors, so the palace stays where you left it between sessions.
AI disclosure
Loci's idea, code, tests, this text and the on-screen text of the video were generated by Claude, an AI model by Anthropic, working as a coding agent. The entrant set up the accounts and is responsible for the entry, but did not write or review the code. The video is a screen capture of the running app in Meta's IWER emulator, played 15 % faster; no AI-generated images, video or voice are used.
Hand interactions
Hands are the default input. Each frame Loci reads the thumb-tip and index-finger-tip joints of every tracked hand. Bringing them together is a pinch: near a card it grabs that card, at a distance it uses a ray from the hand, and pulling the hand back while holding brings the card closer. Buttons respond to the pinch or to a touch of the index tip. The Menu disc sits low on the left and can be pinched or poked with either hand. In VR mode the hand joints are drawn as small dots; in passthrough nothing is drawn, since you see your own hands. Controllers work too but are never required.
What excites us: a room you already know is a better memory aid than any screen, and a headset that sees your hands can turn that room into the interface.
Testing instructions for judges
- On the Quest, open the project URL (HTTPS) in the Meta Quest Browser. Hands only; controllers are not needed.
- Press Enter. Accept the hand-tracking prompt. Passthrough starts if the browser grants
immersive-ar; otherwise you get a grid floor in VR. - Pin a card: pinch the top card of the pile (thumb and index), move your hand, release. Repeat for a few cards. You can also aim at a distant card, pinch, and pull your hand back to reel it in.
- Open the menu: pinch or poke the round Menu disc, low on your left. Choose Walk.
- Review: pinch a numbered stop to see the answer, then pinch Knew it or Not yet.
- Come back: choose Menu > Exit, then reload the page with
?dayOffset=2added to the URL. The start page shows the cards that are due. - If the cards are not where you expect, use Menu > Recenter palace.
- Optional: Menu > Decks to change deck, reach (near, normal, far) and menu hand. Open
decks.htmlto make your own deck.
Without a headset: open the same URL on a desktop browser and press Enter for the mouse demo (drag a card to pin it, drag empty space to look around, wheel changes distance).
To run the tests: npm install, then node --test tests/srs.test.mjs and node tests/e2e.mjs (needs Playwright with Chromium).
Links
- Try it (WebXR, HTTPS): https://jcherius2.github.io/loci/
- Code (MIT): https://github.com/jcherius2/loci
- Video: https://youtu.be/TXM2AtYZ-Tk
What we learned
What's next for Loci
Built With
- claude
- css
- html
- javascript
- playwright
- three.js
- web-audio-api
- webxr