JavaScript ecosystem for FlatPPL, the Flat Portable Probabilistic Language.
FlatPPL is a minimal, inference-agnostic stochastic language for specifying probabilistic models.
This monorepo contains:
The monorepo is an npm workspace; root-level scripts fan out to every
package via --workspaces --if-present.
Prerequisites
-
Node.js +
npm— the workspace tooling. -
A Rust toolchain (
cargo) — the build compiles the Rust cratesflatppl-lsp(native target) andflatppl-wasm-api(WASM target) from source.Rust
wasm-packand thewasm32-unknown-unknowntarget must be installed:rustup target add wasm32-unknown-unknown cargo install wasm-pack
Or build the flatppl-js web package without FlatPPL convert (
FLATPPL_CONVERT=off) — no wasm toolchain needed.
Build
npm install # install all workspace deps
npm run build # build every package + vendor bundle
npm test # run all test suites (today: engine)
npm run test:coverage # same, plus an LCOV report at
# packages/<pkg>/coverage/lcov.infoPer-package READMEs cover the workspace-local workflows
(npm run build/serve/watch from inside packages/<pkg>/)
and any package-specific setup.
This work was supported by Germany's Federal Ministry of Research, Technology and Space (BMFTR) within the ErUM-Data programme under grant FKZ 05D25PC1 (DEMOS consortium).