Room Planner
v1.1.0Lay out a room to scale, check furniture, doors and clearances, and get a link to edit the plan.
A powerful, intuitive tool for planning room layouts with furniture, doors, and windows. Drag, drop, and arrange items to create your ideal space. Room Planner uses a focused two-step workflow: Configure the room shell before adding furniture:
Summary extracted from the README.
Room Planner
Design and visualize your perfect room layout
A powerful, intuitive tool for planning room layouts with furniture, doors, and windows. Drag, drop, and arrange items to create your ideal space.
β¨ Features
π Room Configuration
- Flexible Dimensions - Set room size in multiple unit systems (feet & inches, decimal feet, inches, meters, centimeters)
- Smart Input Parsing - Type dimensions naturally (e.g.,
12'6",150in,3.5m,350cm) - Floor Plans with Several Rooms - Add, name and drag rooms into place; walls snap and are shared, and a door on a shared wall connects two rooms
- Multiple Doors & Windows - Add unlimited doors and windows with customizable positions
- Door Types - Swing-in, swing-out, and sliding door options
πͺ Furniture Management
- Drag & Drop - Intuitive positioning with touch and mouse support
- Rotation - Rotate items using the handle, with 45Β° snap for precision
- Custom Sizing - Set exact width and depth for each piece
- Color Coding - 10 preset colors plus custom hex color picker
- Visibility Toggle - Hide/show items to compare layouts
- Item Locking - Lock furniture to prevent accidental moves
- Set Aside - Take a piece out of the plan without deleting it, then drag it back or tap where it should go
πΎ Save & Share
- Project Management - Save multiple floor plans with auto-save
- Share Links - Generate URLs that preserve your exact layout
- JSON Export/Import - Full backup and restore capability
- Inline Renaming - Click project name to rename (like Google Docs)
π΄ Offline & Install
- Works Offline - After the first visit the whole app is cached by a service worker
- Installable - Add Room Planner to your home screen or desktop as a standalone app
- Update Prompts - A small notice appears when a new version is ready
π Privacy
- Your Plans Stay Local - Floor plans live in your browser; share links keep the layout in the URL fragment, which never reaches a server
- Anonymous Analytics - Optional, cookieless usage and error stats with no plan content; opt out any time on the Help page
π€ For AI Assistants
- MCP Server -
https://room-planner.andrechek.com/mcp: Claude, ChatGPT, VS Code, Cursor and other MCP apps can lay out a room or a whole floor of connected rooms, check it and hand you an edit link; apps with MCP Apps show the plan in the chat. Free, no account; listed in the MCP Registry ascom.andrechek.room-planner/room-planner. See /agents/ - WebMCP - In Chrome with WebMCP turned on, the browser's own assistant can edit the plan you have open: furniture, doors, windows and rooms, each change one undo step, and replacing the plan asks first
- REST API - The same operations over plain HTTP for agents without MCP (curl, agent frameworks, ChatGPT Custom GPT Actions):
/openapi.json - Plan links without tools - Assistants with no connector can still hand you a plan: a compressed
#s=link built with code, or the readable#p=form (see /agents/#plan-links)
π― Smart Feedback
- Collision Detection - Visual warnings when furniture overlaps
- Boundary Alerts - Indicators when items extend outside room
- Real-time Preview - See changes instantly as you design
π± Responsive Design
- Desktop - Side-by-side panel layout with zoom controls
- Mobile - Full-screen modes with contextual navigation
- Touch Optimized - Designed for both mouse and touch interaction
How to Use
Two-Step Design Process
Room Planner uses a focused two-step workflow:
Step 1: Room Setup (Purple)
Configure the room shell before adding furniture:
- Set Dimensions - Enter room width and height
- Pick a Shape - Rectangle, L-shape, or Custom: drag corners, add a corner with + on a wall, edit wall lengths in the wall list
- Add Doors - Click "+ Add Door", set position, width, wall, and type
- Add Windows - Click "+ Add Window", configure position and width
- Drag to Position - On the canvas, drag door/window handles to fine-tune placement
Step 2: Furniture (Green)
Add and arrange your furniture:
- Add Items - Click "+ Add Furniture" and customize name, size, and color
- Drag to Move - Click and drag any furniture piece to reposition
- Rotate - Use the circular handle on each item to rotate (snaps to 45Β°)
- Edit Details - Click an item in the sidebar to adjust dimensions and color
- Lock Items - Click the lock icon to prevent accidental changes
Unit Systems
Switch between measurement systems anytime:
| System | Example | Use Case |
|---|---|---|
| Feet & Inches | 12'6" |
US residential |
| Decimal Feet | 12.5 ft |
US commercial |
| Inches | 150 in |
Detailed work |
| Meters | 3.8 m |
International |
| Centimeters | 380 cm |
Precision metric |
Tip: You can type values with any unit suffix and they'll convert automatically!
Saving & Sharing
- Auto-Save - Your work saves automatically to your browser
- My Floor Plans - Click the folder icon to manage multiple projects
- Share Link - Click "Share / Save" to get a URL with your complete layout
- Export JSON - Download a backup file you can import later
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl/β + Z |
Undo |
Ctrl/β + Shift + Z |
Redo |
Delete / Backspace |
Delete selected item |
Escape |
Deselect item |
Arrow Keys |
Move selected item (0.25 ft) |
Shift + Arrow Keys |
Move selected item (1 ft) |
R |
Rotate selected item 90Β° |
Visual Indicators
| Indicator | Meaning |
|---|---|
| π΄ Red border + β οΈ | Furniture overlaps another item or extends outside room |
| π‘ Amber border + π | Item is locked (cannot be moved or resized) |
| ποΈ Dashed border | Item is hidden (won't appear in final layout) |
π For Developers
Prerequisites
- Node.js 22.23.4 or higher (see
.nvmrc) - pnpm (the version is pinned in
package.jsonβpackageManager;corepack enablepicks it up)
Getting Started
git clone https://github.com/EricAndrechek/Room-Planner.git
cd Room-Planner
pnpm install
pnpm dev
Open http://localhost:4321 in your browser.
Scripts
| Command | What it does |
|---|---|
pnpm dev |
Astro dev server |
pnpm build |
Static build into dist/ (also generates the service worker and manifest) |
pnpm preview |
Serve dist/ locally |
pnpm check |
Type-check (astro check, TypeScript strict) |
pnpm lint |
ESLint (typescript-eslint + react-hooks) |
pnpm format |
Prettier (with prettier-plugin-astro) |
pnpm test |
Vitest unit tests |
pnpm test:e2e |
Playwright specs (Chromium) against a fresh build on port 43291 |
pnpm assets |
Regenerate icons and social images from brand/ |
pnpm screenshots |
Regenerate the PWA manifest screenshots (needs a running preview server) |
pnpm dev:worker |
Build, then serve dist/ locally with wrangler dev |
pnpm deploy |
Deploys, then pings IndexNow (normally done by Workers Builds; see docs/DEPLOY.md) |
To run the e2e suite against an already-running server (for example wrangler dev
on port 8787, which also exercises the CSP headers), set E2E_BASE_URL:
E2E_BASE_URL=http://localhost:8787 pnpm test:e2e.
The public site URL used for canonical links, Open Graph tags, the sitemap and
robots.txt comes from SITE_URL at build time (default
https://room-planner.andrechek.com), e.g. SITE_URL=https://example.com pnpm build.
Search and AI discoverability
- Content pages:
/help/,/faq/and/guides/(four room layout guides). Each guide's example layouts live insrc/lib/guides/examples.ts; they are drawn at build time with the export pipeline and link to the planner with a precomputed#s=share link.src/lib/guides/examples.test.tskeeps them free of warnings and keeps the captions' clearances true. - Structured data (JSON-LD):
WebSiteeverywhere,WebApplicationon the home page,Article+BreadcrumbListon guides,FAQPageon the FAQ (same strings as the visible answers). /llms.txt(src/pages/llms.txt.ts) and/llms-full.txt(built from the rendered HTML byscripts/llms-full.mjs) for AI assistants.- The MCP server (
worker/, on/mcp; how to connect:/agents/), its server card (/mcp/server-card), the AI catalog (/.well-known/ai-catalog.json,/.well-known/ard.json), aroom-plannerAgent Skill (/.well-known/agent-skills/), a site search for agents (/.well-known/search), andserver.json, the MCP Registry entry (com.andrechek.room-planner/room-planner, proven by/.well-known/mcp-registry-auth). Merging aversionbump inserver.jsonpublishes it to the registry (.github/workflows/mcp-registry.yml; docs/DEPLOY.md). - The REST API (
worker/api.ts,/api/*, the same functions as the MCP tools) and its description/openapi.json, with/plan.schema.json, both built from the Zod schema (src/lib/openapi.ts,src/lib/planSchema.ts). - Plan links assistants write:
#p=(readable,src/core/share/readable.ts) and the raw-JSON fallback#plan=(src/core/share/planParam.ts). /privacy/,/support/and/terms/, for people and the assistant directories (docs/DIRECTORY-LISTINGS.md).- WebMCP (
src/webmcp/): where the browser hasdocument.modelContext, the planner loads a lazy chunk that registers 14 tools over the app's own undoable edits (design, section 8). - Sitemap
<lastmod>comes from git (scripts/lastmod.mjs). After a production deploy,scripts/indexnow.mjssubmits recently changed URLs to IndexNow (Bing, Yandex, ...).
The old domain (roomplanner.andrechek.com)
The app moved from roomplanner.andrechek.com. The old hostname is a Cloudflare Single Redirect
rule on the andrechek.com zone (301 to https://room-planner.andrechek.com plus the path, query
preserved), managed in the Cloudflare dashboard/API, not in this repo. Projects saved in the
browser on the old origin are not migrated (owner's decision; localStorage is per-origin). #s=
share links keep working because browsers carry the fragment across redirects. Details:
docs/DEPLOY.md.
Analytics
Anonymous, cookieless analytics and error tracking come from PostHog's web snippet
(src/components/PostHog.astro), sent straight to PostHog US cloud
(us.i.posthog.com); ad blockers may block it, which is accepted. There is no build-time configuration: the project token is a public
client token, and the environment property (production / preview / development) is
derived from the hostname at runtime. Analytics is off under automation (navigator.webdriver)
and on localhost. To debug it, run localStorage['rp:analytics-debug']='1' in the browser
console and reload (works on localhost too; enables debug logging).
The MCP server reports its own usage from the Worker (worker/analytics.ts): which tool, whether it
worked, counts (rooms, pieces, issues), the unit, the client app's name, and the request's IP (for
approximate location, as on the website); never plan content or names, and no person profiles.
Events go out after the response (waitUntil), so PostHog can never slow or break a call.
Deployment and the domain cutover are documented in docs/DEPLOY.md.
Project Structure
src/
βββ pages/ # index (planner island), help, faq, guides/, 404, robots.txt,
β # llms.txt, og/<guide>.png (social cards, rendered at build)
βββ layouts/ # Base (<head>: SEO, Open Graph, icons, JSON-LD), Content
β # (static pages: header, breadcrumbs, footer), Guide
βββ components/
β βββ PlannerApp.tsx # client-only island root: boot + ErrorBoundary
β βββ ErrorBoundary.tsx
β βββ planner/ # Planner (composes the hooks), Header, Sidebar,
β # RoomSetupPanel, FurniturePanel/Card, RoomCanvas,
β # FurniturePiece, Openings, modals, ColorPicker...
βββ hooks/ # useHistory, useProjects (autosave), useProjectActions,
β # useSelection, useOpenings, useFurnitureEditing,
β # usePanZoom, usePointerDrag, useKeyboardShortcuts...
βββ core/ # pure document logic, no React/DOM (ESLint-enforced):
β # schema (plan format v4), load + migrate/ (every old format),
β # units, colors, geometry/ (walls, shapes, doors), check,
β # placement, ops, snapping, share/ (link codec, compact form),
β # render/; adapter/ + openings + layout: v3 API until PR 5
βββ lib/ # app logic: storage, projects, boot, analytics facade,
β # export/ (PNG/PDF), guides/ (example layouts, drawings, links)
βββ styles/global.css # Tailwind v4 + app styles
βββ types.ts # app types; document types are in core/types.ts
e2e/ # Playwright specs
Architecture Notes
- All measurements are stored internally in feet, converted for display based on the unit system
- Colors are stored as hex values for consistent sharing across browsers
- Persistence is
localStoragein the same keys/format the app has always used (room-planner-projects,room-sim-v3-*), plus aroom-planner-schemaversion marker;src/lib/storage.tsdocuments the format and its migrations - Share links put a deflate-compressed, base64url payload in the URL fragment
(
#s=β¦), so layouts never reach a server; old?config=links still open src/lib/analytics.tsis a typed facade over the PostHog web snippet'swindow.posthog(calls queue until the SDK loads; harmless no-ops when analytics is off)src/lib/pwa.ts/pwa-options.mjsconfigure the service worker via@vite-pwa/astro
π’ Deployment
The site is deployed as a Cloudflare Worker serving the static dist/. Cloudflare Workers
Builds builds and deploys main on every push and builds a preview for each PR branch (see
docs/DEPLOY.md). pnpm build itself produces a fully static site in
dist/ that any static host can serve. If the site is served from a sub-path, set Astro's base in
astro.config.mjs; all internal links are base-aware.
π€ Contributing
Contributions are welcome! Here's how to get started:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Ideas for Contributions / TODOs
- Export to image/PDF
- Measurement tool (click to measure distances)
- 3D view / isometric preview
- Multi-room floor plans
- Non-rectangular room shapes (L-shapes, alcoves, angled walls)
- Furniture snapping/alignment guides
- Collaborative editing (real-time multi-user) (while keeping no backend?)
- Accessibility improvements (ARIA, keyboard nav)
- Export to CAD formats (DXF, SVG)
- Reusable furniture library
- Reloading the page with a shared link causes a duplicate floor plan to be added with the same name
- Refactor
App.jsxinto smaller components for maintainability
π οΈ Technology Stack
| Technology | Purpose |
|---|---|
| Astro | Static pages + React island |
| React 19 | UI framework with hooks |
| TypeScript | Strict typing |
| Tailwind CSS 4 | Utility-first styling |
| Vitest / Playwright | Unit / end-to-end tests |
| Lucide React | Beautiful icon library |
| LocalStorage | Client-side persistence |
π€ AI Disclosure
This project was developed with assistance from GitHub Copilot (powered by Claude). AI was used for:
- Code generation - Writing React components, event handlers, and styling
- Feature implementation - Drag-and-drop logic, collision detection, unit conversion
- Bug fixes and refactoring - Improving code quality and fixing edge cases
- Documentation - Generating this README and code comments
All AI-generated code was reviewed, tested, and refined by a human developer. The project direction, feature decisions, and final implementation choices were made by the human author.
π Acknowledgments
- Knobs by @jherrm - Original rotation knob inspiration
- Icons by Lucide
- Built with Astro + React
- Styled with Tailwind CSS
π License
MIT License - feel free to use this project for personal or commercial purposes.