Show / Hide Table of Contents

Getting Started

To use the SDK for JavaScript, you must have:

  • A suitable JavaScript Development Environment
  • A Language Weaver or Language Weaver Edge account
  • API credentials or a user

JavaScript Development Environment

The JavaScript SDK requires Node.js and npm to be installed.
We strongly recommend using a Node version manager like nvm to install Node.js and npm.

Install SDK in your Project

If you use npm, you can run the following command in your project directory:

npm install @language-weaver/lw-sdk-js

Considerations when running in browser

We strongly recommend to avoid adding the credentials in the JavaScript code. Otherwise, your credentials will be compromised. For safety, the credentials can either be provided by user or handled on the server side.

In This Page
Back to top