Phil Gearphilgear.dev
creativeTextile & Data Science Studio
Published: 2026-03-24

Hearth & Sett: The Custom Loom & Highland Heritage Studio

Where Highland Weaving Meets In-Browser Columnar Data Science & Botanical Longevity

An in-browser Pan-Celtic textile loom and heritage data science studio bridging 226 lineages, 2,390+ sept surnames, DuckDB-WASM Parquet analytics, and 3D Oklab color science.

Pan-Celtic Lineages226 Lineages (Alba · Éire · Cymru)
Genealogical Septs2,390+ Historical Surnames
Heritage Tartans2,583 Thread Count Records
Data Science EngineDuckDB-WASM + Parquet Lake
Visual PhysicsApache ECharts 6.1 + WebGL 3D
Accessibility100% WCAG 2.2 AAA Contrast
#DuckDB WASM#Apache ECharts#Highland Weaving#Pan-Celtic Genealogies#Parquet#Color Science#Neuroscience#WCAG 2.2 AAA

Architecture Highlights

  • •In-browser DuckDB-WASM engine querying partitioned Parquet datasets with sub-millisecond SQL response.
  • •Apache ECharts 6.1 & WebGL 3D canvas mapping Oklab perceptual color gamuts and force-directed kinship networks.
  • •Procedural SVG & CSS textile engine simulating authentic warp-and-weft 2/2 twill, herringbone, and basket weaves.
  • •Mathematical Scottish Register of Tartans parser calculating ends-per-inch (EPI), Shannon entropy, and spatial FFT harmonics.
  • •Zero-telemetry client-side architecture generating 4K wallpapers and Weaver's WIF mill production specifications.

Engineering Hurdles Solved

  • •Running complex relational graph traversals and multidimensional color gamut rotations on low-power mobile GPUs without frame drops.
  • •Designing an open genealogical kinship model (Càirdeas) that welcomes all 2,390+ sept surnames without DNA gatekeeping or commercial paywalls.
  • •Calibrating authentic Highland plant dyestuffs (bog myrtle, lichen, alder bark) against synthetic illuminants using spectral metamerism curves.

Executive Overview

Hearth & Sett is an in-browser Pan-Celtic textile loom, genealogical kinship studio, and color data science observatory operating at colours.philgear.dev. Recreated and expanded from the foundational Sugar & Tartan exploration, it departs from sterile digital color pickers by treating color as physical woven threads with tactile weight, ancestral kinship, and neurosensory calming power.

The platform unites the authentic mathematical thread counts recorded in the Scottish Register of Tartans with an open Pan-Celtic genealogical graph covering 226 lineages and 2,390+ historical sept surnames across Scotland, Ireland, and Wales.

Grounded in client-side columnar data architecture (DuckDB-WASM + Parquet) and hardware-accelerated Apache ECharts 6.1, Hearth & Sett enables visitors to explore textile mathematics, kinship networks, and 3D perceptual color gamuts with zero latency, zero advertising, and zero data egress.

The Custom Loom Workbench
Fig 1.0 —The Custom Loom Workbench: Real-time procedural rendering of the Clan Ross Modern sett (STA #1389) in 2/2 twill, complete with live thread-count calibration, yarn density meters, and zero-egress 4K wallpaper synthesis.
Heritage Analytics Studio Header
Fig 2.0 —Heritage Analytics Studio: Force-directed genealogical kinship network connecting 226 Pan-Celtic lineages and 2,390+ sept surnames, backed by an in-browser DuckDB-WASM columnar data lake.

Seven Scientific Perspectives: Apache ECharts 6.1 & DuckDB-WASM

Rather than presenting textiles as passive decorative patterns, Hearth & Sett deconstructs weaving into seven distinct data science perspectives rendered through hardware-accelerated Apache ECharts and WebGL:

1. Pan-Celtic Kinship & Sept Network (tab-network)

An interactive force-directed graph modeling historical alliances, sept adoptions, and territorial confederations (Càirdeas).

  • Spans Scotland (Highlands, Lowlands, Borders, Galloway, Islands), Ireland (Éire), and Wales (Cymru).
  • Includes an integrated Kinship Path-Finder computing shortest traversal paths between allied surnames (e.g., tracing MacCulloch and Gear to Clan Ross, or Tyrie and MacMartin to Clan Cameron).
  • Completely open: rejects exclusionary commercial DNA paywalls in favor of historical open-source civic kinship.

2. 3D Perceptual Color Gamut in Oklab Space (tab-gamut3d)

An interactive WebGL 3D volumetric scatter plot mapping all 546 studio color tokens into the Oklab color space:

  • Evaluates lightness (L), green-red opponent axis (a), and blue-yellow opponent axis (b).
  • Contrasts the earthy, low-chroma gamut of 18th-century Highland vegetable dyes (crottle lichen, bog myrtle, elderberry, alder bark) against modern confectionery pastels.
  • Proves mathematical uniformity across lightness gradients, preventing visual banding in digital weave simulations.
3D Oklab Color Gamut Scatter Plot in ECharts GL
Fig 3.0 —3D Color Gamut (Oklab): Hardware-accelerated WebGL scatter volume comparing natural Highland botanical dyestuff coordinates against modern synthetic pigments, ensuring perceptual uniformity.

3. Sett Spectra & Mill Ends-Per-Inch (tab-spectra)

Bridges digital screen design with physical industrial weaving:

  • Translates sett thread counts into physical reed numbers, warp ends-per-inch (EPI), and picks-per-inch (PPI).
  • Exports standardized Weaver’s WIF (Weaving Information File) formats directly readable by computer-controlled industrial looms (AVL, Louët, Toika).

4. Shannon Information Entropy (tab-entropy)

Calculates the statistical information entropy (H = -Σ pᵢ log₂ pᵢ) of every tartan sett in the registry:

  • Measures the balance of pattern complexity versus predictability.
  • Demonstrates why symmetrical tartans maintain cognitive visual balance even across complex 150+ thread repeats.

5. Spatial Harmonics via Fast Fourier Transform (tab-fourier)

Applies a 1D Fast Fourier Transform to the linear thread sequences:

  • Decomposes stripe width rhythms into spatial harmonic frequencies.
  • Visualizes the optical “cadence” of tartans, explaining why certain setts appear vibrating or energetic while others produce serene, meditative rhythms.

6. Spectral Metamerism & Illuminant Simulation (tab-metamerism)

Simulates how wool fibers dyed with traditional botanical pigments appear under differing optical spectra:

  • Compares Standard Illuminant D65 (noon daylight), A (2856K tungsten domestic bulb), F11 (fluorescent office lighting), and Candlelight (1900K).
  • Identifies metameric failure points to ensure fabrics look cohesive whether viewed in sunlight or beside an evening fireplace.

7. In-Browser DuckDB-WASM Columnar Lake (tab-duckdb)

A self-contained client-side analytics laboratory powered by @duckdb/duckdb-wasm:

  • Loads Parquet files directly into browser WebAssembly memory without sending queries to an external backend.
  • Enables visitors to execute instant SQL queries aggregating 2,583 historic tartans, thread distributions, and lineage hierarchies with execution times under 15 milliseconds.

The Neuroscience of Hearth & Sett: Dr. David Eagleman’s Lens

Why does the tactile geometry of woven threads produce an immediate sense of domestic calm? Neuroscientist Dr. David Eagleman provides the scientific framework for understanding cross-modal sensory architecture:

1. Cross-Modal Synesthesia (Wednesday Is Indigo Blue)

In his research on synesthesia, Eagleman demonstrated that sensory cortices are deeply interconnected rather than isolated.

  • Hearth & Sett pairs optical hues with tactile wool friction and nostalgic confectionery flavor memories (Citrus Zest, Cinnamon Burn, Heather Honey, Winter Peat).
  • Engaging the parietal cortex in cross-modal processing creates holistic pattern recognition, reducing the cognitive friction of abstract digital interfaces.

2. The Cognitive Operations of Creativity (The Runaway Species)

Eagleman and Anthony Brandt identified three fundamental cognitive operations driving human innovation:

  • Bending: Altering scale and proportion. The historical Clan Ross sett is bent into 14 distinct weave densities (twill 2/2, herringbone, reeded lattices, basket weaves).
  • Breaking: Stripping a physical artifact down to atomic primitives. The heavy Scottish woolen blanket is decomposed into pure thread-count frequencies and optical wavelength vectors.
  • Blending: Synthesizing disparate conceptual worlds. The martial history of Highland woolens is fused with the gentle warmth of domestic hearths and modern browser data science.

3. Somatosensory Ergonomics & Digital Fatigue (Livewired)

Standard flat digital user interfaces induce sensory fatigue because phosphor pixels lack tactile friction or physical affordances. In Livewired, Eagleman shows that human neurobiology thrives on structured physical cues. By rendering color within mathematical warp and weft intersections, the brain interprets depth, texture, and physical security—mitigating the eye strain of prolonged screen exposure.


Highland Botanical Longevity & 0.10 Hz Vagal Pacing

Hearth & Sett integrates holistic restorative principles inspired by Scottish ethnobotany and autonomic nervous system regulation:

  1. Highland Phytonutrient Palette: Celebrates native restorative flora—wild mountain bilberry (Vaccinium myrtillus), antioxidant-rich bog myrtle, rowan berry, Scots pine needles, and heather honey.
  2. 0.10 Hz Vagal Resonant Pacing: Built-in rhythmic visual cues guided by a 6-breaths-per-minute cycle (0.10 Hz), stimulating the vagus nerve to enhance heart rate variability (HRV) and induce parasympathetic calming while designing setts.
  3. Joyful 4K Wallpaper Studio: A one-click client-side canvas engine that renders crisp, high-resolution 4K and mobile wallpapers in Clan Ross and custom colorways, providing a warm, uplifting background for everyday workspaces with zero data tracking.

The Sett Mathematics: From Highland Registry to Web Canvas

Authentic Scottish tartans follow standardized thread notation recorded by the Scottish Register of Tartans (e.g., Clan Ross Modern STA #1389: R24 K4 R2 K4 R24 G48 K4 G2 K4 G24...). The custom loom parses these sett strings directly into CSS grid lines, SVG procedural weave masks, and industrial WIF files:

// Deterministic Pan-Celtic Sett Thread Parser & WIF Exporter
export interface TartanThread {
  color: string;
  count: number;
}

export function parseSettNotation(
  settString: string, 
  paletteMap: Record<string, string>
): TartanThread[] {
  const tokens = settString.trim().split(/\s+/);
  return tokens.map(token => {
    const match = token.match(/^([A-Z]+)(\d+)$/);
    if (!match) throw new Error(`Invalid sett token: ${token}`);
    const [, colorCode, countStr] = match;
    return {
      color: paletteMap[colorCode] || '#3D1C02',
      count: parseInt(countStr, 10),
    };
  });
}
Hearth & Sett Official Sett Repeat
Fig 4.0 —Scottish Register of Tartans Symmetrical Repeat: 152-thread repeat (C/24 K4 S2 K4 C24 P12 N2 P2 N2 P/12). Formatted for statutory submission to the National Records of Scotland in Edinburgh.

Colophon & Ethical Craftsmanship Directives

In accordance with the PhilGear Humane Engineering & Radical Privacy Directives:

  1. Zero-Egress Client-Side First: All DuckDB-WASM SQL processing, ECharts 3D WebGL rendering, and 4K wallpaper synthesis occur 100% inside the user’s browser. Zero data packets leave the client.
  2. Zero Third-Party Telemetry: No tracking beacons, analytics scripts, or behavioral telemetry pixels exist in the codebase.
  3. Inclusive Civic Kinship: Rejects corporate genetic profiling in favor of open historical sept linkages where anyone carrying ancestral surnames can freely trace their heritage.
  4. Deterministic WCAG 2.2 AAA Contrast: Every color combination and textual surface undergoes algorithmic relative luminance testing, guaranteeing high-contrast accessibility (7:1+ to 16:1) across all light and dark viewing conditions.

Explore More Systems

View full portfolio of AI architectures, creative technology, and open systems.

All Projects