New api-interface-community library - what's allowed and how to test it

Hi,
I’m trying to add few models to the Hub, but they all follow clear pytorch approach not using any library supported by HF. I figured out that I could create a <my_lib> huggingface_hub/api-inference-community/ and link a repo with my models as a submodule there. I implement all the api hooks for widgets and that’s it.
My question is - would it be possible to do it this way, and if so is there a way to test the widgets before the “my_lib” commit to the huggingface_hub repo goes public ?