Skip to content

v0.1.0

Choose a tag to compare

@trailofdad trailofdad released this 30 May 14:09
· 35 commits to main since this release

Initial release

Morphkit is a client-side genetic calculation engine for ball python morph breeding.

What's included

  • MK-1 Validation — normalizes raw input, fills implicit single-allele loci, validates sex presence for sex-linked morphs
  • MK-2 Punnett Engine — Cartesian matrix across all loci, Hardy-Weinberg probability verification
  • MK-3/4 Aggregator — phenotype resolution, allelic combo matching, poss-het math, lethality and congenital defect flagging
  • MK-5 Web Worker — off-main-thread calculation with typed message protocol
  • MK-6 Network — syncDictionary with stale-while-revalidate localStorage cache

Install

npm install @trailofdad/morphkit

Dictionary

Trait data is maintained separately in morphkit-dictionary and fetched at runtime via CDN — no rebuild required when morphs are added or updated.