Skip to content
r.

ternlight

soycaporal/ternlight · Public GitHub repository

Explore this public GitHub project.

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

ternlight live demo screenshot
Captured from the live demo · 2026-11-03

About this project

Author-written excerpt from the project README.

Lightning-fast semantic embeddings in a 5-7 MB WebAssembly bundle. Engine + model + tokenizer in one file. Embedding search on CPU - no API calls, no GPU. Try the live demo - search 2k docs entirely on-device.

Distilled from all-MiniLM-L6 with BitNet b1.58-style quantization-aware training. Three design choices stack to fit an embedding model in a few MB:

All numbers measured on the shipped int4 builds (M-series Mac, Node/V8):

Requirements and intended audience

Lightning-fast semantic embeddings in a 5-7 MB WebAssembly bundle. Engine + model + tokenizer in one file. Embedding search on CPU - no API calls, no GPU. Try the live demo - search 2k docs entirely on-device.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-21. Source: https://github.com/soycaporal/ternlight/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-08-08. A published release has not been recorded. These dates do not guarantee ongoing maintenance.

Technologies
Python
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-20. This does not test every feature.

Browse related categories