Vim Plugin for Roam?

I’ve seen other people request vim keybindings for Roam, so I understand it doesn’t exist. But how would I write a vim plugin for Roam? Would it be possible?

There’s vim-esque movements already in Roam Toolkit: GitHub - roam-unofficial/roam-toolkit: Roam force multiplier

Unless you’re just talking about editing text itself?