Skip to main content

Developer Documentation

Welcome to the Village Data developer documentation. This guide covers architecture, setup, and API reference for building and deploying the platform.

Architecture Overview

ComponentPlatformPurpose
UI (Next.js)VercelFrontend application
API ServerDigital OceanBackend API
MCP ServerDigital OceanModel Context Protocol server
DatabaseSupabasePostgreSQL + Auth

Tech Stack

Frontend

  • Next.js 14 - React framework with App Router
  • Mantine - UI component library
  • TypeScript - Type-safe development

Backend

  • Supabase - PostgreSQL database + authentication
  • FastMCP - Model Context Protocol server
  • OpenAI/Google AI - LLM providers

Infrastructure

  • Vercel - Frontend hosting
  • Digital Ocean App Platform - Backend services
  • Supabase Cloud - Managed database

Getting Started

  1. Clone the repository
  2. Install dependencies with pnpm install
  3. Set up environment variables
  4. Start local Supabase with supabase start
  5. Run the development server with pnpm dev

See Local Development for detailed instructions.