Browser app for planning the new house: rooms with photos and notes, wall and floor colors, doors and windows, and a catalog of your own furniture and lights that you place into rooms. 2D plan plus live 3D view with day and evening lighting.
For the existing personal workspace, serve the repository folder locally:
python3 -m http.server 8000 # then open http://localhost:8000three.js and the font load from a CDN, so the first load needs internet. The 3D models, materials and textures are generated in models3d.js; nothing else is downloaded.
GitHub Pages provides a static build at https://jappelbaum20.github.io/HomePlanner/. Account storage and server editing require the full hosted backend. See Hosting.
Open Bookshelf builder in the top bar. Choose Office or Living room, then a wall. Wall lengths, ceiling height, windows and doors come from your current plan. The offset is from the left corner on north/south walls and the top corner on east/west walls, as in the floor plan.
The SÆTTER 3 tab starts an editable walnut-colored approximation of the SÆTTER 3, alongside the existing custom builder. The referenced overall size is 45.5 × 40.6 × 10.5 cm and the nominal compartments are 10 × 12 × 10 cm. Board thickness (1.1 cm), back thickness (0.5 cm), separator height (3 cm), joinery and hardware are inferred; the modeled clear height starts at approximately 12.07 cm. Edits, saved pieces, placement, drawing and exports use the same approximate geometry. Each tab keeps its own draft when switching and after reload.
Start with Framed, Staggered, or Stepped edges. Change overall dimensions and board thickness, select a shelf in the front drawing or 3D preview, then edit its underside height and independent left/right endpoints. Add/remove shelves and dividers; divider centres can be entered precisely or dragged in the drawing. New dividers go into free space. Bottom/top heights follow the overall height setting. Keyboard focus stays in the form as you edit; the camera follows size and placement changes. Undo keeps the last 50 edits during the current builder session. Valid draft inputs autosave while typing, including when reloading before leaving a field.
Save design creates or updates a custom shelf in My pieces and remembers the chosen room, wall and offsets. Save & place on wall places it at the specified wall offset, gap and floor elevation; editing a placed shelf can move that same placement between rooms. Reopening a saved design selects its existing placement in the current room (or its sole placement), so placing again moves that item. Place in My pieces starts an additional placement. Existing placements share the saved board design. Use Make a copy for an independent variant. Back in the room, drag/rotate it like other furniture, or select Edit bookshelf to return to the builder. The builder blocks placement past the room bounds, through openings/radiator zones, into door swings or overlapping furniture. Designs may still be saved while choosing a different placement. Explicit saves write synchronously; storage failures show Not saved, explain that changes last only for the session, and leave exports available.
The orbitable 3D preview and room model use the same explicit board geometry as the front elevation and cut list. Export CSV (individual square-cut boards and assembly X/Y positions in mm), build-plan HTML (labelled front elevation and dimension table; print/save as PDF), or design JSON (editable design and target in cm). Saved designs and the draft survive reload, named versions and full-plan backup import/export. Saves are per browser; use Export backup to move between devices. Design JSON is an archival export; restore the full-plan backup to bring designs into another browser.
Construction assumptions for custom shelves: full-depth square-cut boards, vertical dividers butt-jointed between horizontal shelves, no back panel. The SÆTTER approximation instead includes a back and paired short separators. Lengths exclude saw kerf, joinery and machining allowances. Verify the real wall, timber thickness, fasteners, sag, stability and wall anchoring before construction; the app does not calculate load capacity. Geometry validation rejects detached/overlapping dividers and invalid board sizes; span/overhang notices are prompts for review.
shelfDesign is stored on shelf pieces and placements: { version: 1, width, height, depth, thickness, levels: [{ y, left, right, dividers: [centreX, ...] }] }, all in cm, front-view coordinates. SÆTTER designs also carry template: 'saetter3', separatorHeight and backThickness. y is a shelf underside; bottom starts at 0 and the top underside is height - thickness. Dividers belong to the bay above each shelf. bookshelf.js defines normalization, geometry, fit and validation; bookshelf-builder.js owns the editor. Run the geometry checks with node --test tests/bookshelf.test.cjs.
Browser regression checks use Playwright CLI and a dedicated test session; the acceptance script resets that test session's plan. Serve the repository on http://127.0.0.1:8765, then run:
npx --yes --package @playwright/cli playwright-cli -s=bookshelf-test open http://127.0.0.1:8765 --browser chrome
npx --yes --package @playwright/cli playwright-cli -s=bookshelf-test run-code --filename tests/bookshelf.browser.js
npx --yes --package @playwright/cli playwright-cli -s=bookshelf-test run-code --filename tests/bookshelf.saving.browser.js
npx --yes --package @playwright/cli playwright-cli -s=bookshelf-test run-code --filename tests/bookshelf.saetter.browser.jsThe acceptance script covers editing, resizing, keyboard focus, additions/removals, dragging, validation, remembered walls, immediate saving/reload, independent copies, moving between rooms, exports, print layout, phone width, measured 3D board dimensions, named-version creation and backup export. Saving checks simulate full storage, verify clear failure/recovery feedback, confirm no cumulative resize drift, and leave a named snapshot available for a manual restore check. Both scripts fail on unsuccessful assertions. Repeat acceptance with a separate --browser msedge session. Run tests/bookshelf.fallback.browser.js in another dedicated Chrome session to verify drawing, saving and exports when the 3D CDN is unavailable. Generated files remain under ignored output/playwright/.
For persistence acceptance, restore the named snapshot from Save and versions, and import the generated acceptance-backup.json into the test session. Compare the draft, saved designs (including shelfTarget) and placed items field-by-field; object property order may change during normalization. Restoring/importing closes the old builder draft before reopening the restored one.
- New room: name, floor or level, sizes (optional), photos, notes.
- Model it with Claude: send the photos and sizes in chat. Claude replies with a data block.
- Claude handoff, then Add to plan: paste the block. Rooms and pieces with an existing id are updated, new ones are added. A version is saved automatically first.
- My pieces: add furniture and lights you own or are considering (photos, size, color, status, link). Place a piece in any room; editing it updates every placement.
- Tweak on the plan: drag, rotate, recolor walls, switch rooms from the top bar.
- Save: autosaves in the browser. Save named versions (for example "Sage living room"), and export a backup file (includes photos) to keep a copy or move computers.
To send the current state back to Claude, use Claude handoff, then Copy this room or Copy whole plan, and paste it into the chat.
{
"rooms": [{
"id": "living", "name": "Living room", "level": "Ground floor",
"width": 520, "length": 430, "height": 260,
"floor": "#D6BA8E", "floorFinish": "wood",
"walls": { "n": "#F4F3EF", "e": "#B4BFA6", "s": "#F4F3EF", "w": "#F4F3EF" },
"notes": "",
"openings": [
{ "type": "window", "wall": "n", "offset": 170, "width": 200, "height": 140, "sill": 80 },
{ "type": "door", "wall": "s", "offset": 40, "width": 90, "height": 205 }
],
"items": [
{ "catalogId": "sofa-grey", "x": 50, "y": 225, "rot": 90 },
{ "type": "pendant", "name": "Pendant", "x": 260, "y": 225, "w": 45, "d": 45, "h": 30, "elev": 200, "kelvin": 2700, "power": "bright" }
]
}],
"catalog": [
{ "id": "sofa-grey", "type": "sofa", "name": "Grey linen sofa", "w": 220, "d": 95, "h": 85, "color": "#6F7C8A", "status": "own" }
]
}- Plan orientation:
widthruns left to right,lengthtop to bottom. Wallsntop,eright,sbottom,wleft. - Opening
offset: from the top corner on side walls, the left corner on top and bottom walls. - Item
x,y: center point from the top-left interior corner.rot: degrees clockwise.elev: underside height above the floor. - Items with
catalogIdtake size, color and name from the catalog piece. - Furniture types: sofa, cornersofa, armchair, chair, art, table, roundtable, desk, bed, cabinet, shelf, wardrobe, counter, appliance, rug, plant, bath, shower, vanity, toilet, stairs, potrack, box.
- Light types: ceiling, pendant, spot, sconce, floorlamp, tablelamp.
kelvin: 2200, 2700, 3000, 4000.power: soft, medium, bright. - Piece
status: own, considering, ordered. - Room
floorFinish: parquet, wood, marble, stone, tile, concrete, terrazzo, carpet, plain (default parquet). Sets the floor texture in 3D. - Room
wallFinish: per wall (n,e,s,w), one of paint, panelling, oakpanels, marble, tiles (default paint). - Window
radiator: true draws a panel radiator under it (default true when the sill is 50 cm or higher). Doorcolor: door leaf color. Doorhinge: start (default, the hinge at the opening'soffsetend) or end (hinged at the far end). cornersofaitems and pieces takeside: right or left (chaise side seen from the front). Beds:hup to 80 is the mattress top; above 80 it is the headboard height.- Pieces listed in
window.HOUSE_PIECESinhouse-data.jsare added to My pieces once. Deleting one in the app keeps it out. A higherrevon a piece pushes a changed size or look to browsers that already have it. window.HOUSE_PLACEMENTSplaces a piece once in a room: the room with a matching name (for example Office, Büro), else a starter room fromwindow.HOUSE_ROOMS. A deleted starter room is not recreated.- Shelf items and pieces take
doors(none, lower, full; woven bamboo HÖGADAL style) andbooks(true or false). - Built-in fittings (placements with
builtin: true) are enforced fromhouse-data.json every load and locked; the house's own doors and windows are locked too. Rooms cannot be added or deleted in the app. - Artwork:
type: "art",wandh= picture size,d= depth,elev= bottom edge height,frame(black, white, oak, brass, none),mat(true or false). It hangs on the wall it is nearest to and faces into the room. Pictures are uploaded in the app and stay in the browser (and backups). - Default rooms: Haus 53, sized from the architect plans (BF areas) and checked against the Giraffe360 tour: Laundry and cellar, Boiler room (basement); Entrance hall, Living room, Kitchen (ground floor); Landing, Office, Second bedroom, Bathroom (first floor); Attic landing, Bedroom, En-suite bathroom (attic). Defined in
HOUSE_ROOMSwithensure: true; a deleted default room is not recreated. A higherrevwithresize: truepushes corrected sizes, doors and windows to browsers that already have the room. stylepicks a specific model: deskstanding(FlexiSpot style), cabinetfjallbo, floorlamphektar.- Counter
style: fitted (kitchen run), hestia, pattburg, vadholma, vadholmarack (worktop at 90,h= rack top), metod3 or metod4 (a run of IKEA METOD/MAXIMERA drawer cabinets with an oak top and brass handles; over 120 cm high it becomes a high cabinet with doors over drawers). - Copper pot racks:
type: "potrack"withstylerail, ladder or curved (hung from the ceiling) or wall (a rail on wall brackets, back against the wall).hruns from the lowest pan up to the ceiling (ceiling racks, rail 20 cm below it) or up to the rail (wall). Ceiling racks default to hanging from the ceiling; wall rails default toelev110. Drawn with sample copper and cast-iron pans. - Photos are never part of the handoff; they stay in the browser and in backup files.
Plan data lives in localStorage; photos and versions in IndexedDB, both per browser and per address (file:// and http://localhost:8000 are separate). Photos are downscaled to 1600 px JPEG on import. iPhone HEIC photos open in Safari; on other browsers, export them as JPEG first.
Drag on the plan (5 cm snap). Tap a wall to target it for color swatches. R rotate 90°, Shift+R rotate -15°, arrows nudge 5 cm (Shift 25 cm), Delete remove, Esc deselect. Dashed red outline: overlaps another item or extends past a wall or the ceiling.