Lawrence Buena Verified
all projects

Personal project · Designed & built · 2026

ManokDex, a gamefowl farm kept as trading cards

A phone app for Filipino gamefowl breeders. Every bird becomes a collectible card with a rarity earned from real lineage, bloodline and verified wins, and the whole farm works offline out in the yard.

Offline-first · 6 rarity tiersNext.jsSupabasePowerSyncPWAOfflinePostgres

The idea

Gamefowl breeders keep a lot of records: who sired whom, which bloodlines are in a bird, how it fought, what it weighed before the match. Most of it lives in notebooks or in the breeder’s head. ManokDex turns those records into something worth keeping up: each bird is a Pokémon-style trading card, and the binder fills up as the farm grows.

The twist is that nothing about a card is random. Rarity comes from documented lineage, how scarce the bloodlines are, and wins a moderator has verified. Better records make better cards.

Quick tour.

What it does

  • The Binder. Every bird as a card with its rarity, traits, six stats and fight record. Filter by rarity, status or sex, follow each bloodline through five life stages, or switch to Deck view and flip through one card at a time.
  • A card with a back. Open a card for the rarity breakdown, the bloodline blend, a four-generation pedigree, photos, matches and weigh-ins with a weight trend across the season.
  • One form to add a bird. Identity, sire and dam, a bloodline blend that has to add up to 100%, and stats.
  • The farm page. Birds, record, badges and the bloodlines you keep, plus private details (address, phone, Facebook) only the owner ever sees.
  • Stats and a leaderboard. Win rate by bloodline, results by month, top birds, and an opt-in leaderboard that only counts verified matches.
  • Sharing. Every card has a public link and a share image, generated on the server. Match notes are never public.

Rarity you can’t fake

Rarity is a score out of 100, calculated in the database rather than in the app, so it can’t be edited from a phone:

  • Lineage, up to 40. Ten points per generation of known ancestors.
  • Blood, up to 30. From how hard each bloodline in the blend is to source.
  • Record, up to 30. Three per verified win, plus one per verified win of the bird’s offspring, so proven breeders and hens rank too. Unverified wins count for nothing.

A database trigger stops anyone but a moderator from marking a match verified, and moderators get their own Verify screen.

Built for the yard

Breeders use it outdoors, one-handed, where signal comes and goes. So the whole farm lives on the phone in a local database (PowerSync over Supabase Postgres) and syncs when signal returns. The header always says where things stand: Offline, Syncing, Up to date, or needs attention, with a plain message when something didn’t save. If a bird was deleted on another phone while you edited it offline, the save fails loudly instead of quietly doing nothing.

It installs as an app from the browser, the farm screens are cached by a service worker, and signing out wipes the device copy, since phones get shared.

Under the hood

Next.js with Tailwind and shadcn/ui-style components, Supabase for auth, storage and Postgres with row-level security, and PowerSync for the device database. The schema went through 18 migrations, with database tests for the security-sensitive functions and Node tests for the offline logic.

Currently sourcing new users, and no betting or payments by design. It’s live at manokdex.vercel.app.

Type a tool, a skill, or a company.