
mcp
com.andrechek.room-planner/mcp
Lay out a room to scale, check furniture, doors and clearances, and get a link to edit the plan.
Documentation
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/mcp. 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/mcp, 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.
No installation packages available.