open-index/open-npm huggingface dataset:
npm package: @statsim/engine
Description: StatSim execution engine — orchestrates stoch + jsee for running compiled models
Author: Anton Zemlyansky
Latest version: 0.1.0

# @statsim/engine

StatSim execution engine — orchestrates `stoch` + `jsee` for running compiled models.

## Install

```bash
npm install @statsim/engine
```

## Usage

For now, this is a simple wrapper around `stoch`. Future versions will add:
- Model compilation caching
- Integration with `@statsim/compiler`
- Model loading/execution orchestration

```javascript
import * as engine from '@statsim/engine'
import { Normal, sample } from '@statsim/engine'

// Use stoch functionality directly
const dist = new Normal(0, 1)
const samples = await sample(dist, 1000)
```

## Future API

```javascript
import { compileAndRun } from '@statsim/engine'

// Compile .sm model and run inference
const result = await compileAndRun('model.sm', {
  backend: 'stoch',
  cache: true
})
```