Skip to main content

Welcome to HostMetrics

HostMetrics (internally TuroDashboard) is a comprehensive fleet management and analytics platform for Turo hosts. It enables hosts to track vehicles, trips, earnings, expenses, investors/co-hosts, and generate profitability reports.

Who This Documentation Is For

AudienceStart Here
New Developer / InternPrerequisitesLocal SetupArchitecture Overview
Product OwnerFeaturesBusiness Rules
Returning DeveloperHooks ReferenceDB Operations

Tech Stack

LayerTechnology
FrameworkNext.js 15 (App Router)
LanguageTypeScript 5
DatabaseSupabase (PostgreSQL)
AuthSupabase Auth (JWT)
StylingTailwind CSS 4
UI Componentsshadcn/ui (Radix UI)
ChartsRecharts
PDF GenerationjsPDF
PaymentsStripe
TestingVitest + Playwright
DeploymentVercel
Background JobsAWS Lambda (toll scraping)

Core Features

Dashboard & KPIs

Financial metrics, trip analytics, revenue breakdowns, fleet health, and monthly trends

Trip Management

Import Turo CSVs, filter by status, view earnings breakdowns per trip

Vehicle Fleet

Add vehicles, manage photos, track status, per-vehicle profitability

Investor Management

Revenue sharing, vehicle assignments, payment tracking, agreements, 1099 generation

Toll Reconciliation

Connect toll accounts (NTTA, EZPass, SunPass), match tolls to trips, track costs

Expense Tracking

Per-vehicle and global expenses, splitting, categories, recurring support

Reports & Analytics

Monthly earnings, vehicle profitability, discrepancy detection, toll analysis

Fleet Showcase

Public fleet pages with customizable templates for marketing your fleet

Project Stats

MetricCount
Page Routes28
React Components200+
Custom Hooks28
Database Tables25+
API Routes16
Test Files60+
Supabase Migrations24+

Documentation Structure

  • Getting Started — Environment setup, dependencies, first run
  • Architecture — System diagrams, database schema, data flows, API routes
  • Features — What each feature does and how it works (for all audiences)
  • Business Rules — Revenue formulas, payment calculations, timezone rules
  • Development Guide — Code patterns, design system, testing, PR process
  • Data Reference — CSV field specifications with downloadable sample files