I guess you could use https://github.com/authzed/...
# spicedb
p
I guess you could use https://github.com/authzed/spicedb/blob/main/pkg/schemadsl/generator/generator.go along with the internal schema protos in https://github.com/authzed/spicedb/blob/main/proto/internal/core/v1/core.proto to do programmatic generation of schemas (you could use the compiler if you wanted it to be bi-directional). As long as you stored the schema and not the proto representation, you wouldn't need to worry about the internal proto representation breaking, as the schema format should be backwards compatible. It may require some tooling tweaking if the internal proto changes though.