Standalone client side library to convert SQL to DSL

I am looking for a library which takes SQL as input and outputs Opensearch DSL . We can not use SQL plugin on opensearch server side so my only option is to convert SQL into DSL on the client side and then query opensearch using this generated DSL. Is there any possibility to get opensearch sql plugin code in a standalone library?