Getting started making a Mod
A Mod consists of a manifest JSON file and optionally a backend which can handle requests from the Mod and make external requests. The Manifest contains metadata about the Mod, such as it's name and unique identifier, which Mod Elements it renders onto the page, and conditions under which to render them.
Our convention is to write Mods in TypeScript, for better autocompletion and legibility, with the Mods being built to JSON.
You can take a look inside the /mods folder of this repo (opens in a new tab) to see how Mods work
Steps to make a new Mod
- Fork this repo (opens in a new tab)
- Create a new mod by duplicating an existing one in
/modsor creating a new folder - Name your mod consistently between the folder name and the
slugin themanifest.tsfile - Create the elements of your mod
- Add your mod to
/packages/mod-registry/src/index.tsor load it directly into theRichEmbedmodsarray orCreationModrenderers - Add any api backend your mod needs to
/examples/api/src/app - Submit a Pull request