README.md

August 12, 2026 · View on GitHub

Glyph Banner ProductHunt Documentation Website Discord GitHub (koda oss) GitHub (koda sh) badge

Compare fast. Search in memory. Spotlight documents. Aggregate collections.

Glyph turns text into glyphs — fixed-size MinHash fingerprints. Compare similarity, search an in-memory index, rank document chunks with spotlight, pre-aggregate labeled examples into one glyph, or suggest the next word with completions.

Install

npm install @koda.oss/glyph

Node.js 18 or newer.

Quick start

import { Create, Compare } from "@koda.oss/glyph";

const a = Create("the quick brown fox jumps over the lazy dog");
const b = Create("the quick brown fox leaped over the lazy dog");

console.log(Compare(a, b).similarity); // ~0–1 Jaccard estimate

Documentation

Full doc index: docs/README.md · Changelog · Migration 0.4 → 1.0

Start hereTopic
Getting startedInstall, first compare, mental model
Building an indexStore glyphs and run query.New(idx).Search()
Your first collectionAggregate examples into col.glyph
Your first spotlightChunk and rank document snippets
Demo CLITry modes from the terminal
API surfaceEvery public export

License

Mozilla Public License 2.0 — see LICENCE.

View Glyph docs on Koda
Discord Github Koda