erh-js-sdk
v0.1.0
Published
JavaScript SDK for the Ethical Riemann Hypothesis Framework
Downloads
96
Readme
ERH JavaScript SDK
A Node.js/TypeScript SDK for the Ethical Riemann Hypothesis (ERH) Framework.
Installation
npm install erh-js-sdkUsage
Client Library
Use the client in your Node.js or TypeScript application:
import { ERHClient } from 'erh-js-sdk';
const client = new ERHClient("http://localhost:8000");
async function run() {
const health = await client.healthCheck();
if (health) {
const result = await client.runSimulation(1000, 'zipf');
console.log(result);
}
}
run();CLI Tool
The SDK typically installs a CLI tool erh-cli (if installed globally or via npx):
# Run a simulation
npx erh-cli simulate --num-actions 500 --dist zipfDevelopment
- Install dependencies:
npm install - Build:
npm run build
