Skip to content

Instantly share code, notes, and snippets.

View alanbsmith's full-sized avatar
👋

Alan B Smith alanbsmith

👋
View GitHub Profile
@alanbsmith
alanbsmith / graph-db-ingestion-pipeline-architecture.md
Created October 14, 2026 11:09
Graph DB Ingestion Pipeline Architecture

Graph DB Ingestion Pipeline Architecture

This document defines the computational ingestion system designed to map flat, human-authored Markdown documentation continuously into an explicit, computable Knowledge Graph Ontology without introducing structural errors via probabilistic LLMs.

Data Processing Pipeline

graph TD
    M[Human Edited Markdown Doc] -->|Trigger Sync| P1[Phase 1: Deterministic AST Parser]
 P1 -->|Extract Frontmatter & JSON Tree| P2[Phase 2: Ontology Structural Mapper]
@alanbsmith
alanbsmith / automated-benchmark-pipeline.md
Last active October 14, 2026 11:04
Automated Benchmark Pipeline Architecture

Automated Benchmark Pipeline Architecture

This document details the transition of the TypeScript evaluation system from local developer execution to automated workflows running within GitHub Actions on public GitHub repositories, integrated with Confident AI for continuous telemetry tracking.

GitHub Actions Continuous Automation Loop

graph TD
    PR[Developer Push / Pull Request] -->|Triggers Workflow| GHA_Job
@alanbsmith
alanbsmith / evaluation-benchmarking-and-resources.md
Last active October 14, 2026 11:39
Evaluation Benchmarking & Resources

Evaluation Benchmarking & Resources

This document outlines the core architecture, telemetry points, and metrics for running a clean, dual-track benchmark comparing a Pure Unstructured Vector RAG track against a Pure Structured Knowledge Graph Ontology track.

By isolating these variables, we can empirically evaluate how data structure alone impacts an agent's performance when querying complex design system documentation.

Conceptual Telemetry Architecture

graph TD
@alanbsmith
alanbsmith / canvas-kit-style-utility-migration.md
Last active May 30, 2025 17:47
WIP style util migration guide

Canvas Kit Style Utility Migration

Overview

Style props are a convenient mechanism for modifying styles directly on components with CSS-in-JS. Unfortunately, they also come with a significant runtime cost which negatively impacts our user experience. Because of those concerns, we've introduced new styling utilities that allow you to get the convenience of CSS-in-JS, but has much better runtime performance.

To start, we'll work through the process of migrating a Box component.

Migrating Box Components

name palette cssVar value l c h
red-50 red --cnvs-palette-red-50 oklch(0.964 0.018 26.1) 0.964 0.018 26.1
red-100 red --cnvs-palette-red-100 oklch(0.922 0.040 27.5) 0.922 0.040 27.5
red-200 red --cnvs-palette-red-200 oklch(0.867 0.071 27.1) 0.867 0.071 27.1
red-300 red --cnvs-palette-red-300 oklch(0.801 0.114 27.1) 0.801 0.114 27.1
red-400 red --cnvs-palette-red-400 oklch(0.729 0.167 26.7) 0.729 0.167 26.7
red-500 red --cnvs-palette-red-500 oklch(0.650 0.211 26.8) 0.650 0.211 26.8
red-600 red --cnvs-palette-red-600 oklch(0.531 0.185 27.6) 0.531 0.185 27.6
red-700 red --cnvs-palette-red-700 oklch(0.449 0.165 27.9) 0.449 0.165 27.9
red-800 red --cnvs-palette-red-800 oklch(0.370 0.135 28.4) 0.370 0.135 28.4
@alanbsmith
alanbsmith / brand-colors.csv
Created April 8, 2025 16:10
Canvas brand colors
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
name,cssVar,value,red,green,blue
"alert-lightest",-"-cnvs-brand-alert-lightest","rgb(255,238,217)",255,238,217
"alert-light","--cnvs-brand-alert-light","rgb(252,212,159)",252,212,159
"alert-base","--cnvs-brand-alert-base","rgb(255,161,38)",255,161,38
"alert-dark","--cnvs-brand-alert-dark","rgb(243,139,0)",243,139,0
"alert-darkest","--cnvs-brand-alert-darkest","rgb(192,108,0)",192,108,0
"alert-accent","--cnvs-brand-alert-accent","rgb(255,255,255)",255,255,255
"common-focusOutline","--cnvs-brand-common-focus-outline","rgb(8,117,225)",8,117,225
"common-errorInner","--cnvs-brand-common-error-inner","rgb(222,46,33)",222,46,33
"common-alertInner","--cnvs-brand-common-alert-inner","rgb(255,161,38)",255,161,38
name cssVar value red green blue
cinnamon-100 --cnvs-base-palette-cinnamon-100 rgb(255,239,238) 255 239 238
cinnamon-200 --cnvs-base-palette-cinnamon-200 rgb(252,201,197) 252 201 197
cinnamon-300 --cnvs-base-palette-cinnamon-300 rgb(255,134,125) 255 134 125
cinnamon-400 --cnvs-base-palette-cinnamon-400 rgb(255,83,71) 255 83 71
cinnamon-500 --cnvs-base-palette-cinnamon-500 rgb(222,46,33) 222 46 33
cinnamon-600 --cnvs-base-palette-cinnamon-600 rgb(163,27,18) 163 27 18
peach-100 --cnvs-base-palette-peach-100 rgb(255,243,240) 255 243 240
peach-200 --cnvs-base-palette-peach-200 rgb(255,194,179) 255 194 179
peach-300 --cnvs-base-palette-peach-300 rgb(255,149,122) 255 149 122
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alanbsmith
alanbsmith / test-gradient.svg
Last active September 5, 2024 21:27
test gradient
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alanbsmith
alanbsmith / us-cities.json
Created February 22, 2024 21:23
Mock US CIty Data
This file has been truncated, but you can view the full file.
[
{
"city": "New York",
"cityAscii": "New York",
"stateId": "NY",
"stateName": "New York",
"countyFips": "36081",
"countyName": "Queens",
"lat": "40.6943",
"lng": "-73.9249",