A TypeScript/JavaScript API implementation of the Neuro Game API server. This implementation is based on the official implementation of the Neuro Game API and was inspired by CoolCat467's server-side implementation in the Python SDK.
Note
If you are trying to build an integration for Neuro, you're looking for the neuro-game-sdk package instead.
This package is for server-side implementations of the Neuro API.
Install the API:
# npm
npm install neuro-game-api
# yarn
yarn add neuro-game-api
# pnpm
pnpm add neuro-game-apiThen, use it in your scripts like so:
import { NeuroServer } from 'neuro-game-api'
const NEURO_SERVER_HOST = 'localhost'
const NEURO_SERVER_PORT = 8000
const server = new NeuroServer(NEURO_SERVER_HOST, NEURO_SERVER_PORT, extraConfigs /* extra configs that are kinda unused for now */)The examples/ directory has example implementations of the Neuro Game API. Please refer to that.