Socket
Socket
Sign inDemoInstall

@grammarly/sdk

Package Overview
Dependencies
0
Maintainers
8
Versions
108
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @grammarly/sdk

Grammarly writing SDK (no UI)


Version published
Maintainers
8
Install size
482 kB
Created

Readme

Source

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:

FAQs

Last updated on 20 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc