Tool Open source

hairline

Hairline is a dependency-free, ESM JavaScript library of interactive isometric line figures for React and other DOM environments. Its figures respond to pointer movement, including pillars that rise around the pointer, layered objects that separate, cards that stand up, and other scenes such as terminals, keyboards, routers, and commit graphs.

View repository Visit site Mentioned in 1 video ↓

Overview

The package provides React components and DOM functions, supports Svelte-style actions, and lets each figure accept intensity, theme, accessible label, and caption callbacks. Figures draw at a 5:4 aspect ratio; the library includes server-rendering behavior, reduced-motion handling, shared animation scheduling, CSS custom properties for theming, and no runtime dependencies. It is distributed through npm under the MIT license.

Hairline also provides hairline-create, a skill for coding agents that generates new figures as standalone HTML files according to the project's rules.

What hairline is used for

1 use taken from transcripts — each links to the moment in the video.

  • Provides interactive isometric scenes for websites, including pointer-reactive pillars and exploded objects that can be embedded in React or other DOM pages. It supports customization and includes a skill for helping coding agents create matching figures.

Videos mentioning hairline

1 in the library.