Skip to content
LeahiePublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Ithaca

Live in a home before you buy it. Ithaca holds a digital twin of a house and lets a buyer, and their family, find out what living there would be like:

  • Walk through it: every room at eye height, rebuilt from the scan and the floor plan, with the outside of the house and the block around it.
  • Watch the sun: any day of the year, any hour, with real shadows from the neighbours' houses and trees; sun hours per room.
  • Hear it: the highway, the street, birds and frogs by hour and season; windows open or closed, carpet or not; a TV placed in one room, heard from another.
  • Know the neighbourhood: the listing next to comparable homes, and what is nearby.
  • Bring your own room: one photo of the bedroom you live in now, and everything of yours in it (the furniture, the lamps, the plants, the pictures on the wall) is cut out, rebuilt in 3D and set up in a bedroom of this house: the lamp on its desk, the picture on a wall.
  • Move your furniture in: photograph a piece and it is rebuilt in 3D at its real size, or furnish a room from a catalog of 160 pieces in matching sets and nine looks (farmhouse, industrial, coastal, glam…); arrange rooms by hand (mouse, phone, or your hands in front of the webcam), or keep a layout the guide proposes.
  • Bring the family: one QR code on the big screen. Each person's phone becomes a remote with its own guide, which keeps its own memory of that person between visits. All the guides read one register of the house's furniture (every piece has a number, a room, and who put it there), so they agree on what stands where. When a guide asks you to choose, the options pop up on your phone as pictures to tap.

It is one web app (apps/web, Next.js) on one API (services/api, FastAPI): the twin and its simulations, the guide (an LLM agent with tools and per-person memory), the session hub that keeps the big screen, the phones and the guides in step, and the photo-to-furniture pipeline.

Run it

pnpm install
cp .env.example .env         # then add keys: see below
pnpm dev:all                 # everything: API on :8000, web on :3000, and a tunnel for phones

Open http://localhost:3000, then Step inside. To connect phones, press Family on the house page and scan the code.

pnpm dev:all (scripts/dev.sh) is the one command. It starts the API and the web app, fetches what a fresh checkout lacks (the Git LFS files: the house model and the furniture pictures), and opens a Cloudflare quick tunnel so the QR code points at a public HTTPS address. That address works from any network (a firewall here, eduroam and venue Wi-Fi keep phones from reaching a laptop directly) and lets a phone use its microphone. Anyone who has the address can reach the app while it runs.

  • The tunnel needs cloudflared. Without it, or if the tunnel does not open, the app still starts for phones on the same Wi-Fi, and the script says what is missing.
  • pnpm dev:all:local runs with no tunnel; pnpm dev:all:tunnel stops if the tunnel cannot open.
  • On Windows: pnpm dev:win (no tunnel) or pnpm dev:tunnel.

Keys in .env (each is optional; a missing key turns that part down, never the app off):

Key Without it
ANTHROPIC_API_KEY (or OPENROUTER_API_KEY) The guide is a scripted stand-in
DEEPGRAM_API_KEY Speech uses the browser's own voice and recognition
FAL_KEY A photo becomes a ready-made catalog model of that kind of piece, not a 3D model of yours; a room photo gives stand-ins the same way
MATTERPORT_*, VEXCEL_API_KEY The committed twin is used as it is; no re-ingestion, no scan photos

Offline, with no API at all: set NEXT_PUBLIC_USE_FIXTURES=1 in apps/web/.env.local and run pnpm dev. Every view runs from fixtures/, with a scripted guide.

With Docker: docker compose up (web, API, Postgres, Redis, S3 storage).

Where things are

Path What
apps/web The site: front page, house page, phone remote, /me. See its README
services/api The API: twin/ and sim/ (sun, daylight, noise, layout solver), agent/, realtime/ (hub, households), objects/ (photo to furniture), furniture/
packages/schema Shared types: pydantic models, with generated TypeScript
fixtures The committed twin, reports and 3D assets for one house
docs Design language (style.md), the furniture rules (specs/furniture.md), cross-team notes

PLAN.md is the original plan; WORKSTREAMS.md is the contract between the three workstreams.

Checks

pnpm typecheck
pnpm test
pnpm schema:check     # generated TypeScript types match the pydantic models (needs uv)

Sun, sound and layout figures are simulations from the scan and public data: estimates, not measurements.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages