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

Hacker News Top Models

Summary

Ternlight is a 7 MB embedding model that runs in the browser via WASM, enabling fast semantic search without any API calls or servers. It ships as an npm package and can be used in three lines of code.

No content available
Original Article
View Cached Full Text

Cached at: 07/07/26, 02:08 AM

# ternlight · semantic search · React docs Source: [https://ternlight-demo.vercel.app/](https://ternlight-demo.vercel.app/) An embedding model in7 MB\. Runs on yourCPU\.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 ## Three lines to semantic search Ships as a single npm package\. No model download step, no server\. $`npm install @ternlight/base` example\.js ``` import { embed, similar } from '@ternlight/base'; similar('easy weeknight dinner ideas', recipes, { topK: 3 }); // → ranked matches · ~5 ms · zero network ``` EXAMPLE ## React docs search 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\.

Similar Articles

Wterm – Terminal Emulator for the Web

Hacker News Top

Wterm is a terminal emulator for the web, built in Zig and compiled to WASM for near-native performance, with native text selection, copy/paste, find, and accessibility.

Intent to Prototype: Embedding API

Lobsters Hottest

The Chromium team proposes a new Embedding API for the web platform that allows developers to generate vector embeddings on-device using Chrome's AI infrastructure, enabling privacy-preserving semantic search, retrieval-augmented generation, and content clustering while reducing latency and cost.