Finally implemented alternative of firebase (opensource version) in kotlin-native
NoSQL database + firebase like security rules. Learned IR and Psi things from IDEA to parse security file.
(Project is under development)
Feel free to contribute.
https://github.com/kavanmevada/firefly