Grammarly SDK
Grammarly's real-time writing support, without a user interface (UI).
🚨 Experimental
Do not use in production!
If you want to use this package, tell us about it in the Grammarly for Developers community on GitHub.
Getting started
Install the Grammarly SDK:
npm install @grammarly/sdk
import { init } from "@grammarly/sdk";
const Grammarly = await init("YOUR_CLIENT_ID");
const editor = Grammarly.withText("Mispellings and grammatical errors can effect your credibility.");
editor.addEventListener("status", (event) => {
if (event.detail === "idle") {
editor.disconnect();
}
});
editor.addEventListener("suggestions", (event) => {
event.detail.added.forEach((suggestion) => {
console.log(suggestion);
});
});
Learn more
If you'd like to learn more about what you can do with the SDK and how you can customize the plugin for your app, visit: