dulnan/lazy-brush
Smooth drawing with mouse, finger or other pointing device observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2935
- days_rel: n/a
- days_push: 718
- n_releases_24m: 0
Adoption not part of the score
1379 stars · 37 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small TypeScript/JavaScript library that implements the 'lazy brush' math for smooth freehand drawing on HTML canvas with a mouse, finger, or any pointing device. It acts as a proxy between raw pointer input and drawing, only moving the brush when the pointer leaves its lazy area radius.
Use cases
- draw smooth lines with a mouse on a canvas app
- implement a finger-painting feature on touch devices
- reduce jitter in freehand sketching input
- add a drawing tool to a web whiteboard
- smooth pointer input for a signature pad
When to choose
- you need smooth freehand strokes from imprecise mouse or touch input
- you want a tiny, dependency-free math library you can drop into any canvas drawing loop
- you want configurable smoothing via radius and friction
When to avoid
- you need a full drawing application with layers, brushes, and undo out of the box
- your project is not canvas/pointer based
- you need vector or pressure-sensitive stylus handling
Facets
library · maturity stable
graphics animation web-development frontend graphics browser canvas-drawing smooth-lines pointer-input lazy-brush drawing-smoothing nodejs javascript typescript
3 sources
- readme: https://github.com/dulnan/lazy-brush · fetched 2026-08-28 · 1febc887c66c
- homepage: https://lazybrush.dulnan.net/ · fetched 2026-08-29 · b6c7e43f0fb1
- registry_npm: https://registry.npmjs.org/lazy-brush · fetched 2026-08-29 · d76be48ba8b3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dulnan/lazy-brush | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="dulnan/lazy-brush")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem