The script is (obviously, as you can see the hosted source code on Github) open source. Indexnow is the internal endpoint that those search engines offer to submit urls to them. Not supposed to be open source, no point in having an API backend open sourced for this purpose.