Rough.js

Rough.js

Rough.js is an open-source JavaScript library that allows you to create sketchy/hand-drawn styled shapes and lines on the web. It is lightweight and easy to integrate, enabling you to add hand-drawn elements to your web applications.
Rough.js screenshot

Rough.js: An Open-Source JavaScript Library for Hand-Drawn Web Elements

Rough.js is an open-source JavaScript library that allows you to create sketchy/hand-drawn styled shapes and lines on the web. It is lightweight and easy to integrate, enabling you to add hand-drawn elements to your web applications.

What is Rough.js?

Rough.js is an open-source JavaScript library that allows you to create sketchy/hand-drawn styled vectors and lines in the browser. It uses an algorithm to generate shapes with rough, scratchy edges to make them look hand-drawn.

Some key features of Rough.js include:

  • Lightweight - only about 13kB minified and gzipped
  • Draws sketchy/hand-drawn lines, circles, rectangles, polygons, curves, SVG paths, and texts
  • Highly customizable - control roughness, bowing, stroke width, fill style, opacity and more
  • Animatable elements
  • Runs on both Canvas and SVG
  • React and Vue integrations available
  • TypeScript support
  • MIT license

Rough.js is great for adding hand-drawn elements to web applications, such as maps, diagrams, illustrations, and data visualizations. It's a simple way to give elements a natural, imperfect, hand-drawn look. Many find the resulting aesthetics more inviting, fun, and relaxing compared to sterile computer graphics.

It works in all modern browsers and has no dependencies. The small size and focused scope makes Rough.js easy to integrate into web projects to add sketchy styles.

Rough.js Features

Features

  1. Creates sketchy/hand-drawn shapes and lines
  2. Lightweight library
  3. Easy to integrate into web apps
  4. Works with Canvas and SVG

Pricing

  • Open Source

Pros

Lightweight and performant

Lots of configuration options

Active development and support

Free and open source

Cons

Limited to sketchy/hand-drawn style

Less features than full graphics libraries

Requires learning new API

Reviews & Ratings

Login to Review
No reviews yet

Be the first to share your experience with Rough.js!

Login to Review

The Best Rough.js Alternatives

Top Development and Graphics & Visualization and other similar apps like Rough.js

Here are some alternatives to Rough.js:

Suggest an alternative ❐

Rough Charts icon

Rough Charts

Rough Charts is a free online diagramming and charting tool used to create a wide variety of visuals including flowcharts, org charts, mind maps, sitemaps, wireframes and more. With an easy drag-and-drop interface, Rough Charts makes it fast and simple for teams to collaborate on diagrams and charts in real-time.Some...
Rough Charts image
Chart.xkcd icon

Chart.xkcd

Chart.xkcd is an open-source JavaScript charting library that creates charts and graphs inspired by the simple, hand-drawn style of diagrams seen in the popular xkcd webcomic. Developed by timber.io, Chart.xkcd seeks to provide a more informal, playful alternative to traditional data visualization libraries.While not suitable for presentations or publication-quality graphics,...
Chart.xkcd image
RoughViz icon

RoughViz

roughViz is an open-source JavaScript data visualization library that allows you to create sketchy, hand-drawn styled charts and graphics for web applications. It is built on top of D3.js and RoughJS and makes it easy to take standard SVG visualizations and give them a hand-drawn, sketched aesthetic.Some key features and...
RoughViz image