An app that pairs pedigree dogs, cats and horses and treats the paperwork as the product: every claim on a profile is checked against its document, and the rules live in the database, where no screen can skip them.

Bredino finds a mate for a pedigree dog, cat or horse. An owner presents the animal with its papers, goes through candidates of the same species that are of breeding age and registered to breed, and talks to the other owner once both have said yes. I designed and built it at Authect, in Spanish, for iOS and Android from one codebase.
What sets it apart is behind the screens. A microchip, a pedigree or a hip score earns its seal only when a person has checked the document, and the rules that matter are written in the database: 80 row-level policies, 68 functions and 26 triggers that hold whichever screen is asking.
- 54screens in the app
- 80row-level security policies over 34 tables
- 68functions written in SQL, with 26 triggers
- 195automated tests: 154 on the database's rules, 21 on push, 20 in a browser
Like, match, talk
The deck shows only animals that could breed with yours: the same species, of breeding age, registered as breeders. Two likes are a match, and a match opens a conversation between the two owners. Each paper has a line of its own and says where it stands: verified, or in review.

Papers first
A seal for each document
Every fact on a profile is checked against its document by a person before it carries a seal. Edit a verified fact and the seal comes off until the new document has been seen.
Litters need a registry
A litter can be published only by a breeder whose registry is verified, and it says from which day the young may leave for a home.
Where an animal lives stays vague
A position is stored on a grid of about a kilometre. Other people see a town and a distance in whole kilometres, never a point on a map.
Photographs without a trail
A photograph is encoded again on the phone, at 1,600 pixels, before it is uploaded. Where it was taken does not leave the device.

Rules in the database
Held below the app
The 34 tables arrive in 16 migrations, 4,654 lines of SQL. Who may read or write a row is decided by 80 policies in the database, so a rule holds for the phone, the web and anything written later.
Tested where the rules are
Of the 195 automated tests, 154 run every migration on a Postgres compiled to WebAssembly and check the rules with real rows, as each signed-in role. Another 21 put the push sender through its service answering, throttling, refusing a batch and being down, and 20 drive the app in a browser at phone size.
Notifications through an outbox
A notification is written to an outbox in the database. A scheduled job hands it to the sender and tries up to five times, so a delivery that fails is retried and not lost.
One app, three species
Each in its own words
Dogs, cats and horses share the screens and nothing else. The wording, the age bands, the breeding years and the heat cycle come from one description of each species.
Six kinds of account
An owner, a breeder, a stud farm, a family looking for a puppy or a foal, a trainer and a shelter each see the app that fits them, with adoption, trainers and breed communities beside the matching.
A heat card
A female's profile carries a card for her heat, and the phone sets its own reminders for the thirty days ahead.
Paper by day, ink by night
The look is a notebook drawn in marker, the same one as the product's website. The dark theme is drawn, not inverted: the paper turns to ink and the four markers keep their jobs.

