A TypeScript client for interacting with RxInferServer, providing type-safe access to its API endpoints.
RxInferServer is a Julia-based server that provides an API for performing probabilistic inference using the RxInfer.jl package. This client library allows you to interact with RxInferServer from TypeScript/JavaScript applications.
npm install @lazydynamics/rxinfer-client
import { RxInferClient, pingServer } from '@lazydynamics/rxinfer-client';
// Create a client instance
const client = await RxInferClient.create();
// Use the client to interact with RxInferServer
const response = await pingServer({ client });
console.log(response.data); // { status: 'ok' }
Clone the RxInferServer repository:
git clone https://github.com/lazydynamics/RxInferServer.git
cd RxInferServer
Build and start the server:
make docker
make dev
This will start RxInferServer on http://localhost:8000
.
Install dependencies:
npm install
Generate TypeScript client from OpenAPI specification:
npm run generate
Build the package:
npm run build
npm test
Note: Tests require RxInferServer to be running locally.
Generate and view documentation:
npm run docs
npm run docs:serve
See CONTRIBUTING.md for details on how to contribute to this project.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions, please: