Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 secrystsecryst/secryst-py; Ruby: gem secrystsecryst/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-node

onnxruntime-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.

About

TypeScript crystal @secryst/ml: reveal the hidden reading of a script (implements the interscript-ml IMF v1 contract)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages