A JavaScript SDK for the Linguin API

8 July 2026
The Linguin API now has a JavaScript SDK. Run npm install linguin-api and call every endpoint as a method. ESM on the global fetch, Node 18+, TypeScript types included, zero dependencies, MIT and open source.

The Linguin API now has a JavaScript SDK. Call it like a library instead of writing HTTP by hand.

npm install linguin-api
import Linguin from 'linguin-api';

const linguin = new Linguin('YOUR_API_KEY');
const entry = await linguin.lookup({ text: 'bonjour', lang: 'fr' });
const result = await linguin.translate({ text: 'Hola, ¿cómo estás?', from: 'es', to: 'en' });

Every endpoint is a method: lookup, reverse, translate, localize, plus the account calls. Each returns a promise, and failures throw a LinguinError with a code, status, and message.

ESM, built on the global fetch, Node 18 and up. TypeScript types included. Zero dependencies, MIT and open source.

The package is on npm, the source on GitHub, and the full reference in the docs.

Look up word or phrase...