Skip to content

ShowcasedPath twoGames & creative

Oniria

Lets DEV readers browse live articles as books in a walkable 3D library of six rooms.

by Mika Flowers

What it does

A reader walks to a shelf, picks a book, and opens a DEV article.

Visitors move through six rooms: Featured, New Arrivals, Topics, Creators, Search and Archive. Each book is a real DEV article; opening it shows the article, and closing it returns the reader to the same spot on the shelf.

The Search room works as a card catalogue. A query restocks its shelves with matching articles, so results arrive as books in place rather than as a list.

The problem

Feeds make everything reachable but strip out place, distance and landmarks.

Feeds, grids and search pages put every article one click away, which also removes any sense of where things are or what sits nearby. Building a 3D alternative with coding agents raised its own problem: describing exact shelf positions through coordinates and screenshots took round after round of prompts, and agents often returned work that was technically valid but looked wrong.

What they built

Sanity holds the world's layout and memory; DEV holds the articles.

6 rooms and 6 primary schema types; article content stays in the DEV API rather than being copied in.

  • libraryConfig

    Global settings: welcome copy, movement defaults, atmosphere, haze, live DEV updates and archive behavior.

  • libraryDistrict

    One room's setup: title, room code, order, DEV tags, accent, audio profile, landmark and content source.

  • libraryLayoutMarker

    One position placed in-world: room slot, coordinates, rotation, width and depth.

  • librarySlotState

    A shelf slot's stable key, current topic, lifecycle stage, vitality, signal score and history.

  • curatedArticle

    A DEV article picked for featuring, referenced rather than duplicated.

  • archiveJourney

    An ordered set of destinations forming a guided path through the archive.

The stack

Live DEV content, Sanity world data, Three.js rendering.

  • Content Lake
  • Sanity Studio
  • next-sanity
  • Next.js 16
  • React 19
  • TypeScript
  • Three.js
  • DEV/Forem API
  • GLB assets
  • Vercel
  • Codex
  • ChatGPT

The hard part

Shelf positions persist in Sanity while the topics occupying them change.

Each shelf slot is a document with a fixed key, separate from whatever topic fills it. Every 30 minutes a scheduled route samples recent DEV activity, scores topics, moves slots between dormant, forming, active and cooling, and writes the state and history back to Sanity.

Positions come from an in-world authoring tool: the builder walks the scene, drops markers where shelves belong, and saves them as layout documents. That replaced prompting agents with coordinates.

More from path two

See the full showcase