There are libraries like wlroots (C) and Smithay (Rust) to be able to more easily create your own wayland compositor
Even accounting for wlroots, you're not exactly just running sed on a glob. And unfortunately, wayland didn't actually fix X's complexity problem. Arcan did, but we're not allowed to have nice things because Redhat has no taste.