Onchain Art Composability: Artblocks pushing for permanency

December 15th, 2024

Onchain Art Composability: Art Blocks and the dependency problem

In 2021 I wrote about why permanency matters in NFTs, and the most interesting case was Art Blocks. They had already put the generative script of every artwork on chain, which is beautiful: the code that makes the art lives as long as Ethereum lives. But that script depends on libraries, p5.js above all, and the libraries were still served from CDNs. If p5.js disappears from the CDN, you own a script that nobody can run.

The art was permanent. The thing needed to see it was not. Art Blocks has been working on exactly that gap.

The dependency registry

The first piece is what they call the Dependency Registry: a fully on chain software registry where dependency releases can be stored on chain. In January 2024 they uploaded p5.js 1.0.0 to it.

That sounds like a small infrastructure detail and it is not. A generative artwork is code plus the library it was written against, at a specific version. Put both on chain and the artwork is complete. According to Art Blocks' documentation, Flagship and Engine NFTs rely only on fully on chain storage, plus one dependency that may sit in that software registry. For projects that need bigger assets there is Engine Flex, which can keep part of the data on IPFS or Arweave.

The on-chain generator

The second piece is the on-chain generator, a contract that assembles a complete, ready to view HTML document for any artwork: the artist's script, the dependency and the token data stitched together, using scripty.sol to put large scripts into one document. It can return plain HTML or a base64 data URI, so with one call to the contract you get something any browser can open.

In Art Blocks' own words, the works "can be reconstructed and displayed using only the information stored on the Ethereum blockchain". No server of theirs, no CDN, no gallery website in the middle. As long as Ethereum exists, the piece can be rebuilt and seen.

Why this matters

For me this closes the loop I was looking at in 2021. Permanency was never only about storing the image. For generative art it is about storing everything needed to execute it: the script, the library, the exact version, and a way to put them together. A painting needs a wall. A generative work needs its runtime.

And once the runtime is on chain, composability becomes real. Libraries stored once and referenced by many works. Versions that cannot change under the artist's feet. Works that can read other on chain data and react to it, and still be rebuilt in fifty years.

It is not magic and it is not free. Storing code on chain is expensive, which is why the registry is optional and why Engine Flex exists. Not every project will go fully on chain, and that is fine. But the path is there now, built and documented, and that is a big deal for digital art.

Let's see what artists do with it. Eager.

Links