Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



19 Commits

Repository files navigation

Typeahead Spellchecker

Use Typesense's typo-correction feature to build a Type-Ahead Spellchecker.

Live Demo

The UI is hosted on S3, the data is indexed in a single-node Typesense Cloud cluster with 512MB RAM in Oregon.

How it works

We index 333K dictionary words, along with the popularity of each word in a Typesense collection.

We then extract the last typed word and send it as a "search" to Typesense. Since Typesense searches for typo-corrected words automatically, it returns closely related typo-corrected words from the dictionary, which we show as type-ahead suggestions.

Running it locally

yarn typesenseServer

ln -s .env.development .env

yarn index

yarn start


To deploy the UI run:

yarn deploy