Glyph – Content intelligence without the baggage

justinthemax1 pts0 comments

GitHub - Koda-OSS/Glyph: A lightweight toolkit for generating and comparing content fingerprints. · GitHub

/" data-turbo-transient="true" />

Skip to content

Type / to search

Sign in<br>Sign upAppearance settings

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

Uh oh!

There was an error while loading. Please reload this page.

Koda-OSS

Glyph

Public

Uh oh!

There was an error while loading. Please reload this page.

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>35 Commits<br>35 Commits

.github

.github

docs

docs

scripts

scripts

src

src

.gitattributes

.gitattributes

.gitignore

.gitignore

CHANGELOG.md

CHANGELOG.md

LICENCE

LICENCE

README.md

README.md

demo.ts

demo.ts

package-lock.json

package-lock.json

package.json

package.json

tsconfig.json

tsconfig.json

tsup.config.ts

tsup.config.ts

vitest.config.ts

vitest.config.ts

View all files

Repository files navigation

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");<br>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 here<br>Topic

Getting started<br>Install, first compare, mental model

Building an index<br>Store glyphs and run query.New(idx).Search()

Your first collection<br>Aggregate examples into col.glyph

Your first spotlight<br>Chunk and rank document snippets

Demo CLI<br>Try modes from the terminal

API surface<br>Every public export

License

Mozilla Public License 2.0 — see LICENCE.

About<br>A lightweight toolkit for generating and comparing content fingerprints.<br>Resources<br>Readme<br>MPL-2.0 license<br>Activity<br>Custom properties<br>Stars<br>0 stars<br>Watchers<br>0 watching<br>Forks<br>0 forks<br>Report repository

Releases

Sponsor this project

Packages

Contributors

Languages

You can’t perform that action at this time.

glyph json reload compare content github

Related Articles