What it does
The owner portal is a free platform where property owners keep everything about their buildings in one place: the property itself, every asset in it, every maintenance job, document, contact, task and project, and every inspection and service report. The original was a ten-year-old PHP application. Maxwell treated the legacy code as the feature specification only, reading it to learn what every feature did, then rebuilt each one from scratch with modern design and AI where it helps.
Version 2: the owner's platform
Properties and assets
- Properties with units, valuations over time, photos and the people attached to each.
- Assets such as HVAC systems, water heaters, roofs and appliances, grouped by category, with custom fields an owner can define, condition, warranty expiry, valuations and photos.
Keeping the building running
- Maintenance items with recurrence schedules, completions and the assets each job covers.
- Tasks with assignments and comments, and projects that group related work.
- Inspections and findings from inspectors, proposals from contractors and work orders with line items, all viewable from the property.
Records and people
- Documents stored and organized by property.
- Contacts in groups, with multiple phone numbers.
- Calendar with calendar-service integrations.
- Notifications with per-user preferences.
- Reports across properties.
Accounts
- Organizations and teams with roles, sign-in, subscription plans, subscriptions and payments, billing and notification settings, and an activity log of every change.
The AI assistant
Every owner has a Claude assistant in a chat sidebar on every dashboard page. Before each conversation it is given the owner's own properties, assets with their condition and warranty dates, upcoming maintenance and open tasks, so it answers from the owner's records: when the furnace was last serviced, whether the water heater is still under warranty, what to budget for a fifteen-year-old roof. It streams its answers and can act through four tools, looking up a property, looking up an asset, creating a maintenance item and creating a task, so "remind me to change the furnace filter every three months" becomes a scheduled job. Conversations and messages are stored per owner.
Version 2 spans 39 screens, 44 data tables, 26,282 lines of application code in 256 files and 310 test cases in 3,346 lines of tests.
Version 3: one platform, every portal
Version 3 rebuilds not one product but the whole family as one application over one database, one sign-in and one AI layer:
- Owner portal: properties, assets, documents, maintenance and inspections.
- Inspection portal: templates, field work, reports and invoicing for inspection companies.
- Field-service portal: the full path from lead to quote to work order to invoice to payment.
- Property-management portal: leasing, tenants, rent and accounting.
- Super-admin portal: users, billing, configuration and analytics for the platform itself.
- A central dashboard: one sign-in for every user, with cross-product metrics, a single notification feed, people and permission management, cross-product search and full AI conversations.
An AI layer that takes actions. The assistant does not stop at answering. It proposes actions across every portal (creating a work order, scheduling a technician, drafting a quote, sending an invoice, drafting inspection findings from photos using vision) and carries them out only after the user confirms, through the same procedures the interface uses, with every action logged. The AI has exactly the permissions of the user it serves.
The stack. Next.js 16 with a route group per portal, Better Auth with multiple organizations and roles, PostgreSQL through Drizzle with UUIDv7 identifiers and time-zone-aware timestamps, tRPC for every database access, a self-hosted real-time server, file storage with presigned links, Resend email, Claude tool use and vision, and Stripe with Connect for rent splits and marketplace fees. Packages for the API, auth and database are kept free of web-framework imports so native mobile apps can share them, every table carries a soft-delete timestamp for offline sync, and auth works over both cookies and bearer tokens.
The legacy map. Four legacy codebases are read for every feature: the owner product (47 models), the inspection product (65), the field-service product (186) and the admin product (56), 354 models in all. A reference set documents every legacy feature so no agent needs to read the PHP directly, a feature inventory tracks 256 features, and the roadmap lays out 6 phases and 60 sub-phases. This line of work grew into the six-product property software suite, which has its own page.
What it achieved
- 153,000 lines of legacy PHP reverse-engineered into a 75-model domain schema.
- Version 2: 39 screens, 44 tables, 26,282 lines of code and 310 test cases, with an AI assistant that works from each owner's own records and can schedule work.
- Version 3: an AI-orchestrated rebuild of owner, inspection, field-service, property-management and super-admin portals on one platform, with 354 legacy models mapped and 256 features tracked.
The problem it solves
The legacy application had served property owners for a decade, and each product in the family kept its own database and login. Owners had their records but no help making sense of them. The rebuilds keep every feature the business depends on, replace the engineering underneath, and add an assistant that knows each owner's buildings and can act on them.
How he built it
Maxwell set one protocol for every feature: read the legacy code to learn what it does, decide how to make it better, write the tests first, build until they pass, then open the feature in a real browser through Playwright and click through it before committing. One feature at a time, and a failing test is fixed in the code, never deleted. pnpm gate runs before every commit: ESLint with security rules and limits of 300 lines per file and 80 lines per function, dependency-cruiser rules that stop the interface from touching the database and forbid circular imports and raw SQL, strict type checks, Vitest and Playwright. For version 3 he added a specification pipeline, specify, plan, tasks and implement, in which every legacy feature must be given a home in the new system before work begins, and a constitution of non-negotiable technical principles that every agent reads at the start of a session. He directed AI agents through all of it.