# p5.js

> A friendly tool for learning to code and make art

Source: https://talira.ai/catalog/p5-js-q9s1j5yd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [design / generative art](https://talira.ai/categories/design/generative-art), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: web[^1]
- Licence: LGPL-2.1[^3]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source; supported by donations.
- Free tier: yes[^2]
- Plugins: yes[^4]
- Backed by: [Processing Foundation](https://talira.ai/orgs/processing-foundation.md)
- Creator: Lauren Lee McCarthy, p5.js creator and lead 2013-2020
- Funding: non-profit[^5]
- Sponsors: Sovereign Tech Fund, Mozilla Foundation

p5.js is a free and open source [JavaScript](https://talira.ai/catalog/javascript-jwpzc8t6.md) library for creative coding: drawing, animation, interactive sketches, audio-visual and experimental work in the browser, based on the core principles of Processing. Sketches can be written straight away in the p5.js Web Editor in a browser, or by loading the library file in any web page. It has expansive reference documentation with visual examples in many languages, tutorials, WebGL support and a catalogue of community-made add-on libraries, with sound in the separate p5.sound.js library. The project is stewarded by the Processing Foundation, and its leads have said p5.js will not add any new features except those that increase access.

## Links

- Website: https://p5js.org/
- GitHub: https://github.com/processing/p5.js
- Docs: https://p5js.org/reference/

## Problems it solves

- I want to learn to code by making visual art and animations
- draw shapes, colours and animations in the browser with a few lines of JavaScript
- teach a beginner coding class where students see their results right away
- make an interactive generative art sketch that reacts to the mouse and keyboard
- start sketching with code in my browser without installing anything
- create audio-reactive visuals for a web page
- build a 3D sketch with WebGL without learning a full 3D engine
- port my Processing sketches to run on the web
- an accessible creative coding library with examples and docs in my own language

## Features

- 2D drawing on HTML canvas: shapes, colour, images, text
- animation loop with setup() and draw()
- mouse, keyboard and touch interaction
- WebGL mode for 3D
- online p5.js Web Editor to write and share sketches
- reference with visual examples, translated into several languages
- community-made add-on libraries
- sound through the separate p5.sound.js library
- available as a single file, from a CDN or from npm

## Limitations

- Sound support is a separate library (p5.sound.js), not part of p5.js itself[^1]

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.56 out of 1.
Signals: backing 0.90, extensibility 0.20.

- backed by Processing Foundation
- created by Lauren Lee McCarthy, p5.js creator and lead 2013-2020
- funding: non-profit
- sponsored by Sovereign Tech Fund, Mozilla Foundation
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Processing](https://talira.ai/catalog/processing-mn8fy4ta.md): A flexible software sketchbook and a language for learning how to code
- [three.js](https://talira.ai/catalog/three-js-9wh2wwxe.md): JavaScript 3D library
- [openFrameworks](https://talira.ai/catalog/openframeworks-1dkbk08n.md): Open source C++ toolkit for creative coding
- [Fabric.js](https://talira.ai/catalog/fabric-js-q1s2njt5.md): A JavaScript HTML5 canvas library with an interactive object model and SVG parser

## Sources

[^1]: https://p5js.org/download/ (checked 23 Nov 2026)
[^2]: https://p5js.org/about/ (checked 23 Nov 2026)
[^3]: https://github.com/processing/p5.js/blob/main/license.txt (checked 23 Nov 2026)
[^4]: https://p5js.org/libraries/ (checked 23 Nov 2026)
[^5]: https://processingfoundation.org/ (checked 23 Nov 2026)
