This reminded me of a similar project for Emacs called RMSbolt[1], which was apparently rewritten by João Távora (author of Eglot, Sly, yasnippet) and called Beardbolt [2]
Thanks for letting me know. RMSBolt is a nice plugin which provides many languages and smooth interaction. It also inspired me that I can do more on real time editing of the input.
[1] https://gitlab.com/jgkamat/rmsbolt
[2] https://github.com/joaotavora/beardbolt