Skip to content

FOSWLY/neurojs

Repository files navigation

neurojs

GitHub Actions npm en ru

An unofficial library for interaction with Yandex Neuro API, which supports working with JavaScript, TypeScript, and also has built-in parted types for Typebox.

Warning

The library was created exclusively for research purposes and isn't intended for commercial use. All rights to the original software belong to their respective right holders. The library isn't affiliated with the original rights holders

Functional

Now library supports working with:

  • summarize video from YouTube
  • get link to summarized articles (of. api, need API-key)

Required functionality for 1.0.0:

  • Summarize video from YouTube
  • Summarize articles and text
  • Create and add support neuro-worker (like vot-worker)

Installation

Warning

To work with Node.js or with Browser you need to perform additional configuration. All examples can be seen here

Install via Bun:

bun install @toil/neurojs

Install via Node:

npm install @toil/neurojs

Getting started

To start working with API, you need to create NeuroClient. This can be done using the line provided below

Standard client:

const client = new NeuroClient();
const result = await client.summarizeVideo({
  url: "...",
  language: "en",
});

You can see more code examples here

Build

To build, you must have:

  • Bun
  • Protoc (if you are building with the update of the .proto file)

Don't forget to install the dependencies:

bun install

Start building:

bun build:all

Build without updating proto and without generating docs:

bun build:skip-proto

Tests

The library has minimal test coverage to check its performance.

Run the tests:

bun test