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 3 videos ↓

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

3 uses 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.

  • A dependency-free TypeScript library of six isometric line figures (rising pillars, a card tray, a spinning turntable, etc.) that respond to the pointer, for lightweight interactive hero visuals. Draws into any DOM element with a React wrapper, configurable via CSS variables, plus a companion skill that lets coding agents draw new figures.

  • Gives your website a collection of interactive line illustrations that respond to your cursor—over 30 figures with adjustable colors and movement strength. Works with React or plain web projects, and includes a coding agent skill for creating your own.

Videos mentioning hairline

3 in the library.