Skip to content
CodeQiSoftware Studio
Back to work

Case study

Pichichero

A fresh-catch marketplace connecting Puerto Rico’s fishers directly with buyers.

Fishers and fish markets post the day’s catch — species, price per pound or per dozen, town and a photo — and buyers browse, search and contact the seller directly by WhatsApp or phone. Pichichero takes no part in the sale itself: it gets the right catch in front of the right buyer, and keeps everyone’s data safe along the way.

Status
Live in production
Sector
Fishing · local food marketplace
Platform
Web app, phone-first
Languages
Spanish & English
Spanish home page: a short hero, then a quick search by species and town, straight into today’s catch.

The challenge

A marketplace for fresh fish has two sides that both have to show up: fishers who post from a phone, often at the dock, and buyers who need to find a specific species near them, today. Pichichero also had to work for three kinds of accounts — buyers, individual fishers and fish markets — in Spanish first and English too.

Trust was the hard constraint. A fisher’s phone number is how a sale happens, so it had to reach real buyers without ever being scraped from a public page, and the platform had to respect closed fishing seasons, moderate abuse and give every user control over their own data.

The solution

We built a server-authoritative Next.js application on Supabase. Every write goes through a server action that re-validates it, and every rule that matters — ownership, rate limits, suspensions, who may see a phone number — is enforced again inside Postgres, so no client can talk its way around it.

On the product side we led with inventory: the home page drops buyers straight into what is for sale, the feed gives every fisher a turn rather than letting one flood it, and search understands how people actually ask — a species, a town, or a direction like “chillo por el oeste”.

What we built

  • Catch and bait catalogues

    Two catalogues with their own species rosters and units — priced by the pound or by the dozen — each one a shareable, filterable URL.

  • Search in plain words

    Species, towns and cardinal directions in either language, so “chillo por el oeste” filters to the west and ranks snapper inside it.

  • Catch map

    Every active catch counted by town on a coastline traced from public map data, with each of the 78 municipalities linking into the feed.

  • Swipeable decks

    Today’s catch and the filtered market dealt one card at a time, with gestures, keyboard controls and a way back to the exact card.

  • Closed-season guide

    A veda calendar for Puerto Rico and federal waters, plus an advisory on listings whose species is in a closed season.

  • Fish-market storefronts

    Fish markets publish their address, opening hours and specialties, with “open now” and structured data for search engines.

  • Moderation and analytics

    Reports, suspensions and an admin area with first-party analytics on supply, demand, acquisition and retention.

  • Privacy by design

    No ad or analytics trackers, phone numbers released only to signed-in buyers, and self-service data export and account deletion.

Seller names and faces are blurred in these screenshots.

The market: catch and bait catalogues, search and filters, with price, town and availability on every card.
The market: catch and bait catalogues, search and filters, with price, town and availability on every card.
Catch map: every active catch counted by town on a traced outline of Puerto Rico.
Catch map: every active catch counted by town on a traced outline of Puerto Rico.
Closed-season guide for Puerto Rico and federal waters, by month and species.
Closed-season guide for Puerto Rico and federal waters, by month and species.
Mobile feed with the catalogue switch, search and filters pinned at the top.
Mobile feed with the catalogue switch, search and filters pinned at the top.
Mobile listing page with price, quantity, town and a sign-in prompt to contact the fisher.
Mobile listing page with price, quantity, town and a sign-in prompt to contact the fisher.

Outcomes

What was delivered

Usage figures for this project are not published.

  • The marketplace is live at pichichero.com, in Spanish and English.
  • Three account types — buyers, individual fishers and fish markets — each with their own tools.
  • Sellers’ phone numbers never appear on public pages; they reach signed-in buyers within a daily quota.
  • No ad or third-party analytics trackers, with self-service data export and account deletion.

Under the hoodFor technical readers: the architecture, data flow and tools behind the product.

Architecture

The server decides, the database enforces

Next.js renders and validates on a Node server; Supabase Postgres has the final word on who may read or change anything — including the phone numbers that make a sale possible.

  1. Browser

    • Buyers, fishers & fish markets

      Phone-first · ES / EN

    • Turnstile widget

      On sign-in and sign-up

    • Error reporting

      Via the app’s own origin

  2. Hostinger · Next.js 16

    • proxy.ts

      Maintenance gate · session refresh

    • Server Components

      Feed, map, decks, admin

    • Server Actions

      Publish, contact, moderate

    • Route handlers

      Email links, error tunnel

  3. Supabase

    • Postgres

      Row-level security · SECURITY DEFINER RPCs

    • Auth

      Sessions · captcha check

    • Storage

      Catch photos · Size & type limits

    • Contact lookup

      Phone behind a daily quota

  4. External services

    • Cloudflare Turnstile

      Verified by Supabase Auth

    • Brevo

      Contact form email

    • Sentry

      Release-tagged errors

  • Phone numbers never go public

    The phone column is revoked from every public role. A number leaves the database only through one function, to a signed-in buyer, within a daily quota and only on the channels the seller allows.

  • Every rule, twice

    Server actions validate every write, and Postgres enforces ownership, rate limits and suspensions again through row-level security — so even a direct call to the database API cannot get around them.

  • Measured without trackers

    Contact presses and funnel events are recorded first-party in Postgres, best-effort and never blocking a buyer, so the marketplace is measurable without a cookie banner or a single third-party script.

Data flow

From the dock to the buyer

What happens to a catch, step by step, and where each piece of data lives.

  1. 01

    Post

    Fisher

    A server action checks the session, validates the listing, confirms the photo really is an image and calls publish_listing(), which enforces the posting limits.

    listings · catch | bait

  2. 02

    Discover

    Buyer

    The feed, map and decks read a public view that never selects a phone number, and the feed takes fishers in turns so no single seller floods it.

    listings_public

  3. 03

    Reveal contact

    Database

    get_listing_contact() releases the seller’s number to a signed-in buyer, within a daily quota and only on the channels the seller has allowed.

    contact_lookup_limits

  4. 04

    Talk

    Buyer · Fisher

    WhatsApp

    A chat opens with the seller; the sale is agreed between the two of them.

    or

    Phone call

    A tap to call. Pichichero takes no payment and no cut.

    contact_events

  5. 05

    Measure

    Server

    Contact presses and funnel steps are written first-party, best-effort, and feed the admin analytics on supply, demand and retention.

    funnel_events

Technology

  • Next.js 16 (App Router)
  • React 19
  • TypeScript
  • Supabase (PostgreSQL, Auth, Storage)
  • Zod
  • Vitest · PGlite
  • Brevo
  • Cloudflare Turnstile
  • Sentry
  • Hostinger · Cloudflare

Have a Similar Project?

Building a marketplace? Two-sided platforms with careful privacy, moderation and bilingual audiences are exactly the kind of work we do.