Skip to content
Blog
R

Rough.js

Hand-drawn, sketchy-looking graphics for canvas and SVG.

Verdict: is Rough.js a fit?

Good fit for

  • Whiteboard and sketch-style explainers

Not a fit for

  • Polished brand motion

Install

  1. npm

    npm install roughjs

    Source: npm

Not verified: we have not run these commands. They come from the listed sources.

Context

Rough.js draws lines, shapes and paths that look sketched by hand. In a video it gives whiteboard-style explainers and diagrams a friendly, informal look.

Key facts

  • Draws lines, curves, arcs, polygons, circles, ellipses and SVG paths on both Canvas and SVG.

    README

    Documented. Based on official documentation and published sources; not run by us.
  • The npm package ships CommonJS, ESM and browser IIFE bundles.

    README, Install

    Documented. Based on official documentation and published sources; not run by us.
  • Shapes fill with hachure lines by default; fillWeight controls line thickness.

    README, Filling

    Documented. Based on official documentation and published sources; not run by us.

Strengths and limitations

Strengths

  • Distinctive style in one import.
  • Tiny and stable.

Limitations

  • No releases since November 2023 (stable, but not actively developed).
  • Style only; you still need an animation library to move things.

Works well with

Tools that sit next to Rough.js in the same stack.

Tools that work with Rough.js
ProjectLicenseLanguageLayerStars
HyperFrames logo
HyperFrames

Write HTML, render it to MP4 - built with coding agents in mind.

Apache-2.0 · 80.4k stars

Apache-2.0TypeScriptRender engine80.4k
GSAP logo
GSAP

The JavaScript animation platform - now free, including every plugin.

Standard 'No Charge' GSAP License · 30.3k stars

Standard 'No Charge' GSAP Licensenot OSIJavaScriptAnimation30.3k
Anime.js logo
Anime.js

A lightweight, MIT-licensed JavaScript animation engine.

MIT · 74.4k stars

MITJavaScriptAnimation74.4k

Sources

  1. Rough.js on GitHub (accessed )
  2. rough-stuff/rough README (accessed )

Spotted a mistake or outdated fact?Report an error(opens a GitHub issue).