Where are rules for categories stored?

I’d like to create my own rules for categories but I have a few of them and would much rather do it through script or manually update file/db. Any chance you could help me locate where things are stored?

I can see that they are temporarily stored in the local storage of the browser. Is that the only place? Are they only used for the web UI?

Currently it’s only in the localstorage yes, but we have plans on migrating them to aw-server-rust in the future (we have made an HTTP JSON api already, but the migration is not complete and we won’t start on changing the web-ui until that is done).

So for now local storage is the only option.