Grammarly Text Editor SDK for Desktop Clients (Electron)
You can use the Grammarly Text Editor SDK in desktop applications built on Electronopen in new window.
Installation and usage
Installing and using the Text Editor SDK in your Electron application works the same way as it does for a web application. For more details on how to install and use the SDK, visit the reference that matches your application’s tech stack:
Content Security Policy
To allow your users to connect their Grammarly accounts to your application, turn on connected accounts. You will need to configure connected accounts in both the Developer Hubopen in new window and your application code. See configuring connected accounts for desktop clients (Electron) for details.
Visit the API Reference for additional configuration details.
Beginning in version 1.4.0, the Text Editor SDK supports desktop applications built on Electron 12.0.0+.
Example applications are available in the Grammarly for Developers GitHub repositoryopen in new window:
- Electron Demo App (React)open in new window
- Electron Demo App (Vue)open in new window
Preparing for production
Before making your app available in a production environment, please take note of the recommendations in Securing your App.