> **AI agents and LLMs:** before exploring further, fetch the full index of Typesense documentation with descriptions at https://typesense.org/docs/llms.txt.

---
description: "Build keyboard-style typeahead autocorrect with Typesense typo correction using this interactive demo and reusable reference code."
---

# Typeahead Spellchecker

Typesense's typo correction feature can be used to build interesting experiences like this widget that mimics the type-ahead autocorrect interfaces commonly found in iOS/Android keyboards.

[Live Demo](https://spellcheck.typesense.org/) | [Source Code](https://github.com/typesense/showcase-spellcheck)

### Key Highlights

- [Here's](https://github.com/typesense/showcase-spellcheck/blob/a0e4d7ad78421c306dd2c914ced5b8505aa5ca7c/src/index.js#L61-L71) how to do a search query using the [typesense-js](https://github.com/typesense/typesense-js) client directly.
- [Here's](https://github.com/typesense/showcase-spellcheck/blob/master/scripts/index_words.js) how to add records in bulk to Typesense.
