> ## Documentation Index
> Fetch the complete documentation index at: https://ratemyrentalco.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Architecture overview

> How RateMyRental’s web app, data platform, edge services, hosting, and design system fit together.

RateMyRental is a dual-role housing review product. Renters and property owners share one web application, one identity system, and one design system (Harbor), with separate dashboards when an account holds both roles.

## System context

```mermaid theme={null}
flowchart TB
  user[Renter or property owner]
  cf[Cloudflare DNS and Turnstile]
  web[Next.js on Vercel]
  sb[Supabase Auth Postgres Storage RLS]
  harbor[Harbor UI system]
  docs[Mintlify docs]

  user --> cf --> web
  web --> sb
  web --> harbor
  docs -.->|architecture source of truth| web
```

| Piece | Role |
| - | - |
| Next.js on Vercel | Marketing pages, auth flows, public property browse, renter and owner dashboards |
| Supabase | Auth, Postgres, file storage, row level security |
| Cloudflare | DNS, TLS, Turnstile on public and abuse-prone forms |
| Harbor | Sole UI system for renter and owner experiences |
| Mintlify | Architecture and Harbor handbook (this site) |

## Request flow (high level)

1. The browser hits the Next.js app through Cloudflare DNS.
2. Public property and review reads use the Supabase anon key under RLS.
3. Authenticated writes use the signed-in session on the server (Server Actions or route handlers), validated with Zod, then persisted under RLS.
4. Public forms that accept anonymous input verify Cloudflare Turnstile server-side before processing.

## Product boundaries for v1

* Housing **properties** and **reviews** only
* Dual-role accounts with separate `/dashboard/renter` and `/dashboard/owner` trees
* No multi-category rentables, no separate mobile apps

See [Tech stack](https://ratemyrentalco.com/docs/architecture/tech-stack.md), [Roles and dashboards](https://ratemyrentalco.com/docs/architecture/roles-and-dashboards.md), [Data model](https://ratemyrentalco.com/docs/architecture/data-model.md), [Trust and data rules](https://ratemyrentalco.com/docs/architecture/trust-and-data-rules.md), and [Launch journeys](https://ratemyrentalco.com/docs/architecture/launch-journeys.md) for detail.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.