How to start a xwayland server?

Xwayland often crashes, so I want to try and make a systemd service for it and make methods for me to be able to create a xwayland server and set apps to use it.

I tried making a shell for xwayland and simply running the command but it seems like that package is not working, and it probably is more nuanced than that. So how do i run a xwayland server and get apps to use it?