# Ternlight – 7 MB embedding model that runs in browser (WASM)

> Source: <https://ternlight-demo.vercel.app/>
> Published: 2026-07-06 23:06:31+00:00

Runs in your browser

no API call

An embedding model in 7 MB.

Runs on your CPU. No API.

Drop it in, embed text in milliseconds, and never call a server.

Runs in your browser

no API call

Engine + weights · 7 MB

mini variant · 5 MB

Fast embeddings · ~5 ms

CPU only · no GPU

USE IT

Ships as a single npm package. No model download step, no server.

``` bash
$
npm install @ternlight/base
⧉
example.js
⧉
js
import { embed, similar } from '@ternlight/base';

similar('easy weeknight dinner ideas', recipes, { topK: 3 });
// → ranked matches · ~5 ms · zero network
```

EXAMPLE

Search React's docs in your browser. Type a question — powered by
[@ternlight/mini](https://www.npmjs.com/package/@ternlight/mini),
the 5 MB tier.

Loading the engine…
