I want to create my own taskbar for wayland but I need a bit of help

I am thinking of creating my first taskbar that is similar to polybar but for Wayland. I need a bit of help getting started since I don't know what to do or where to start. Do you guys happen to on how I can get started please? I want to avoid using as many crates as possible so I can really learn how to do low level stuff?