Skip to content
simonkundrikPublic

About

A personality-first pet matching quiz. Matches on temperament and what your life can sustain, not on looks - and filters by what is legal where you live.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Kindred

Find the animal that actually suits you — judged on temperament, not looks.

Runs entirely in your browser. No account, no API key, nothing sent anywhere. Installable to your phone or desktop from the browser menu.

Most "what pet should I get" quizzes sort on appearance and hand you a dog. Kindred inverts that — and then takes the dog away entirely. It asks what you want from an animal's character — affection, independence, noise, boldness, whether it bonds to one person — and separately what your life can genuinely sustain in effort, space, money and smell. Then it names a specific variety, not a category.

The whole point is to surface animals you'd never have considered. A rat is one of the most affectionate, trainable, genuinely interactive animals you can keep, and virtually nobody puts it on their shortlist.

You never see a photo while answering. Images appear only on the result card. The whole premise collapses if you can see what you're picking.


Three things that make it different

1. It filters by what's legal where you live

You set your country. Anything not legal there is removed before scoring and never shown, however well it matched. Coverage is all of Europe — 44 countries, EU-27 plus the EEA, UK, Balkans and microstates.

The gate is layered, so EU states inherit accurate shared law rather than being guessed at 27 times:

Layer Instrument
EU Invasive Alien Species Union List Regulation (EU) 1143/2014
CITES / EU wildlife trade annexes Council Regulation (EC) 338/97
National positive lists Belgium, Netherlands, Luxembourg — scoped to mammals only
National banned lists Denmark, Norway, Iceland
Permit regimes UK Dangerous Wild Animals Act 1976, Switzerland

Absence of data resolves to hidden, never to legal. The two possible errors aren't symmetric: wrongly hiding an animal is an annoyance, wrongly showing one tells somebody they may buy an animal they can't legally own. Every country entry carries a confidence rating and cites the actual legal instrument.

This is not legal advice. Coverage is uneven and laws change. Confirm with your national authority before acquiring any animal.

2. Smell is a first-class dealbreaker

Odour is one of the most common reasons pets get rehomed, and a single "mess" slider serves it badly, because the failure modes genuinely differ. A ferret is musky in itself even descented. Male mice produce startlingly strong urine. An African Grey coats a room in feather dust. A corn snake is near-odourless but defecates rarely and enormously.

So the corpus scores four independent dimensions — odourAnimal, odourWaste, wasteVolume, danderDust — and:

  • Smell can eliminate, not just downrank. "I can't tolerate noticeable smell" removes ferrets and male mice outright.
  • Odour is scaled by your space. The same animal in a studio and a house with a spare room aren't the same proposition.
  • Waste odour is discounted by how often you'll clean; animal odour isn't. A guinea pig cage changed twice a week doesn't smell. A ferret smells however often you clean it. That distinction is why the dimensions are stored separately.

3. It needs no API key

The quiz engine and the legality gate are entirely local data, so Kindred is fully functional with no key at all. Keys are optional enrichment you add in Settings:

  • API Ninjas → natural-history facts on result cards: lifespan, weight, diet, habitat
  • Species+/CITES → live CITES listing refresh

No key is bundled. The free API Ninjas tier is 3,000 calls a month and non-commercial; shipping one key to every user of a public app would drain it within hours and breach their terms.


Run it

Nothing to install and no build step.

node tools/serve.js

Then open http://localhost:4321.

Verify the data and logic:

npm run check

That runs the schema and referential-integrity validator, then 43 tests covering the scoring engine and — most importantly — the fail-closed legality rule.


How matching works

candidates = allSpecies
  .filter(legalIn(country))        // status === 'legal' only
  .filter(passesHardConstraints)   // allergy, live food, lifespan, space,
                                   // budget, noise, days alone, effective odour
  .map(scoreAgainstProfile)

Two scores are reported separately as well as combined, because "perfect character match, but your flat is too small" is actionable and a single 68% isn't:

  • Personality — symmetric weighted distance. An aloof animal is wrong if you wanted closeness, but so is a needier one than you asked for.
  • Lifestyle — one-sided deficit. Surplus space, time or money is never a penalty; shortfall is. Scoring this symmetrically would punish someone with a big house for wanting a hamster.

Every result explains which of your answers it matched, and — more importantly — what you're signing up for that you didn't ask about.


Data

File What it holds
data/species/*.json The corpus, one file per group. Trait vectors, care requirements, odour profile, and sourceNotes justifying every rating
data/legality/baseline.json Default European status per species
data/legality/eu-ias.json EU Invasive Alien Species Union List
data/legality/cites.json Pre-baked CITES/EU annex snapshot
data/legality/countries/*.json Per-country regime, sources and overrides

Schemas live in data/schema/. Everything is validated in CI on every push.

139 varieties across 12 groups — rodents, rabbits, other small mammals, hoofed mammals, birds, poultry, snakes, lizards, chelonians, amphibians, invertebrates and fish. Ranging from a donkey to a colony of isopods.

The groups are about how an animal is kept, not what it's related to. Poultry is separate from birds because a flock of hens in a garden has almost nothing in common with a parrot in a room. fish is functionally the aquarium group and includes shrimp and corals.

No dogs or cats. They are the two animals every pet quiz already recommends, and they actively worked against the point of this one. All dog breeds are a single species with near-identical trait shapes, so twenty-odd of them clustered together and took most of the top results for any sociable persona — a search for an affectionate, interactive animal returned three cats and dogs in its top five. With them gone the same search returns a Fancy Rat, a Pacific Parrotlet, a Budgerigar, a Degu and a Guinea Pig.

The corpus deliberately includes animals you cannot have. Red-eared sliders, monk parakeets, African clawed frogs, giant African land snails, Siberian chipmunks and raccoon dogs are all in there and all banned EU-wide under the Invasive Alien Species Regulation. They exist so the legality layer has real cases to resolve, and because "this was an ordinary pet-shop animal until it escaped into European woodland" is worth knowing.

Black-tailed prairie dogs are in for the same reason. They score a perfect personality match for someone wanting a social, vocal, daytime animal that bonds closely — and are still hidden everywhere, because the EU banned imports of American rodents in 2003 after a monkeypox outbreak traced to them.


Attribution

Enrichment data from API Ninjas and Species+/CITES (UNEP-WCMC), used only when you supply your own key. Legality data compiled from the primary instruments cited in each country file.

MIT licensed. See LICENSE.

About

A personality-first pet matching quiz. Matches on temperament and what your life can sustain, not on looks - and filters by what is legal where you live.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages