# HostMetrics Docs ## Docs - [API Routes](https://dhanurgo.mintlify.app/architecture/api-routes.md): All server-side API endpoints and their purposes - [Auth & Row Level Security](https://dhanurgo.mintlify.app/architecture/auth-and-rls.md): Authentication flow and multi-tenant data isolation - [Data Flows](https://dhanurgo.mintlify.app/architecture/data-flow.md): How data moves through the system — CSV import, KPI calculation, investor payments - [Database Schema](https://dhanurgo.mintlify.app/architecture/database-schema.md): Entity-relationship diagrams and table documentation - [Folder Structure](https://dhanurgo.mintlify.app/architecture/folder-structure.md): Project directory layout and module organization - [Architecture Overview](https://dhanurgo.mintlify.app/architecture/overview.md): High-level system architecture and service boundaries - [Toll Sync Architecture](https://dhanurgo.mintlify.app/architecture/toll-sync.md): How toll transactions are scraped, imported, and matched to trips - [CSV Deduplication](https://dhanurgo.mintlify.app/business-rules/csv-deduplication.md): How HostMetrics prevents duplicate records on re-import - [Vehicle Depreciation](https://dhanurgo.mintlify.app/business-rules/depreciation.md): Depreciation calculation methods for fleet vehicles - [Investor Revenue Share](https://dhanurgo.mintlify.app/business-rules/investor-revenue-share.md): Three-pool expense model and revenue split calculations - [Revenue Decomposition](https://dhanurgo.mintlify.app/business-rules/revenue-decomposition.md): How Turo trip earnings break down from gross to net - [Timezone Handling](https://dhanurgo.mintlify.app/business-rules/timezone-handling.md): How HostMetrics handles timezones for trips, tolls, and display - [Utilization Calculation](https://dhanurgo.mintlify.app/business-rules/utilization-calculation.md): How fleet and vehicle utilization percentages are computed - [Earnings Report CSV](https://dhanurgo.mintlify.app/data-reference/earnings-report-csv.md): Turo Earnings Report CSV format — monthly earnings summaries - [Expense Import CSV](https://dhanurgo.mintlify.app/data-reference/expense-import-csv.md): Expense import CSV format for bulk expense uploads - [EZPass Toll CSV](https://dhanurgo.mintlify.app/data-reference/ezpass-toll-csv.md): EZPass toll transaction CSV format - [NTTA Toll CSV](https://dhanurgo.mintlify.app/data-reference/ntta-toll-csv.md): North Texas Tollway Authority CSV format - [SunPass Toll CSV](https://dhanurgo.mintlify.app/data-reference/sunpass-toll-csv.md): SunPass (Florida) toll transaction CSV format - [Trip Earnings CSV](https://dhanurgo.mintlify.app/data-reference/trip-earnings-csv.md): Turo Trip Earnings CSV format — field definitions and parsing rules - [Coding Conventions](https://dhanurgo.mintlify.app/development/coding-conventions.md): File naming, import patterns, state management, and code organization rules - [Component Patterns](https://dhanurgo.mintlify.app/development/component-patterns.md): Reusable UI component patterns with exact design system values - [Database Operations](https://dhanurgo.mintlify.app/development/db-operations.md): Database module structure, CRUD patterns, and Supabase query conventions - [Design System](https://dhanurgo.mintlify.app/development/design-system.md): Complete color palette, typography, spacing, and icon reference for HostMetrics - [Hooks Reference](https://dhanurgo.mintlify.app/development/hooks-reference.md): Complete reference for all custom React hooks in the HostMetrics codebase - [PR Checklist](https://dhanurgo.mintlify.app/development/pr-checklist.md): Required checks, branch rules, and commit conventions for pull requests - [Testing Guide](https://dhanurgo.mintlify.app/development/testing-guide.md): Unit testing with Vitest, E2E testing with Playwright, and mock patterns - [Billing & Subscriptions](https://dhanurgo.mintlify.app/features/billing.md): Stripe integration, subscription plans, checkout flow, and webhook processing - [Chrome Extension Sync](https://dhanurgo.mintlify.app/features/chrome-extension-sync.md): How the Chrome extension scrapes Turo earnings and syncs them to HostMetrics - [CSV Import](https://dhanurgo.mintlify.app/features/csv-import.md): Importing Turo trip earnings and earnings report CSVs, deduplication, and audit trail - [Dashboard & KPIs](https://dhanurgo.mintlify.app/features/dashboard-kpis.md): Overview of the main dashboard, KPI definitions, calculation formulas, and revenue stream breakdowns - [Document Management](https://dhanurgo.mintlify.app/features/documents.md): Uploading fleet documents, tracking expiry dates, and monitoring fleet document health - [Expense Tracking](https://dhanurgo.mintlify.app/features/expense-tracking.md): Creating, categorizing, splitting, and importing expenses for fleet cost management - [Fleet Showcase Pages](https://dhanurgo.mintlify.app/features/fleet-pages.md): Creating public fleet pages with customizable templates to market your vehicles - [Investor / Co-Host Management](https://dhanurgo.mintlify.app/features/investor-management.md): Revenue sharing, vehicle assignments, payments, agreements, tax forms, and investor portal - [Notifications](https://dhanurgo.mintlify.app/features/notifications.md): In-app notification center, notification types, and preference management - [Reports & Analytics](https://dhanurgo.mintlify.app/features/reports.md): Monthly earnings analysis, vehicle profitability, discrepancy detection, toll analysis, and utilization trends - [Toll Reconciliation](https://dhanurgo.mintlify.app/features/toll-reconciliation.md): Connecting toll accounts, importing transactions, matching tolls to trips, and cost analysis - [Trip Management](https://dhanurgo.mintlify.app/features/trip-management.md): How trips are displayed, filtered, and inspected in the bookings view - [Vehicle Fleet Management](https://dhanurgo.mintlify.app/features/vehicle-fleet.md): Adding vehicles, managing photos, tracking status, and per-vehicle profitability - [Chrome Extension](https://dhanurgo.mintlify.app/getting-started/chrome-extension.md): Build and load the HostMetrics Chrome extension for Turo data sync - [Environment Variables](https://dhanurgo.mintlify.app/getting-started/environment-variables.md): Complete reference for all environment variables - [Local Setup](https://dhanurgo.mintlify.app/getting-started/local-setup.md): Clone, install, and run HostMetrics locally in 5 minutes - [Prerequisites](https://dhanurgo.mintlify.app/getting-started/prerequisites.md): What you need before setting up HostMetrics locally - [Stripe Setup](https://dhanurgo.mintlify.app/getting-started/stripe-setup.md): Configure Stripe for billing and subscription features - [Supabase Setup](https://dhanurgo.mintlify.app/getting-started/supabase-setup.md): Create a Supabase project and run database migrations - [HostMetrics Documentation](https://dhanurgo.mintlify.app/introduction.md): Complete technical and business documentation for the HostMetrics fleet management platform