To install Tolgee run:

npm install @tolgee/core --save

To install UI bundle for in-context translating you will also need to install package @tolgee/ui.

npm install @tolgee/ui --save

After installing packages you can use it like this:

import {Tolgee} from "../clients/js/packages/core/lib/index";
import {UI} from "@tolgee/ui";
const tg = new Tolgee({
apiKey: "your_api_key",
apiUrl: "",
ui: UI

Then you can use Tolgee instance the same way as described in translating programmatically.