README.md

August 2, 2026 · View on GitHub

Glyph Banner

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

Glyph turns text into glyphs (fixed-size signatures). You can compare two glyphs, build an in-memory index and query it for ranked matches, use spotlight to rank chunks inside a document, or use completions for glyph-guided next-word suggestions.

Glyph Ribbon

DocPurpose
Getting startedInstall, first compare, mental model
Building an indexPopulate an index and run a query
Your first completionIngest docs and suggest the next word
Your first collectionAggregate labeled glyphs into one probe
Your first spotlightChunk a document and rank snippets
Demo CLICompare, search, complete, and spotlight from the terminal
API surfaceFull export list (Core + Query + Collections + Completions + Spotlight)
Migration 0.4 → 1.0PascalCase API and query.New changes

Doc pages end with a Related section (3–5 links, ranked by Glyph). Regenerate after editing docs: npm run docs:related.

Glyph Core

DocTopic
GlyphTypes: Glyph, GlyphRecord, GlyphSignature
CreateCreate() and fingerprint options
CompareCompare(), CompareGlyphs(), results
GroupsGlyphGroup, CreateGroup(), aggregate compare
SerializeSerialize(), Deserialize(), string formats
TokenizeTokens, unigrams, vgrams
Text normalizationTextFilter, TextStrip
Indexindex.New(), bands (default) or direct store

Glyph Query

DocTopic
Queryquery.New(idx).Search() ranked search
Query optionslimit, threshold, normalize, aggregate
Query resultsGlyphQueryResult shape

Glyph Collections

DocTopic
Collectionscollections.New(), keyed glyphs + glyph
Your first collectionTutorial: aggregate and query
AggregatorsSlot-wise CollectionAggregator built-ins

Glyph Completions

DocTopic
Chaincompletions.New(), Ingest, storage
CompleteComplete() ranked next-word suggestions
Completion optionsorder, create, limit, minCount
Completion resultsGlyphCompletionResult shape

Glyph Spotlight

DocTopic
Your first spotlightTutorial: chunk, Rank, Query
Documentspotlight.New(), chunk and fingerprint
Rankdocument.Rank() score all chunks
Querydocument.Query() threshold + limit

Limits (current version)

FeatureStatus
In-memory indexImplemented
LSH banding index (default)Implemented
Direct (exact) scan via mode: "direct"Implemented
Collections (slot-wise glyph aggregate)Implemented
Glyph completions (Markov + rank)Implemented
Spotlight (document chunk rank/query)Implemented
Disk persistencePlanned post-1.0
Chain persistencePlanned post-1.0

License

Mozilla Public License 2.0 — see LICENCE.

View Glyph docs on Koda
Discord Github Koda