typeahead.js README

The project's README from github.com/twitter/typeahead.js. As one markdown file: README.md.

build status Built with Grunt

typeahead.js

Inspired by twitter.com's autocomplete search functionality, typeahead.js is a flexible JavaScript library that provides a strong foundation for building robust typeaheads.

The typeahead.js library consists of 2 components: the suggestion engine, Bloodhound, and the UI view, Typeahead. The suggestion engine is responsible for computing suggestions for a given query. The UI view is responsible for rendering suggestions and handling DOM interactions. Both components can be used separately, but when used together, they can provide a rich typeahead experience.

Getting Started

How you acquire typeahead.js is up to you.

Preferred method:

Other methods:

Note: both bloodhound.js and typeahead.jquery.js have a dependency on jQuery 1.9+.

Documentation

Examples

For some working examples of typeahead.js, visit the examples page.

Browser Support

NOTE: typeahead.js is not tested on mobile browsers.

Customer Support

For general questions about typeahead.js, tweet at @typeahead.

For technical questions, you should post a question on Stack Overflow and tag it with typeahead.js.

Issues

Discovered a bug? Please create an issue here on GitHub!

https://github.com/twitter/typeahead.js/issues

Versioning

For transparency and insight into our release cycle, releases will be numbered with the following format:

<major>.<minor>.<patch>

And constructed with the following guidelines:

For more information on semantic versioning, please visit http://semver.org/.

Testing

Tests are written using Jasmine and ran with Karma. To run the test suite with PhantomJS, run $ npm test.

Developers

If you plan on contributing to typeahead.js, be sure to read the contributing guidelines. A good starting place for new contributors are issues labeled with entry-level. Entry-level issues tend to require minor changes and provide developers a chance to get more familiar with typeahead.js before taking on more challenging work.

In order to build and test typeahead.js, you'll need to install its dev dependencies ($ npm install) and have grunt-cli installed ($ npm install -g grunt-cli). Below is an overview of the available Grunt tasks that'll be useful in development.

Maintainers

Authors

License

Copyright 2013 Twitter, Inc.

Licensed under the MIT License

typeahead.js (twitter/typeahead.js)

Searching Database…

What is this?A flexible JavaScript autocomplete library from Twitter, inspired by the autocomplete search on twitter.com. It gives you a foundation for building robust typeaheads (search-suggestion boxes) on the web.
Is it one library, or does it come in separate parts?Two components, usable separately or together: Bloodhound is the suggestion engine that computes suggestions for a query; Typeahead is the UI view that renders them and handles DOM interactions.
How do I add it to my page?Run bower install typeahead.js, or download the dist files: typeahead.bundle.js has both components in one file, standalone bloodhound.js / typeahead.jquery.js are also available, plus a minified bundle.
Do I need jQuery for it to work?Yes. Both bloodhound.js and typeahead.jquery.js require jQuery 1.9+, so include jQuery on the page first.
Which browsers does it support?Chrome, Firefox 3.5+, Safari 4+, Internet Explorer 8+ and Opera 11+. Mobile browsers were not tested, so treat mobile support as unproven.
Can I use the Bloodhound engine without the typeahead UI?Yes. The README says both components can be used separately, and bloodhound.js is shipped as a standalone suggestion-engine file for exactly that.
What inspired the project?The autocomplete search on twitter.com. The README opens by naming it as the inspiration, and the library came out of Twitter, Inc. (Copyright 2013 Twitter, Inc.).
Creator
twitter
Size
2.1 MB
Stars
16.4K
Updated
CommitApr 27
Age
13y
Commits · 90 Days