Skip to main content
M
MatthewLaravel · Livewire · Filament
← Back to all projects
Full-Stack & Systems Engineer•

Metro Manila Specialty Coffee — High-Scale Astro Directory

An authoritative, ultra-fast, mobile-first web directory engineered for specialty micro-roasters and remote-work friendly cafes across Metro Manila. Built with Astro 7, Tailwind CSS v4, Content Collections, and on-demand vector map clustering.

Production Impact: 62 pre-rendered static routes compiled in 2.6s. Zero framework JavaScript on initial load. Validated compile-time Zod schemas across 50+ curated cafe Markdown data dossiers with on-demand MapLibre GL vector tiles.
Astro 7Content CollectionsTailwind CSS v4TypeScriptMapLibre GLZero-JS

Overview

Metro Manila Specialty Coffee & Laptop-Friendly Directory is an authoritative, high-scale content directory engineered to solve real remote-work ergonomics across the National Capital Region (Makati, BGC/Taguig, Quezon City, Pasig/Ortigas, Alabang, and Manila).

Unlike generic scraper directories that dump unverified spreadsheets with missing images and broken coordinates, this platform provides:

  1. Verified Remote-Work Ergonomics: Granular data on socket density, tested Wi-Fi bandwidth (Mbps), voucher limitations, laptop policies, and acoustic noise levels.
  2. Curated Curation: Strict filtering prioritizing third-wave micro-roasters and artisanal specialty cafes over generic commercial chains.
  3. Dedicated Canonical Permalinks (/[city]/[cafe-slug]): 62 pre-rendered static pages structured for high-intent long-tail SEO capturing branded cafe queries.
  4. Resilient Mapping Island: Utilizing OpenFreeMap vector tiles to prevent telecom tile-blocking issues across Philippine ISPs, loaded strictly on-demand.

Architecture & Subsystems

1. Astro Content Collections Layer (astro:content + Zod Schema)

  • Compile-Time Validation: Enforces strict schemas across all 50+ cafe markdown dossiers. Any missing geographic coordinates, invalid district enums, or malformed operating hours fail the build before deployment.
  • Data Integrity: Standardized data contract covering power outlet density (none, sparse, abundant), Wi-Fi speeds, coffee roasters, brew methods, and pet-friendly policies.

2. High-Performance Static Generation (62 Routes in 2.6s)

  • Zero-JS Static Baseline: Renders pristine, static HTML and CSS by default. Initial mobile viewport loads in under 400ms with zero framework runtime overhead.
  • Dynamic SSG Routing: Automatically compiles district landing hubs (/makati, /taguig-bgc, /quezon-city) and canonical cafe profile routes (/[city]/[slug]) with automated XML sitemap generation.

3. On-Demand Vector Map Clustering (VectorMapIsland.astro)

  • Lazy WebGL Loading: Defers loading heavy MapLibre GL bundles (220 KiB) until the user explicitly toggles the map view, preserving mobile Core Web Vitals and preventing low-end GPU stutter.
  • OpenFreeMap Vector Tiles: High-reliability vector tiles with custom dark/light theme matching, bypassing traditional OpenStreetMap ISP DNS blocks.

4. Interactive Instant Filter Grid (CafeFilterGrid.astro)

  • Zero-Dependency Native Custom Element: Engineered using a vanilla TypeScript Custom Element (<cafe-filter-grid>) that performs sub-millisecond in-memory DOM filtering.
  • Instant Ergonomic Filtering: Real-time filtering across power outlets, Wi-Fi speed, and neighborhood districts with zero network latency and 0 kB runtime framework dependencies.

Tech Stack & Toolchain

  • Framework: Astro 7 (Static Site Generation / Islands Architecture)
  • Data Engine: Astro Content Collections + Zod Schema Validation
  • Styling: Tailwind CSS v4 (@tailwindcss/vite engine)
  • Vector Mapping: MapLibre GL + OpenFreeMap Vector Tiles (On-Demand Dynamic Import)
  • Language: TypeScript (Strict Mode)
  • SEO & Structured Data: Automated Schema.org LocalBusiness JSON-LD & BreadcrumbList