Skip to content

KTrain5169/typescript-neuro-game-api

Repository files navigation

TypeScript Neuro Game API

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.

Installation & Usage

Install the API:

# npm
npm install neuro-game-api
# yarn
yarn add neuro-game-api
# pnpm
pnpm add neuro-game-api

Then, 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 */)

Examples

The examples/ directory has example implementations of the Neuro Game API. Please refer to that.

About

JavaScript/TypeScript package to assist in making server implementations of the Neuro API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •