Code Monkey home page Code Monkey logo

mud's Introduction

MUD

MUD logo

MUD - Engine for Autonomous Worlds

   

MUD is a framework for complex Ethereum applications.

It adds some conventions for organizing data and logic and abstracts away low-level complexities so you can focus on the features of your app.

It standardizes the way data is stored on-chain. With this standard data model, MUD can provide all network code to synchronize contract and client state. This includes synchronizing state directly from an RPC node or a general-purpose MUD indexer.

MUD is MIT-licensed, open source and free to use.

Features

MUD features

Today

  • State synchronization between contracts and clients without custom networking code
  • General purpose indexers (without custom indexing code)
  • Seamless contract upgrades (+ automatic contract upgrades during development)
  • Shared contract state
  • Optimistic updates
  • Automatic type generation for contracts and systems
  • Query language to interact with contract state
  • Data explorer to inspect and modify contract and local state
  • Bitpacking utilities

Soon

  • Local simulation of transactions (including optimistic state)
  • Built-in support for account abstraction
  • Contract package manager

Quickstart

pnpm create mud@canary my-project

More more information on how to get started, have a look at the MUD documentation.

Talks

Getting started with MUD MUD - An Engine for Autonomous Worlds MUD in Practice - How we built OPCraft

Packages

MUD consists of several libraries. They can be used independently, but are best used together.

Package Version
@latticexyz/recs
TypeScript Reactive Entity Component System library
npm version
@latticexyz/services
Go services for indexer, faucet, message relay
npm version
@latticexyz/cli
Command line interface for types, testing, faucet, deployment and more
npm version
@latticexyz/noise
Solidity and AssemblyScript implementations of Perlin noise
npm version

Contribute

We'd love your support in improving MUD! This monorepo includes all of MUD's source code, and pull requests are always welcome. To discuss new features or changes join our Discord.

Local development setup

!!! The following steps are only necessary if you want to contribute to MUD. To use MUD in your project, install the packages from npm or set up a new project with the MUD cli. !!!

  1. Install the foundry toolkit (required to build and test MUD solidity packages): https://getfoundry.sh/

  2. Install pnpm

    npm install pnpm --global
    
  3. Clone the MUD monorepo

    git clone https://github.com/latticexyz/mud
    
  4. Install MUD dependencies and setup local environment

    cd mud && pnpm install && pnpm build
    

Pull requests

MUD follows the conventional commit specification for commit messages and PR titles. Please keep the scope of your PR small (rather open multiple small PRs than one huge PR) and follow the conventional commit spec.

Community support

Join our Discord to get support and connect with the community!

License

MUD is open-source software licensed as MIT.

mud's People

Contributors

0xkowloon avatar 0xtechnoir avatar aliezsss4 avatar alvrs avatar authcall avatar biscaryn avatar boffee avatar cha0sg0d avatar davidkol avatar dk1a avatar github-actions[bot] avatar hioxoih avatar holic avatar johngrantuk avatar kooshaba avatar ludns avatar mirror-tang avatar mirshko avatar nickcernera avatar osub avatar qbzzt avatar roninjin10 avatar smallbraingames avatar thegreataxios avatar therealbytes avatar transmissions11 avatar tuhinm2002 avatar vedhavyas avatar virtualelena avatar yonadaaa 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.