Giter Site home page Giter Site logo

elements's Introduction

Introduction

Faster, simpler, easier, cheaper

The Wizards of Ord: Elements are a collection of open source libraries inscribed on Bitcoin through Ordinals Protocol's built-in brotli compression method. This relies on HTTP content-encoding headers for automatically compressing and decompressing data in the browser, resulting in a more efficient use of the expensive Bitcoin blockspace, ease of use, better performance and significant cost savings.

Inscriptions can now use these libraries directly inside their code, without having to explicitly fiddle with compression.

Inscribed Libraries

At the moment, the following libraries are inscribed:

p5.js 1.9.0 [Released Nov 30, 2023]

b6a50f5ba932b0ea7f652d9d28e59eced47bc6f8376c25e02d8b3457bb60ac8fi0

How to use

Caution

Always test before you inscribe

  1. Copy code from Boilerplate. Check examples to see it in action.
  2. Add your generative art code
  3. Preview your work
  4. Inscribe using your favorite method, preferrably with compression enabled.

Examples

These example inscriptions serve dual purpose: demonstrate the power of Elements and serve as examples of how to use the inscribed libraries. They use p5.js to apply mempool-like block effect to existing image inscriptions.

Collection

Standalone

Boilerplate Code

Elements provide boilerplate code for creating standalone generative art and collections. Their purpose is to serve as a good starting point for anyone looking to inscribe generative art using Ordinals on Bitcoin.

p5.js

Preview before inscribe

It's always a good idea to preview generative art code before inscribing. The following tool should be useful.

Inscription Structure

Elements rely on Ordinals parent/child provenance for structuring the inscribed libraries. Relevant library information such as name, version and website is included as a part of inscription metadata.

root
└── p5.js container
    └── p5.js 1.9.0

Inscription 45218127, inscribed on an Uncommon sat, sits at the root of Elements.

Containers for each library are inscribed as children of this root inscription on Block 9 450x sats. Respective libraries are then inscribed as children of these container inscriptions.

Need Help?

Feel free to reach out to @lifofifo.

elements's People

Contributors

ordinalsnew avatar lifofifox avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.