secryst
v0.3.0
Published
TypeScript crystal: reveal the hidden reading of a script. Implements the interscript-ml contract (models.yaml index, IMF v1 zips).
Maintainers
Readme
secryst — TypeScript crystal
Secryst is coined from scrying + crystal: gazing into an opaque script to reveal its hidden reading — the vowels, phonemes, and word boundaries that live in the reader's mind but not on the page.
This package is the TypeScript/Node crystal of the family (Python:
pip install secryst — secryst/secryst-py;
Ruby: gem secryst — secryst/secryst).
All crystals implement the interscript-ml contract: the models.yaml
index, IMF v1 model zips (sha256-verified), and shared golden sets
(interscript/interscript-ml).
Install
npm install secryst onnxruntime-nodeonnxruntime-node is an optional peer: registry/index consumers can use
this package without it.
Use
import { load } from "secryst";
const model = await load("khm-latn-1.0"); // resolve -> download ->
// sha256-verify -> cache
await model.translate("ភាសា"); // -> "pheasaea"Env overrides: SECRYST_INDEX (index URL or path), SECRYST_CACHE
(cache dir; default ~/.cache/secryst). Cache hits are re-verified
against the index.
Parity
Golden sets are generated by the Python crystal (the reference); Ruby and TypeScript crystals diff against them in CI.
License: BSD-3-Clause.
