Socket
Socket
Sign inDemoInstall

@grammarly/sdk

Package Overview
Dependencies
Maintainers
8
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grammarly/sdk

Grammarly writing SDK (no UI)


Version published
Weekly downloads
294
increased by52.33%
Maintainers
8
Weekly downloads
 
Created
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

Package last updated on 20 Oct 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc