I am trying to create a Chrome extension that reads and writes to Google Docs in real time to add suggestions to a user's text, similar to the chrome extension Grammarly. I've looked around and the best thing I've found is a library called GoogleDocsUtil however after Google Docs' update to canvas based rendering it no longer works. I've also found other answers on Stack Overflow saying one potential way to do this is by triggering keypresses with an event, however I have not been able to get it to work either. The final way I've discovered is by integrating with Google's own APIs however this approach is slow and would not be in real time.
What is the best way to approach this problem?