Academic Tools
1citation_parser.py
citation_parser.py
Accessibility
12Accessible Theme Switcher Pattern
accessible_theme_switcher.js
Comprehensive theme switching implementation with accessibility features including screen reader announcements, keyboard navigation, localStorage pers...
altflow_accessible_alt_text.py
altflow_accessible_alt_text.py
Keyboard Navigation Patterns
keyboard_navigation_pattern.js
Comprehensive patterns for implementing keyboard navigation, including smooth scrolling with offset, focus management, and WCAG-compliant keyboard int...
link_remediation_pattern.py
link_remediation_pattern.py
modal-focus-trap-aria-overlay.js
modal-focus-trap-aria-overlay.js
Non-Invasive FocusTrap via MutationObserver
mutation-observer-focus-trap.js
Attaches a focus trap to a panel/drawer whose open/close state is controlled by a third-party script (or any code you don't want to modify). The Mutat...
numeric-shortcut-guard-typing-target.js
numeric-shortcut-guard-typing-target.js
Screen Reader Announcement Patterns
screen_reader_announcements.js
Comprehensive patterns for dynamically announcing content changes to screen readers using ARIA live regions. Essential for accessible SPAs and dynamic...
Skip Links and Landmark Navigation Pattern
skip_links_and_landmarks.html
Comprehensive pattern for implementing skip navigation links and proper HTML5 landmark regions for keyboard and screen reader accessibility.
Single-Button Theme Cycle Pattern
theme-cycle-single-button.js
Cycles through N themes with one button instead of one button per theme. The button's aria-label always tells screen readers both the current state an...
url_validation_pattern.py
url_validation_pattern.py
Hex Picker Accessibility Pattern (WordBlocks)
wordblocks-hex-picker-a11y-pattern.md
Admin Patterns
5================================================
admin-dashboard.html
express-bearer-admin-router.ts
express-bearer-admin-router.ts
health-check-pattern.py
health-check-pattern.py
hybrid-process-management.py
hybrid-process-management.py
service-registry-pattern.py
service-registry-pattern.py
Agent Orchestration
12agent_lifecycle_management.py
agent_lifecycle_management.py
Citation-aware document generation (PDF + DOCX from agent reports)
citation_aware_document_generation.md
CitationMonitor: live URL verification across agent outputs
citation_monitor_url_verification.md
hierarchical_agent_coordination.py
hierarchical_agent_coordination.py
Hierarchical Drummer/Camina synthesis (three-tier rollup)
hierarchical_drummer_camina_synthesis.md
multi_agent_data_models.py
multi_agent_data_models.py
multi_platform_bot_adapter.py
multi_platform_bot_adapter.py
parallel_agent_execution.py
parallel_agent_execution.py
phased_workflow_orchestrator.py
phased_workflow_orchestrator.py
provider_abstraction_pattern.py
provider_abstraction_pattern.py
task_decomposition_pattern.py
task_decomposition_pattern.py
task_tool_dispatch_pattern.py
task_tool_dispatch_pattern.py
Api Clients
35Data Fetching Patterns Guide
DATA_FETCHING_PATTERNS_GUIDE.md
api-gateway-llm-wrapper.ts
api-gateway-llm-wrapper.ts
arxiv_client.py
arxiv_client.py
base_provider_pattern.py
base_provider_pattern.py
batch-profile-enrichment-atproto.ts
batch-profile-enrichment-atproto.ts
bbc_news_client.py
bbc_news_client.py
bluesky-client-to-server-auth-sync.ts
bluesky-client-to-server-auth-sync.ts
cost_optimized_model_selection.py
cost_optimized_model_selection.py
Daily USD spend kill-switch for an LLM proxy
daily-usd-spend-killswitch.md
hybrid_free_api_provider.py
hybrid_free_api_provider.py
jina_web_scraper.py
jina_web_scraper.py
lazy_loading_provider_factory.py
lazy_loading_provider_factory.py
LLM Call with Cache + Offline Fallback (WordBlocks)
llm-cache-with-fallback-pattern.md
LLM tactic-cycling retry for content-filter recovery
llm-tactic-cycling-retry.md
llm_temperature_rejection_retry.py
llm_temperature_rejection_retry.py
location_services_client.py
location_services_client.py
manus-task-api-client.py
manus-task-api-client.py
multi-provider-llm-client.js
multi-provider-llm-client.js
multi_provider_abstraction.py
multi_provider_abstraction.py
noaa-arcgis-rest-api.py
noaa-arcgis-rest-api.py
Open-Meteo browser client — keyless forecast + UV + air quality
open-meteo-browser-client.md
openfoodfacts-api-pagination.py
openfoodfacts-api-pagination.py
openstreetmap-overpass-api.py
openstreetmap-overpass-api.py
paleobiology-database-api.py
paleobiology-database-api.py
Multi-Provider Fallback on Recoverable Errors
provider-fallback-on-recoverable-error.md
provider_adapter_pattern.py
provider_adapter_pattern.py
Runware API Reference (cross-project)
runware-api-reference.md
ssrf_protected_og_scraper.ts
ssrf_protected_og_scraper.ts
third-party-session-sync-client.ts
third-party-session-sync-client.ts
Token-gated provider federation with graceful degradation
token-gated-provider-federation.md
trpc_blob_upload_bluesky.ts
trpc_blob_upload_bluesky.ts
unesco-xml-api-parser.py
unesco-xml-api-parser.py
wikipedia_client.py
wikipedia_client.py
wolfram_alpha_client.py
wolfram_alpha_client.py
xai_vision_api_integration.py
xai_vision_api_integration.py
Async Patterns
18async_context_managers.py
async_context_managers.py
async_llm_operations.py
async_llm_operations.py
asyncio-singleton-lock.py
asyncio-singleton-lock.py
asyncio_background_thread.py
asyncio_background_thread.py
cancelled-flag-useeffect-cleanup.ts
cancelled-flag-useeffect-cleanup.ts
flask_asyncio_background_thread.py
flask_asyncio_background_thread.py
IframePostMessageBridge — promise-based request/response envelope over postMessage.
iframe-postmessage-bridge-with-timeouts.js
LLM prepass → overlap downstream gens with full payload
llm-prepass-then-full-overlap.md
multi-lane-priority-queue-with-abort.js
multi-lane-priority-queue-with-abort.js
Parallel coding agents with a consensus safety gate
parallel-coding-agents-with-consensus-gate.md
parallel_task_execution.py
parallel_task_execution.py
pendingRef: Pass Context Across an Async Cascade Without Threading
pending-ref-across-async-cascade.md
speculative-prefetch-depth-n-tree.js
speculative-prefetch-depth-n-tree.js
sse-streaming-client.js
sse-streaming-client.js
task_cancellation_timeout.py
task_cancellation_timeout.py
threadpool_concurrent_execution.py
threadpool_concurrent_execution.py
useref-for-high-frequency-event-tracking.ts
useref-for-high-frequency-event-tracking.ts
useref-stale-closure-cleanup.ts
useref-stale-closure-cleanup.ts
Bipolar Dashboard
3Multi-Source Data Generator Orchestration
multi-source-data-generator-orchestration.md
Realistic Content Generation Helpers
realistic-content-generation-helpers.md
Sine Wave Mood Cycle Pattern
sine-wave-mood-cycle-pattern.md
By Category
4Bluesky / AT Protocol Patterns
bluesky-patterns.md
Document Processing Snippets
document-processing.md
Git Index Repair Patterns
git-index-repair.md
Repository Maintenance Patterns
repository-maintenance.md
By Domain
1Accessibility Planning Patterns
accessibility-planning-patterns.md
By Pattern
132Async upstream → local artifact with poll endpoint
async-upstream-to-local-artifact-with-poll.md
Autosave preserves architecture neutrality during an in-flight council
autosave-preserves-architecture-neutrality.md
Bearer token in URL hash — shared-secret auth without a login screen
bearer-token-in-url-hash.md
Pattern: Flask Monolith to Blueprint Extraction
blueprint-extraction-pattern.md
Build-and-hold: animate a deterministic render by time-slicing its own compute
build-and-hold-deterministic-animation.md
Build stamp in /health: detecting stale installed PWAs
build-stamp-stale-pwa-reload.md
Cache-Buster Mismatch Trap (CSS bumped, JS not)
cache-buster-mismatch-trap.md
Cache + listeners + write-through localStorage — remote pulls trigger React re-renders
cache-listener-write-through.md
Caddy on_demand TLS permission (Caddy 2.7+)
caddy-on-demand-tls-permission.md
Merge Canonical + LLM Choices: Dedup by Label, Cap, Distinct Behavior
canonical-vs-llm-choice-merge.md
Canvas hit-testing via inverse geometry + in-context legend
canvas-lens-probe-and-legend.md
Pattern: Canonical Capability Registry
capability-registry-pattern.md
Capacitor 8 → iOS shipping recipe (Vite web app)
capacitor-ios-shipping-recipe.md
Pattern: Compaction with Re-Attachment
compaction-reattachment-pattern.md
Composite graph keys when same surface form appears in multiple languages
composite-graph-keys-for-same-spelled-nodes.md
Consensus-of-Four: adversarial review process
consensus-of-four-adversarial-review.md
Content Safety Classifier — SSE Buffer Split + Verdict Extraction Pattern
content-safety-classifier-sse-pattern.md
Context Pill + editingTarget: visible LLM scope bias
context-pill-and-editing-target-for-llm-scope.md
Server-wide credential-leak sweep
credential-leak-server-sweep.md
Cross-platform shell gotchas when diffing/syncing over SSH
cross-platform-shell-gotchas-ssh-sync.md
Cross-repo contract drift gate (copy + checksum manifest + sibling test)
cross-repo-contract-drift-gate.md
Cynic's binding dissent overriding external consensus
cynic-binding-dissent-over-external-consensus.md
Data-attribute theme cycle with CSS custom properties
data-attribute-theme-cycle.md
Dataset divergence composite score
dataset-divergence-composite-score.md
Date-seeded "X of the day" picker.
date-seeded-word-of-day.js
Debounced server sync with local-storage fallback
debounced-server-sync-with-local-fallback.md
Declarative Tray API with `[data-tray-section]` Buttons
declarative-tray-with-data-attribute-buttons.md
Default-off opt-in flip with localStorage backward-compat
default-off-opt-in-localstorage-flip.md
degenerate-result-rejection.py
degenerate-result-rejection.py
Design-spec "pixel-perfect" clause admits two readings
design-spec-pixel-perfect-clause-two-readings.md
Diff-acknowledgment prompt rule for LLM-driven branching narratives
diff-acknowledgment-prompt-rule.md
Dual time-zone display: render the same instant in two zones
dual-timezone-display-via-intl.md
Pattern: Durable System Prompt Instructions
durable-system-prompt-instructions.md
Pattern: Execution Spine Event Model
execution-spine-event-model.md
Pattern: Fail-Closed Shell Command Analysis
fail-closed-shell-command-analysis.md
Fail-open LLM pipeline with errors-as-data
fail-open-insight-pipeline.md
Fastlane: metadata-only uploads + device-prefix screenshot staging
fastlane-deliver-screenshot-staging.md
Tiny in-process job runner for Flask
flask-inmemory-job-runner.md
Flask Input Validation Pattern
flask-input-validation.md
Prefix-aware Flask under Caddy `handle_path`
flask-reverse-proxy-script-name.md
Font scale accessibility control
font-scale-a11y-control.md
`@functools.cache` singleton factory
functools-cache-singleton.md
git-filter-repo-key-scrub.md
git-filter-repo-key-scrub.md
Pattern: Git Log as Structured Status Feed
git-log-structured-status-feed.md
GitHub 100 MB-per-file limit: when binary assets exceed it
github-100mb-binary-asset-strategy.md
Global Default + Per-Entity Metadata Override
global-default-with-per-entity-metadata-override.md
GoatCounter Snippet Injection
goatcounter-snippet-injection.md
Headless Chrome FPS A/B measurement (and the idle-throttle trap)
headless-chrome-fps-ab-measurement.md
HuggingFace `load_dataset` with streaming fallback
hf-dataset-load-with-streaming-fallback.md
Pattern: Hook Lifecycle Infrastructure
hook-lifecycle-infrastructure.md
htm + ESM single-file React app (no build step)
htm-esm-single-file-react.md
IIFE-wrap classic `<script>` "modules" to avoid top-level const collisions
iife-wrap-classic-script-modules.md
Interactive seeded to-do list with check, edit, hide, reset, add
interactive-seeded-todo-with-overrides.md
iOS PWA: Composing safe-area-inset Into Bottom-Anchored Chrome
ios-pwa-safe-area-composition.md
Leaflet custom "locate me" control
leaflet-custom-locate-control.md
LLM-backed structured-edit engine with deterministic fallback
llm-backed-structured-edit-engine-with-fallback.md
Hard timeout on a (possibly hung) LLM call, with deterministic fallback — Flask/WSGI
llm-call-hard-timeout-with-fallback.md
LLM-emitted condition name guard (fail-open on phantoms)
llm-condition-name-guard-fail-open.md
LLM Content Guardrails Pattern
llm-content-guardrails.md
LLM gateway: module-level semaphore + 429 exp-backoff
llm-gateway-concurrency-and-retry.md
LLM Tool Calling Loop Pattern
llm-tool-calling-loop.md
Pattern: Memory with Path-Scoped Rules
memory-path-scoped-rules.md
Merge ranked lists from N sources, dedup, sort by priority + score
merge-ranked-sources-with-priority.md
Pattern: Multi-Source Drift Detection
multi-source-drift-detection.md
Pattern: Named-Array → Lookup Map Helper
named-array-lookup-helper.md
@Observable settings with UserDefaults write-through (no Combine)
observable-userdefaults-settings.md
Ollama "local" sentinel for keyless BYOK
ollama-local-sentinel-byok.md
Open-mode trusted-pair: dropping auth when the URL is the access boundary
open-mode-no-auth-trusted-pair.md
Package Independence Test
package-independence-test.md
Pattern: Parallel-Scaffold Blueprint Migration
parallel-scaffold-blueprint-migration.md
Partial-column-coverage surface-form fallback with per-row match_mode
partial-column-coverage-matchmode-fallback.md
Patch-id subset check for branch safety
patch-id-subset-check-for-branch-safety.md
Per-theme WCAG contrast locked in by unit tests
per-theme-wcag-contrast-test.md
Per-Turn Rule Prepend: surviving long-system-prompt drift
per-turn-rule-prepend-for-llm-drift.md
Snippet: Periodic Repo Hygiene Sweep
periodic-repo-hygiene.md
Pillow Dynamic Card Renderer Pattern
pillow-dynamic-card-renderer.md
Pillow PNG-thumb → JPEG sweep, bomb-safe
pillow-thumb-sweep-png-to-jpeg.md
Pattern: Plugin Enablement Precedence
plugin-enablement-precedence.md
pre-commit-untracked-secret-audit.md
pre-commit-untracked-secret-audit.md
Pattern: Prompt Boundary Splitting
prompt-boundary-pattern.md
Prose-Diff Above the JSON: making an op-based contract readable
prose-diff-for-op-proposals.md
Pattern: Provider Gateway Normalization
provider-gateway-normalization.md
Provider-Spec table collapse for multi-provider HTTP APIs
provider-spec-table-collapse.md
Snippet: Public Repo Cleanup Workflow
public-repo-cleanup-workflow.md
PWA Icon Generator: SVG → Raster PNGs With Maskable Variants
pwa-icon-generator-from-svg.md
PWA Rich Android Install Dialog Requirements
pwa-rich-android-install-dialog.md
PWA → iOS via xcodegen + WKWebView (bundled assets)
pwa-to-ios-bundled-wkwebview.md
PWA → iOS phone UX checklist
pwa-to-ios-phone-ux-checklist.md
Pattern: Reconstruct `.py` Source from `.pyc` Bytecode
pyc-to-py-source-reconstruction.md
Pattern: Recovery from Context Overflow and Failures
recovery-patterns-context-overflow.md
Redacted LLM error hints in UI
redacted-llm-error-hint.md
Migrate CDN-hosted thumbnails to local without re-downloading
regenerate-thumbnails-from-existing-fulls.md
Pattern: Registry-Driven Artifact Generation
registry-artifact-generators.md
Pattern: Remote Tool Caching
remote-tool-caching.md
Schema-Driven Form Renderer with Target Descriptors
schema-driven-form-renderer.md
Scrub-not-reimport when derived data has drifted from source-of-truth
scrub-not-reimport-when-derived-data-drifted.md
Self-healing LLM authoring pipeline
self-healing-llm-authoring-pipeline.md
Shell-adapter monkey-patch-render pattern
shell-adapter-monkey-patch-render.md
Sidecar markdown notes
sidecar-markdown-notes.md
Single-file canonical nav for static + Flask multi-page sites
single-file-canonical-nav.md
Single-user server-JSON persistence
single-user-server-json-persistence.md
Pattern: Skills as Executable Specs
skills-as-executable-specs.md
SSH probe via stdin-fed bash
ssh-stdin-fed-bash-probe.md
SSH tar-pipe through a relay host
ssh-tar-pipe-through-relay.md
Detecting Stale CLAUDE.md After Rebuild / Swap Commits
stale-claudemd-after-rebuild-commits.md
Stale-serve for caches keyed on a fast-rotating revision
stale-serve-rev-keyed-cache.md
streamed-json-prefix-extract.js
streamed-json-prefix-extract.js
Pattern: Streaming Tool Execution
streaming-tool-execution.md
Bidirectional subpath-prefix helper for Caddy-mounted services
subpath-prefix-bidirectional.md
Generative-app core: value types, shareable seeds, off-main render
swift-generative-core-value-types.md
SwiftUI offscreen snapshot for visual QA of a Canvas view
swiftui-offscreen-face-snapshot.md
Swiss Design Timeline Component
swiss-design-timeline.md
Text-Length-Scaled Auto-Advance
text-length-scaled-auto-advance.md
Text-rolodex attribution pattern
text-rolodex-attribution.md
Thorny-first rebase conflict ordering
thorny-first-rebase-conflict-ordering.md
Three-runtime parity contract (Python ↔ JS ↔ Swift)
three-runtime-parity-contract.md
Three-theme CSS with legacy alias compatibility shim
three-theme-css-with-legacy-aliases.md
Gerstner waves that stay stable when the water plane follows the camera
threejs-gerstner-follow-cam.md
Three.js scene-depth pre-pass (packed RGBA8)
threejs-scene-depth-prepass.md
Tolerant JSON extraction from LLM output
tolerant-llm-json-extraction.md
Pattern: Topocentric Overlay on a Heliocentric Scene
topocentric-overlay-on-heliocentric-scene.md
Pattern: URL-Driven Entry Mode for SPAs
url-driven-entry-mode.md
useOverrides + InlineEdit — editable-blocks pattern over seeded data
use-overrides-edit-hook.md
Vanilla bottom sheet with breakpoint reparenting (no duplicate DOM)
vanilla-bottom-sheet-breakpoint-reparent.md
Vanilla JavaScript State Management Pattern
vanilla-js-state-management.md
`visibilitychange` → sync on tab focus
visibilitychange-sync-on-tab-focus.md
Vite + Caddy + wouter — SPA at a non-root sub-path
vite-caddy-subpath-spa-with-wouter-base.md
Installable PWA served at a subpath (vite-plugin-pwa + Caddy handle_path)
vite-plugin-pwa-installable-at-subpath.md
Vite PWA: precache `public/` static assets for true offline + the config-shadowing footgun
vite-pwa-offline-static-assets.md
Brace-balanced wikitext template tokenizer
wikitext-brace-balanced-tokenizer.md
WKWebView native shell: the hardening delegates
wkwebview-native-shell-delegates.md
XCUITest screenshot automation for WKWebView apps
xcuitest-webview-screenshot-automation.md
By Project
2Snippet: Public Release Gitignore — FastAPI + SvelteKit Project
blueballs-public-release-gitignore.md
Snippets: linguistic-api Phase 1 Consolidation
linguistic-api-phase1-consolidation.md
Cli Tools
15analyze-distribution.py
analyze-distribution.py
Bash ANSI Cursor Animation Skeleton
bash-ansi-cursor-animation-skeleton.md
Bash ANSI Modular Effect Library
bash-ansi-modular-effect-library.md
Bash: Cron + cURL API Automation
bash-cron-api-automation.md
Snippet: Formatted Terminal Output with Colors and Boxes
bash-formatted-output.md
Bash: Multi-Platform Skill Sync
bash-multi-platform-skill-sync.md
Bash: Publish Each Entry from a JSON Manifest
bash-publish-from-json-manifest.md
Bash Terminal Coordinate Geometry
bash-terminal-coordinate-geometry.md
Snippet: CLI Output Parsing from Noisy Sources
cli-output-parsing.md
color-palette.py
color-palette.py
d3-scaffold.py
d3-scaffold.py
fetch-arxiv.py
fetch-arxiv.py
interactive_cli_with_llm.py
interactive_cli_with_llm.py
Multi-Repo Bash Sweep with GitHub Visibility Filter
multi-repo-sweep-public-only.md
Snippet: Parallel CLI Execution
parallel-cli-execution.md
Configuration
2SPA auth strategy: which pattern fits
spa-auth-strategy-decision-tree.md
vite-strict-port-caddy-proxy.js
vite-strict-port-caddy-proxy.js
Configuration Management
8Cross-host git-repo parity when one host can't reach the remote
cross-host-git-repo-parity.md
Cross-runtime precedence ladder (JS + Python must agree)
cross-runtime-precedence-ladder.md
Dead-letter field detection (storage → wire → renderer)
dead-letter-field-detection.md
Bump the localStorage key version to unpin a changed default
localstorage-key-version-bump-to-unpin-defaults.md
Multi-host config sync preserving per-host secrets
multi_host_config_sync.md
multi_source_config.py
multi_source_config.py
Run a service from its source repo, not a deployed copy
run-service-from-repo-not-a-copy.md
Version-control an /etc config dir and prune its backup pile
version-control-etc-config-and-prune-backups.md
Controls
1Reset Button Pattern for Visualizations
reset-button-pattern.md
Css
5Adopt a design system on a legacy page by aliasing its existing CSS vars
design-system-adoption-via-var-aliasing.md
Strip dead CSS rules by selector (brace-matched, assertion-guarded)
strip-dead-css-rules-by-selector.md
Tabs: active-indicator + divider hairline overlap
tab-active-indicator-hairline-overlap.md
Terminal-green theme (the `dr.eamer.dev/clocks` ASCII look)
terminal-green-theme.md
Theme variants via body class — single shared CSS, multiple palettes
theme-variants-via-body-class.md
Data Pipelines
4multi-strategy-geocoding.py
multi-strategy-geocoding.py
Notion-export Markdown → HTML (python-markdown)
notion-markdown-to-html.md
Single-seam canonical → prototype adapter
single-seam-canonical-prototype-adapter.md
world-bank-api-refresh.py
world-bank-api-refresh.py
Data Processing
14auto-metadata-generation.py
auto-metadata-generation.py
canonical_key_reconciliation.py
canonical_key_reconciliation.py
Casual Data Annotations Pattern
casual-data-annotations.md
data_aggregation_pipeline_patterns.py
data_aggregation_pipeline_patterns.py
data_sanitization_patterns.py
data_sanitization_patterns.py
dataset-quality-validation.py
dataset-quality-validation.py
format_conversion_patterns.py
format_conversion_patterns.py
json_narrative_parser.py
json_narrative_parser.py
json_validation_patterns.py
json_validation_patterns.py
llm-json-parse-with-regex-fallback.ts
llm-json-parse-with-regex-fallback.ts
polars-dataset-profiling-at-scale.py
polars-dataset-profiling-at-scale.py
pydantic_validation_patterns.py
pydantic_validation_patterns.py
Rolling History Summary from Flat Event Log
rolling-history-summary-from-event-log.md
sibling_db_heavy_load_sqlite.py
sibling_db_heavy_load_sqlite.py
Data Visualization
18Canvas Migration Pattern for Large Point Datasets
canvas-migration-pattern.md
Canvas2D neon-peg glow renderer
canvas2d-neon-peg-glow.md
Chart.js Responsive Dashboard Patterns with Theme Support
chart-js-responsive-dashboards.js
Complete patterns for creating interactive, themeable dashboards using Chart.js. Includes bar charts, radar charts, bubble charts, and theme switching...
Chronological Visualization Date Assignment Pattern
chronological-visualization-date-assignment.md
D3.js Force-Directed Network Visualization with Mobile Support
d3-force-network-visualization.js
Complete pattern for creating interactive force-directed graphs showing relationships between entities. Includes mobile touch handling, filtering, too...
D3.js Geographic Point Sampling Patterns
d3-geographic-point-sampling.md
D3.js Radial Tree Pattern
d3-radial-tree-pattern.md
D3.js Sankey Flow Diagram Pattern
d3-sankey-flow-pattern.md
Data Transformation and Utility Functions for Visualizations
data-transformation-utils.js
Comprehensive collection of utility functions for data loading, parsing, formatting, filtering, and state management in data visualization projects. P...
Pattern: Date-Based Radial Positioning for Tree Nodes
date-based-positioning.md
leaflet-choropleth-map.js
leaflet-choropleth-map.js
Non-Linear Time Axis + Wide-Range Magnitude Encoding
nonlinear-time-axis-and-magnitude-encoding.md
Pattern: Radial Constraint with Clamped Offsets
radial-constraint-pattern.md
Radial Force Constraint Tuning Pattern
radial-force-constraint-tuning.md
Snippet: README Generation for Data Visualizations
readme-generation-datavis.md
SVG Performance Sampling Pattern
svg-performance-sampling.md
Interactive Timeline Animation with Projection Capability
timeline-animation-interactive.js
Complete pattern for creating animated timelines showing historical progression with future projections. Includes playback controls, speed adjustment,...
Viewport Culling Pattern for Map Visualizations
viewport-culling-pattern.md
Database Patterns
6dexie-indexeddb-typed-crud.ts
dexie-indexeddb-typed-crud.ts
indexeddb-eviction-sentinel.ts
indexeddb-eviction-sentinel.ts
The NULL-distinct UNIQUE-index footgun (and the deterministic-key fix)
null-distinct-unique-index-dedupe.md
SQLite WAL Mode Performance Configuration
sqlite-wal-performance.md
sqlite_flask_simple_pattern.py
sqlite_flask_simple_pattern.py
sqlite_threading_safe.py
sqlite_threading_safe.py
Datavis
9Aurora Hover Sync Pattern
aurora-hover-sync.md
Branch Color Mapping for Tree Visualizations
branch-color-mapping.md
Geocoding Cache Pattern for Data Pipelines
geocoding-cache-pattern.md
French Republican decimal time + equinox-true calendar (JS)
republican-decimal-time-and-calendar.md
Social Card Generator (Pillow)
social-card-generator-pil.md
Social Card Meta Tags Pattern
social-card-meta-tags.md
Three.js readPixels → ASCII pipeline
threejs-readpixels-to-ascii.md
Time Markers Overlay Pattern
time-markers-overlay.md
Drift-free UTC clock tick loop (with a11y minute-gating)
utc-clock-tick-loop.md
Deduplication
2file_deduplication.py
file_deduplication.py
pillow_ahash_dedup.py
pillow_ahash_dedup.py
Design Systems
7Snippet: Collapsible Details Pattern (Pure HTML/CSS)
collapsible-details-pattern.md
Dashboard Variant Design Patterns
dashboard-variant-patterns-2026-02-14.md
Filing Cabinet Interface Pattern
filing-cabinet-interface.md
Glassmorphism CSS Design Pattern
glassmorphism-css-pattern.md
mobile-first-responsive-controls.md
mobile-first-responsive-controls.md
Snippet: Sidebar UX Restructure Pattern
sidebar-ux-restructure.md
Typewriter Animation Pattern
typewriter-animation.md
Error Handling
1graceful_import_fallbacks.py
graceful_import_fallbacks.py
File Operations
8base64-datauri-download.js
base64-datauri-download.js
client-side-file-size-validation.js
client-side-file-size-validation.js
comprehensive_document_parser.py
comprehensive_document_parser.py
config_file_loading.py
config_file_loading.py
Directory Cleanup Patterns
directory-cleanup-patterns.md
module_discovery.py
module_discovery.py
path_handling_utils.py
path_handling_utils.py
yaml_frontmatter_markdown_parser.py
yaml_frontmatter_markdown_parser.py
Geepers Chat Demo
3Bottom-Anchored Peek Notification
bottom-peek-pill.md
Cross-Surface Pin Sync (Hex Tile → Magic Panel)
cross-surface-pin-sync.md
Smart Hex Expansion (Open-Slot Aware)
smart-hex-expansion.md
Html
3circle_menu_fanout.html
circle_menu_fanout.html
Snippet: Lazy Symbol Loader with IntersectionObserver + MutationObserver
lazy-symbol-loader-intersection-observer.md
Subresource Integrity (SRI) for CDN Scripts
sri-hash-cdn-security.html
Langgraph Patterns
1react_agent_pattern.py
react_agent_pattern.py
Llm Patterns
1Rolling continuity "state bible" for long LLM conversations
rolling-continuity-state-bible.md
Mobile Capacitor
2capacitor-platform-detection.ts
capacitor-platform-detection.ts
capacitor-plugin-bridge.ts
capacitor-plugin-bridge.ts
Patterns
6Code Snippets - 2026-01-05 Checkpoint
2026-01-05-checkpoint.md
FastAPI CORS Security Pattern
fastapi-cors-security.md
FastAPI User Feedback System Pattern
fastapi-user-feedback-system.md
Groupchat Patterns — Harvested 2026-03-06
groupchat-patterns-2026-03-06.md
Python Specific Exception Handling Pattern
python-specific-exception-handling.md
Tree-Merge Cycle Guard
tree-merge-cycle-guard.md
Process Management
1service-manager-pattern.py
service-manager-pattern.py
Publishing
7Audit a published package for vendored / secret leaks
audit-published-package-for-vendored-leaks.md
Snippet: Awesome-List PR Submission Workflow
awesome-list-pr-workflow.md
Snippet: Bulk GitHub Repository Creation
bulk-github-repo-creation.md
Snippet: Bulk GitHub Repo Humanize + README Audit
bulk-repo-humanize-audit.md
Multi-Platform Dataset Publishing
multi-platform-dataset-publishing.md
Snippet: Multi-Repo Skill Rename Convention
multi-repo-skill-rename-convention.md
New Public Repo Checklist
new-public-repo-checklist.md
Python
1wordclock_span_solver.py
wordclock_span_solver.py
Python Test Patterns
3Pattern: HTTP Client Test Fixtures with Realistic Mock Payloads
http-client-mock-conftest.md
Pattern: Mocking LLM Provider SDK Imports in pytest
llm-provider-mock-pattern.md
Per-test SQLite isolation for a module-global DB manager (pytest)
pytest-per-test-sqlite-isolation.md
Real Time Dashboards
4chartjs_socketio_integration.html
chartjs_socketio_integration.html
dashboard_state_management.py
dashboard_state_management.py
flask_socketio_broadcaster.py
flask_socketio_broadcaster.py
socketio_emit_from_background.py
socketio_emit_from_background.py
Security
7api-key-env-scrub.py
api-key-env-scrub.py
Caddy `respond 404` regex: blocking server-side files inside a public web root
caddy-respond-404-regex-file-blocking.md
Pattern: Fail-Closed Shell Command Analysis
fail-closed-shell-analysis.md
sri-cdn-security.md
sri-cdn-security.md
HTML Sanitization Function - XSS Prevention
xss-prevention-escapehtml.js
xss-prevention-tooltip.md
xss-prevention-tooltip.md
xss-safe-dom-construction.js
xss-safe-dom-construction.js
Sentiment Analysis
1vader_sentiment_analyzer.py
vader_sentiment_analyzer.py
Social Media Clients
4at-protocol-uri-construction.ts
at-protocol-uri-construction.ts
at_protocol_facet_computation.ts
at_protocol_facet_computation.ts
Post an image + alt text to Bluesky from the browser — no SDK, no server.
bluesky-browser-post-with-alt.js
bluesky_at_protocol_client.py
bluesky_at_protocol_client.py
Spatial Algorithms
2hex-grid-smart-spawn.ts
hex-grid-smart-spawn.ts
inter-cluster-proximity-lines.ts
inter-cluster-proximity-lines.ts
Streaming
2paragraph_stream_buffer.py
paragraph_stream_buffer.py
section_stream_buffer.py
section_stream_buffer.py
Streaming Patterns
7anthropic-web-search-sse-citations.py
anthropic-web-search-sse-citations.py
Buffered Tag Parser for Streaming Text
buffered-tag-parser.md
flask_sse_blueprint_ollama_provider.py
flask_sse_blueprint_ollama_provider.py
multi-provider-sse-mixed-yield-normalization.py
multi-provider-sse-mixed-yield-normalization.py
Hardened NDJSON→SSE streaming proxy (Flask)
ndjson-to-sse-hardened-proxy.md
Per-section unlock state machine for streaming generation UIs
per-section-unlock-state-machine.md
sse_streaming_responses.py
sse_streaming_responses.py
Telegram Bot Patterns
1Privacy-Respecting Bot Patterns
privacy-patterns.md
Telegraph
2telegraph_llm_tool.py
telegraph_llm_tool.py
telegraph_publisher.py
telegraph_publisher.py
Testing
2Blob round-trip through fake-indexeddb in Vitest/jsdom (the {} gotcha)
fake-indexeddb-blob-roundtrip-vitest.md
pytest_fixtures_patterns.py
pytest_fixtures_patterns.py
Tool Registration
3Pattern: Deterministic Tool Pool Assembly
deterministic-tool-pool.md
mcp_stdio_server_pattern.py
mcp_stdio_server_pattern.py
swarm_module_pattern.py
swarm_module_pattern.py
Trpc
2jwt-cookie-context.ts
jwt-cookie-context.ts
procedure-tiers.ts
procedure-tiers.ts
Typescript Package Exports
1SNIPPET: Handling Major Version Dependency Upgrades
dependency-major-version-upgrade.md
Ui Patterns
18Additive shell adapter — one app brain, many DOM geometries
additive-shell-adapter-render-monkeypatch.md
Chat-first editor onboarding affordances (creation lane, prompt deck, mood theming)
chat-first-editor-onboarding-affordances.md
Confirm-before-speak (never auto-speak generated output)
confirm-before-speak-aac.md
CSS-variable-driven SVG silhouettes with explicit-fill swatches
css-var-svg-silhouette-with-swatches.md
DOM-teleport overlay (focus-mode pattern)
dom-teleport-overlay.md
Focus-trap for modal overlays (vanilla JS)
focus-trap-modal.md
Host-agnostic mount module pattern
host-agnostic-mount-module.md
Long-Press Touch Drag vs Canvas Pan
long-press-drag-vs-canvas-pan.md
Multi-store fresh-start coordination
multi-store-fresh-start.md
Persistent floating "customer-service-bot" chat dock
persistent-floating-chat-dock.md
Platform-Gated Optional Prop (Hide UI Without Runtime Flags)
platform-gated-optional-prop.md
Recently-added filter + badge
recently-added-filter.md
Responsive Horizontal Controls Pattern
responsive-horizontal-controls.md
Singleton In-Flight Spinner
singleton-in-flight-spinner.md
Small pixel-art glyphs: hate-symbol hazard + reliable digit/flip patterns
small-pixel-glyph-hazards-and-flip-clocks.md
Sort dropdown that composes with `[hidden]` filtering
sort-composes-with-hidden-filter.md
SwiftUI WidgetKit + Canvas: two gotchas that bite
swiftui-widgetkit-canvas-face-gotchas.md
Web Speech API TTS wrapper (speak / cancel / support-check)
web-speech-tts-wrapper.md
Utilities
18ascii-language-detection.ts
ascii-language-detection.ts
base-class-pattern.py
base-class-pattern.py
blob-url-lifecycle.js
blob-url-lifecycle.js
cache_manager_redis_fallback.py
cache_manager_redis_fallback.py
crypto_utilities.py
crypto_utilities.py
datetime_utilities.py
datetime_utilities.py
embedding_generation_similarity.py
embedding_generation_similarity.py
env_config_utilities.py
env_config_utilities.py
ES6 Module Lazy Loading Pattern
es6-lazy-loading-pattern.md
flask_image_handling.py
flask_image_handling.py
logging_utilities.py
logging_utilities.py
rate_limiter.py
rate_limiter.py
redis_cache_manager.py
redis_cache_manager.py
retry_decorator.py
retry_decorator.py
scan-dir-build-platform-manifests.py
scan-dir-build-platform-manifests.py
string_utilities.py
string_utilities.py
timezone_and_duration_utilities.py
timezone_and_duration_utilities.py
TypeScript: JSON File State Persistence
typescript-json-state-persistence.md
Vision Patterns
4Provenance bulk-classify pattern
provenance-bulk-classify.md
Snippet: Three.js Tooltip Guard Clause
threejs-tooltip-guard-clause.md
vision_client.py
vision_client.py
vision_enrich_with_references.py
vision_enrich_with_references.py
Web Clocks
15Accessibility
accessibility.md
Canvas Animation & Rendering
canvas-animation.md
Color & Color-Space Math
color.md
CSS Effects & Tricks
css-tricks.md
Interaction & Input
interaction.md
Layout & Responsive Canvas
layout-responsive.md
Math, Easing & Interpolation
math.md
Miscellaneous
misc.md
Numeral Systems & Encoders
numeral-systems.md
Performance
performance.md
Physics & Simulation
physics.md
SVG
svg.md
Text Rendering
text-rendering.md
Time Math & Scheduling
time-math.md
WebGL & Shaders
webgl-shaders.md
Web Frameworks
32Audio/Video Feature Quick Start Guide
AUDIO_VIDEO_QUICK_START.md
anonymous_owner_token_with_email_claim.py
anonymous_owner_token_with_email_claim.py
Device Pairing → Opaque Bearer Token Auth (web-to-native handoff)
device-pairing-token-auth.md
Flask + SQLite-WAL versioned KV store — two-writer sync without a database
flask-sqlite-wal-kv-store.md
flask-sse-endpoint.py
flask-sse-endpoint.py
flask-sse-passthrough.py
flask-sse-passthrough.py
flask_api_gateway_route_templates.py
flask_api_gateway_route_templates.py
flask_audio_file_handler.py
flask_audio_file_handler.py
flask_authentication_decorators.py
flask_authentication_decorators.py
flask_blueprint_organization.py
flask_blueprint_organization.py
flask_blueprint_with_url_prefix.py
flask_blueprint_with_url_prefix.py
flask_cross_db_attach_readonly.py
flask_cross_db_attach_readonly.py
flask_factory_pattern_with_blueprints.py
flask_factory_pattern_with_blueprints.py
flask_limiter_per_blueprint_key.py
flask_limiter_per_blueprint_key.py
flask_limiter_proxyfix_real_client_ip.py
flask_limiter_proxyfix_real_client_ip.py
flask_middleware_patterns.py
flask_middleware_patterns.py
flask_multi_provider_api_proxy.py
flask_multi_provider_api_proxy.py
flask_multipart_file_upload.py
flask_multipart_file_upload.py
flask_prefixed_cache_multi_tenant.py
flask_prefixed_cache_multi_tenant.py
flask_socketio_setup.py
flask_socketio_setup.py
flask_video_generation_handler.py
flask_video_generation_handler.py
Gunicorn + Eventlet Deployment Guide for Flask-SocketIO
gunicorn_socketio_deployment.md
gunicorn_socketio_deployment.py
gunicorn_socketio_deployment.py
html_to_markdown_edit_roundtrip.py
html_to_markdown_edit_roundtrip.py
Idempotent log-on-merge endpoint (buffer-then-patch client)
idempotent-log-on-merge.md
Loading States and Error Handling Pattern for API Calls
javascript_loading_states_pattern.js
Robust pattern for managing loading states, error handling, and success feedback in frontend applications.
llm_image_proxy_subject_style_split.py
llm_image_proxy_subject_style_split.py
Playwright social-card / OG-image capture from a live page
playwright-social-card-capture.md
Quota-guarded speculative prefetch
quota-guarded-prefetch.md
Renderless Manager → React Event Bridge
renderless-manager-to-react-event-bridge.md
Self-registering renderer registry with shape-sniffing (vanilla JS)
self-registering-renderer-registry.md
telegram_html_formatter.py
telegram_html_formatter.py
Websocket Patterns
3react-ws-collab-hook.ts
react-ws-collab-hook.ts
websocket_client_with_reconnect.py
websocket_client_with_reconnect.py
websocket_firehose_reconnection.py
websocket_firehose_reconnection.py