BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveOrdinals

p5.js on Ordinals

p5.js on Ordinals refers to reusable inscriptions of the open-source p5.js creative-coding library, rather than to one official on-chain release. Through Ordinal recursion, an HTML inscription can load an inscribed p5.js runtime and use it for sketches, animation and generative artwork. The entries below come from the original Ordinals Public Goods catalogue and the separately maintained Wizards of Ord Elements list. Neither project is the upstream maintainer of p5.js.

The upstream library

p5.js is a browser-based JavaScript library for drawing, interaction, animation, audio-visual experiments and creative coding. It was created by Lauren Lee McCarthy and developed by a wider community supported by the Processing Foundation. It is a descendant in spirit of Processing, not a Bitcoin-specific protocol. The upstream repository identifies its software licence as LGPL-2.1; that licence should not be confused with the separate terms for the p5.js website or documentation. Upstream project description · LGPL-2.1 at v2.0.1

An ordinary web sketch can use a hosted library URL. An Ordinals sketch may instead request a precise on-chain inscription through /content/<INSCRIPTION_ID>. That substitutes an immutable content reference for a replaceable hosted file, but does not automatically make every dependency, font, image or other external fetch part of the chain. See Ordinal recursion.

Recorded on-chain variants

The following IDs are distinct inscriptions unless the same ID appears twice. The labels in the catalogue reflect its contributors' assertions about version or format; they are not all independent checks of the actual JavaScript bytes.

Library or component Inscription ID Catalogued format Evidence
p5.js 1.6.0 255ce0c5a0d8aca39510da72e604ef8837519028827ba7b7f723b7489f3ec3a4i0 gzip, with a client-side extraction example Inscription · Source example
p5.js 1.9.0 b6a50f5ba932b0ea7f652d9d28e59eced47bc6f8376c25e02d8b3457bb60ac8fi0 ord/br Inscription · Wizards of Ord
p5.js 1.9.0 cc5cf94da24c1f6f0d435ccca78c24e98ca30adb1f3b7c81b9ab28ceb6cb628fi0 gzip, with an explicit loader Inscription · Source example
p5.js 1.9.2 7e37766541506810ba6399c4b2735121f508bd9209df43dd200bf2316b014594i0 ord/br according to Elements; contradictory uncompressed label in original catalogue Inscription · Elements source
p5.js 1.11.2 13a5c8e41dfc110514b450b2f15317988c0aaf276d3dbdcca9aa3c7d0b2188a7i0 Brotli (br) Inscription record · Elements source
p5.js 2.0.1 bed725759768159b0868fe0e6c9cd26a4c437f9e0903f70893edad280e35d843i0 Brotli (br) Inscription record · Elements source
p5.sound 1.0.2, separate sound extension 935801da5aaeab291b68748b4ccb315f35a88b16096125db45899f2085d727c5i0 unspecified in original catalogue Inscription · Source catalogue

The 2.0.1 inscription is present in the Wizards of Ord publisher's list but absent from the original public-goods catalogue, even though it predates that catalogue's July 2025 last commit. It is included here as an independently sourced addition, not retrospectively attributed to jokie88's list. Elements library table · Last catalogue commit

Version dates are not inscription dates

The Elements table labels 1.11.2 with 28 November 2024 and 2.0.1 with 23 April 2025, under a column called Release Date. The inscription explorer separately records 1.11.2 at 30 December 2024, 20:53:33 UTC (block 877,101) and 2.0.1 at 27 April 2025, 00:46:37 UTC (block 894,118). Its records identify lifofifo as inscriber, text/javascript as content type and br as content encoding for both. The release-date labels should therefore not be mistaken for the Bitcoin reveal timestamps. Publisher's table · 1.11.2 explorer record · 2.0.1 explorer record

One 1.9.2 inscription, two inconsistent labels

The jokie88 catalogue lists the exact same 7e377665…594i0 identifier twice, once as Brotli and again as not zipped, with a malformed link in the second row. These are not two separate verified editions. The Elements documentation explicitly treats that ID as a Brotli-enabled library loaded by a normal script tag; its authors also publish a SHA-1 comparison claiming the served script matched the upstream p5.js 1.9.2 build (52cc687d6d49e6a5ac135245d3232836233c113b). This is a reproducible publisher claim, not a byte comparison independently performed by BOMB. Original rows · Publisher checksum example

Loading models and source examples

Two loading patterns coexist. The older, explicitly gzip-wrapped resource needs code that retrieves and decompresses the bytes before executing the library. The 1.6.0 source example fetches a text response, base64-decodes it and invokes fflate.gunzipSync before evaluation. A second example loads a helper called gzipLoader alongside a p5.js 1.9.0 gzip resource. These are descriptions of the published examples, not guarantees that the scripts run unchanged inside every present-day inscription sandbox. 1.6.0 example · 1.9.0 gzip example

In the other pattern, an ord/br resource is served with the appropriate HTTP content-encoding semantics, allowing the browser to load it directly as JavaScript after decompression. The Wizards of Ord's standalone example names /content/7e37766541506810ba6399c4b2735121f508bd9209df43dd200bf2316b014594i0 in a script element, then uses p5.js to make a pixelated image-based artwork. This is a concrete example of how a recursive dependency can be used; the existence of an example does not measure wider adoption. Publisher documentation

These variants may have different APIs, dependencies and loading expectations. Applications should test the exact runtime and server headers before committing immutable artwork. A reference to p5.js without version and inscription ID is not sufficient to reproduce the original execution environment.

What this enables

Generative art on Bitcoin
A sketch can use p5.js drawing, randomness, geometry and animation from an inscription rather than reinscribing the entire library with every work.
Composable creative tools
A shared p5.js runtime can be combined with inscribed images, fonts, audio and project-specific scripts. The reusable dependency belongs to the shared software layer documented at Ordinals Public Goods.
Determinable dependency versions
An artist can pin a particular version even after an upstream library changes. Reproducibility still requires knowing how the client loads the resources, and which non-chain inputs the work uses.
Links between creative coding and the metaverse
p5.js can render interactive visualisations, procedural environments and interfaces used in the broader Metaverse and Bitmap ecosystem. This is a statement about technical capabilities, not a claim that every example listed here was used in a Bitmap application.

Provenance and unresolved checks

The publisher's inscription metadata for 1.11.2 and 2.0.1 names upstream GitHub release files. This does not by itself prove the content matches those files. The Ordinals Public Goods catalogue explicitly warns that its resources have not been vetted.

Open question
Independently fetch, decode and compare the JavaScript contents of each listed inscription against a pinned upstream build; record byte hashes, actual response headers and the date of the check.
Open question
Resolve the original catalogue's contradictory 1.9.2 compression labels using the on-chain envelope and a reproducible serving test, rather than counting the same inscription twice.
Open question
Trace independently verifiable works that actually depend on these inscription IDs, beyond the publishers' demonstration examples.
Open question
Determine how p5.js 2.x compatibility changes affect existing on-chain sketches and document only tested differences.