# Kin chart (/kin/chart), built 16 Oct 2026 ~11:55 PM CT by Libra

Live (locked, lock-all password): https://library.nunascape.com/kin/chart
Repo: /workspace/lib-deploy, commits 1dc93a3 (page + generator) and 7bc3ec9 (index, map, nav, checklist). Deployed to nunascape-library-direct.

## Data
- Source: Claude's KIN TILE SYSTEM round-two files, /workspace/claude/raw/kin-tile-files/ (kin_compatibility.json, kin_filters.csv, kin_tiling_sketches.zip).
- Rule: turns only, no flips. The page names this rule at the top. Flips-allowed ("mirror = same tile", Aaron 16 Oct 9:24 PM CT) shows as "not on file yet".
- 321 tiling sets: 23 single tiles, 285 pairs (50 minimal, 235 non-minimal), 6 triples and 7 fours (all minimal). Sizes 5 to 7: proven none.
- Files on the site (all encrypted by the lock-all build): content/kin/chart.html (dataset inline), content/kin/data/kin-noflip.json (same dataset as a file),
  kin-noflip-sketches-core.json (86 sketches: solo and minimal, 0.9 MB) and kin-noflip-sketches-pairs.json (235 non-minimal pairs, 2.4 MB).
- Sketches are Claude's SVGs, only trimmed to the visible window, about 10 KB each.

## Page
1. Charts (inline SVG, no libraries; every chart follows the filters):
   - Tiling sets per set size (1 to 7): minimal and non-minimal, proven-never counts, and an outline for the count matching the filters.
   - Filter funnel for sizes 2 to 7: a log-scale line per size across Claude's 8 filter stages, plus a numbers table.
   - Network: the 37 families in any tiling. Kin A and Kin B are in two inner circles, the mixers in an outer ring (Mixers 1 top, Mixers 2 bottom).
     Thick lines are the 47 minimal kin family pairs (19 Kin A, 10 Kin B, 21 cross). Thin lines are kin+mixer pairs; mixer-mixer pairs show with a toggle.
     Hubs (4·19, 4·24) are ringed. Triples and fours are drawn as dashed lines when they're in the filter.
   - Pair matrix heatmap, 54x54, sorted by group: tiles / none up to 56 cells / proven never, with the diagonal showing solo. Tap a cell to open that pair in the gallery.
   - Tiling partners per family: a bar for each of the 37 families, stacked by the partner's group. The 17 families with no tiling are listed.
2. Start here: one ranked list per size (1, 2, 3, 4), with a sketch thumbnail for each set. Order: minimal first, then smallest repeat, then fewest tiles per repeat, then simplest ratio.
   Top of each list: 1 = 4·01 (4 cells). 2 = 4·10+4·11, 4·24+4·37, 4·25+4·39 (8 cells, 1:1). 3 = 4·05+4·17'+4·19 (16 cells, 2:1:1). 4 = 4·10+4·19+4·24'+4·33' (16 cells, 1:1:1:1, Claude's "tidiest").
3. Gallery: all 321 sketches, one at a time. Navigate by touch swipe (pointer events), the arrow buttons, or the left/right keys.
   It's grouped by size, then by group (Kin A, Kin B, Kin A × Kin B, Kin + mixer, Mixers 1, Mixers 2, Mixers 1 × Mixers 2), then minimal/non-minimal.
   Each set is tagged with size, group, minimal, repeat cells, tiles per repeat, ratio, all-solo, hub and mirrored shape. Jump buttons per group sit under the viewer, with a thumbnail grid by group below.
4. Filters: the bar has All / Single tiles / Pairs (2) / Triples (3) / Fours (4) and "More filters". The menu holds Family (multi-select; contains any or contains all), Group,
   Repeat size (cells), Solo tilers only, Hub families, Minimal sets (all / minimal / non-minimal), One of each (1:1…) and Handedness (uses a mirrored shape or not).
   Active filters show as removable chips, with a Clear all button. The filters are a data-driven FILTERS list in the page: one entry per filter.

## Adding the flips-allowed data later
Run `python3 tools/kin_chart/build_kin_chart.py --src <folder with Claude's new files> --rule flips --label "Flips allowed (mirror = same tile)" --default noflip`,
then rebuild and deploy. The rule switch picks up every content/kin/data/kin-<rule>.json. This assumes the same file schema as round two.
If the flips data has no Kin A/Kin B split, the group lists adapt, but the network layout assumes two kin groups and would need a look.

## The "pattern swipe left/right"
No page on the site has a touch swipe on patterns. The Patterns page (/patterns, content/patterns.html, Claude's LIBRARY PATTERNS file) steps left/right with the arrow keys and ‹ › buttons, and a click advances.
- Catalogue: steps through 7,295 groupings and 862 coverings.
- Cousins: steps through the 73 cousin shapes, shelved as Tiles alone / Tiles with a partner / No partner found yet / Always leaves gaps.
- Living: steps through the Game of Life patterns.
The Cousins viewer is the likely match. Its data uses different counts (35 tile alone, 262 pairs tile, 32 open), which matches the flips-allowed solo count rather than this no-flip run.
The /picker page is the only real touch-swipe viewer, but it is a keep/skip picker for 1,860 boards (swipe right to keep, left to skip), not a pattern browser.
The grouping and filters were NOT added to /patterns: it's a 3.3 MB Claude-origin file installed byte for byte, with a different rule. They live only on /kin/chart.

## Not on file
The flips-allowed rerun. Non-minimal triples and fours. Sketches for the 29 one-handed pairs with no tiling found up to 56 cells.

## Cousin board (added 17 Oct 2026 ~12:30 AM CT, commit c5b9910, deploy 5be0898)
Section "00 Cousin board" (#board), first section on the page (above the filter bar and 01 Charts), with a TOC link. Generated by tools/kin_chart/board.py
(called from build_kin_chart.py; cached in tools/kin_chart/board_built.html so a later --rule flips build keeps it). Outlines: /workspace/cousins/export/cousins.json svg_outline
(checked cell-for-cell against Claude's kin_compatibility.json cousins: all 73 same handedness, so ′ = mirror). Groups and suggested sets come from kin_compatibility.json; asserts fail the build if they drift.
Page group colours (Kin A teal, Kin B rose, Mixers 1 blue, Mixers 2 violet, grey for never-tile; under-four drawn grey and dashed). Static: does not follow the filters; clicking a family sets the Family filter, clicking a set opens it in the gallery.
