On the twitter engineering blog, Twitter opensource typeahead.js, a fast and battle-tested jQuery plugin for auto completion. The plugin source code is available now on GitHub under the MIT license.
By sharing a piece of our infrastructure with the open source community, we hope to evolve typeahead.js further with community input.
Some of its capabilities and features include:
- Search data on the client, server, or both
- Handle multiple inputs on a single page with shared data and caching
- Suggest multiple types of data (e.g. searches and accounts) in a single input
- Support for international languages, including right-to-left (RTL) and input method editors (IME)
- Define custom matching and ranking functions
- Grey text hints that help explain what hitting tab will do