Sargasso Tracker

Sargasso Tracker

Status: Active

Categories: Laravel, React Native, Astro JS, API Integration

Sargasso Tracker is my own project. It helps beachgoers in Mexico’s Riviera Maya find beaches without sargassum seaweed, using condition reports from people on the beach. It started as a map I shared with a few friends. Once more people were using it, I rebuilt it from the ground up as a full product: an API, a website and a mobile app.

Laravel API and Admin

The original site ran on Sanity. I replaced it with a Laravel JSON API and imported the existing beaches and reports. Users can sign in with email and password or a one-time email code, then submit a Good, Okay or Bad report with an optional photo. Admins manage beaches, regions, users and reports in a Filament panel, and a moderation queue handles reports that users flag.

Satellite Detection

Crowdsourced reports leave gaps when nobody has visited a beach. To fill them, the API checks Copernicus Marine satellite data for sargassum near each beach three times a day. When a detection is strong enough, it adds a satellite report alongside the ones from users.

Static Website

The public site is built with Astro and rebuilds every day from the API, so visitors get fast static pages and never call the API from the browser. It has an interactive map and full English and Spanish versions. All 823 URLs from the old site still resolve, so existing links and search results kept working after the switch.

Mobile App

I built the app with Expo and React Native, and it is live on Google Play. Users can browse the map, submit reports with their location and a photo, manage their account, and flag or block other users. It works in English and Spanish and copes with a dropped connection on the beach.