Skip to main content

Forging Basics

When I say "forge an event" I mean to create an event in a room by hand. The Matrix Protocol is built on events formatted in a language called JSON, which itself is made of plain text. This means that, if you have the ability to send plain text over the Matrix protocol, you can do anything that the matrix specification allows.

This matters because this is what all matrix clients do. They forge events when you send messages, update icons, or join rooms. However, the abilities of the protocol extend beyond what any client has so far been able to contain. There are entire aspects which have been present for years which clients like Sable are still trying to find out how to implement.

Luckily for us, the Sable client has a strong set of tools to forge events yourself. The tools handle the guts, things like user ids, event ids, timestamps, etc. Using these tools you can send any event you want into a room, even if Sable does not already support it. To get access to these tools, do the following

  1. Go into your Sable settings

    image.png

  2. Go to "Developer Tools" 

    image.png

  3. And check "Enable Developer Tools"

    image.png

    image.png


Now you can start forging any custom event you want!