529f302f73
CI is now green across all 20 jobs: - Rust on Linux/macOS/Windows - Python 3.9/3.11/3.12 on Linux/macOS/Windows - Node 18/20 on Linux/macOS/Windows (Windows previously failed because ci.yml built the native module without --platform; fixed in the previous commit) - WASM build - Cross-library benchmark report This tag re-publishes 0.1.3 across crates.io / PyPI / npm so a single version covers every working binding. The release workflow's idempotent publish steps mean re-runs are safe; the new code in this version is just the build-script and loader changes that fixed CI.
@wickra/wickra
Node.js bindings for the Wickra streaming-first technical indicators library.
Install
Once published, install per platform via the precompiled native package:
npm install @wickra/wickra
Build from source
cd bindings/node
npm install
npm run build
npm test
The native module is built via napi-rs. The build script
produces a wickra.<platform>-<arch>.node binary in the package root that
index.js loads at runtime.
Usage
import { SMA, RSI, MACD, version } from '@wickra/wickra';
console.log('wickra', version());
// Batch:
const prices = Array.from({ length: 1000 }, (_, i) => 100 + Math.sin(i * 0.1) * 5);
const rsi = new RSI(14).batch(prices);
// Streaming:
const macd = new MACD(12, 26, 9);
for (const p of livePriceStream) {
const v = macd.update(p);
if (v && v.histogram > 0) console.log('bullish crossover candidate');
}
See index.d.ts for the full TypeScript surface.