Repository avatar
Other Tools
v1.0.0
active

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 Logo

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.

šŸš€ Try Room Planner Now →


✨ 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 as com.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:

  1. Set Dimensions - Enter room width and height
  2. Pick a Shape - Rectangle, L-shape, or Custom: drag corners, add a corner with + on a wall, edit wall lengths in the wall list
  3. Add Doors - Click "+ Add Door", set position, width, wall, and type
  4. Add Windows - Click "+ Add Window", configure position and width
  5. Drag to Position - On the canvas, drag door/window handles to fine-tune placement

Step 2: Furniture (Green)

Add and arrange your furniture:

  1. Add Items - Click "+ Add Furniture" and customize name, size, and color
  2. Drag to Move - Click and drag any furniture piece to reposition
  3. Rotate - Use the circular handle on each item to rotate (snaps to 45°)
  4. Edit Details - Click an item in the sidebar to adjust dimensions and color
  5. Lock Items - Click the lock icon to prevent accidental changes

Unit Systems

Switch between measurement systems anytime:

SystemExampleUse Case
Feet & Inches12'6"US residential
Decimal Feet12.5 ftUS commercial
Inches150 inDetailed work
Meters3.8 mInternational
Centimeters380 cmPrecision 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

ShortcutAction
Ctrl/⌘ + ZUndo
Ctrl/⌘ + Shift + ZRedo
Delete / BackspaceDelete selected item
EscapeDeselect item
Arrow KeysMove selected item (0.25 ft)
Shift + Arrow KeysMove selected item (1 ft)
RRotate selected item 90°

Visual Indicators

IndicatorMeaning
šŸ”“ Red border + āš ļøFurniture overlaps another item or extends outside room
🟔 Amber border + šŸ”’Item is locked (cannot be moved or resized)
šŸ‘ļø Dashed borderItem 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 enable picks 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

CommandWhat it does
pnpm devAstro dev server
pnpm buildStatic build into dist/ (also generates the service worker and manifest)
pnpm previewServe dist/ locally
pnpm checkType-check (astro check, TypeScript strict)
pnpm lintESLint (typescript-eslint + react-hooks)
pnpm formatPrettier (with prettier-plugin-astro)
pnpm testVitest unit tests
pnpm test:e2ePlaywright specs (Chromium) against a fresh build on port 43291
pnpm assetsRegenerate icons and social images from brand/
pnpm screenshotsRegenerate the PWA manifest screenshots (needs a running preview server)
pnpm dev:workerBuild, then serve dist/ locally with wrangler dev
pnpm deployDeploys, 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 in src/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.ts keeps them free of warnings and keeps the captions' clearances true.
  • Structured data (JSON-LD): WebSite everywhere, WebApplication on the home page, Article + BreadcrumbList on guides, FAQPage on the FAQ (same strings as the visible answers).
  • /llms.txt (src/pages/llms.txt.ts) and /llms-full.txt (built from the rendered HTML by scripts/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), a room-planner Agent Skill (/.well-known/agent-skills/), a site search for agents (/.well-known/search), and server.json, the MCP Registry entry (com.andrechek.room-planner/mcp, proven by /.well-known/mcp-registry-auth). Merging a version bump in server.json publishes 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 has document.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.mjs submits 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 localStorage in the same keys/format the app has always used (room-planner-projects, room-sim-v3-*), plus a room-planner-schema version marker; src/lib/storage.ts documents 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.ts is a typed facade over the PostHog web snippet's window.posthog (calls queue until the SDK loads; harmless no-ops when analytics is off)
  • src/lib/pwa.ts / pwa-options.mjs configure 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:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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.jsx into smaller components for maintainability

šŸ› ļø Technology Stack

TechnologyPurpose
AstroStatic pages + React island
React 19UI framework with hooks
TypeScriptStrict typing
Tailwind CSS 4Utility-first styling
Vitest / PlaywrightUnit / end-to-end tests
Lucide ReactBeautiful icon library
LocalStorageClient-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


šŸ“„ License

MIT License - feel free to use this project for personal or commercial purposes.

No installation packages available.