PHPackages                             twitter/typeahead.js - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. twitter/typeahead.js

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

twitter/typeahead.js
====================

fast and fully-featured autocomplete library

v0.11.1(11y ago)16.5k209.7k↓22.2%3.1k[248 issues](https://github.com/twitter/typeahead.js/issues)[86 PRs](https://github.com/twitter/typeahead.js/pulls)4MITJavaScript

Since Feb 2Pushed 3y ago539 watchersCompare

[ Source](https://github.com/twitter/typeahead.js)[ Packagist](https://packagist.org/packages/twitter/typeahead.js)[ Docs](http://twitter.github.com/typeahead.js)[ RSS](/packages/twitter-typeaheadjs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (11)Used By (4)

[![build status](https://camo.githubusercontent.com/868ea81189399c55de1eaeba5d952dd27b74bca3afef128977f20e5615c99652/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f747769747465722f7479706561686561642e6a732e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/twitter/typeahead.js)[![Built with Grunt](https://camo.githubusercontent.com/4b4b0179906cda9d7a08b56e267776d822d0d915e614e477b231fc54cd305b01/68747470733a2f2f63646e2e6772756e746a732e636f6d2f6275696c74776974682e706e67)](http://gruntjs.com/)

[typeahead.js](http://twitter.github.io/typeahead.js/)
======================================================

[](#typeaheadjs)

Inspired by [twitter.com](https://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](https://github.com/twitter/typeahead.js/blob/master/doc/bloodhound.md), and the UI view, [Typeahead](https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md). 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
---------------

[](#getting-started)

How you acquire typeahead.js is up to you.

Preferred method:

- Install with [Bower](http://bower.io/): `$ bower install typeahead.js`

Other methods:

- [Download zipball of latest release](http://twitter.github.com/typeahead.js/releases/latest/typeahead.js.zip).
- Download the latest dist files individually:
    - *[bloodhound.js](http://twitter.github.com/typeahead.js/releases/latest/bloodhound.js)* (standalone suggestion engine)
    - *[typeahead.jquery.js](http://twitter.github.com/typeahead.js/releases/latest/typeahead.jquery.js)* (standalone UI view)
    - *[typeahead.bundle.js](http://twitter.github.com/typeahead.js/releases/latest/typeahead.bundle.js)* (*bloodhound.js* + *typeahead.jquery.js*)
    - *[typeahead.bundle.min.js](http://twitter.github.com/typeahead.js/releases/latest/typeahead.bundle.min.js)*

**Note:** both *bloodhound.js* and *typeahead.jquery.js* have a dependency on [jQuery](http://jquery.com/) 1.9+.

Documentation
-------------

[](#documentation)

- [Typeahead Docs](https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md)
- [Bloodhound Docs](https://github.com/twitter/typeahead.js/blob/master/doc/bloodhound.md)

Examples
--------

[](#examples)

For some working examples of typeahead.js, visit the [examples page](http://twitter.github.io/typeahead.js/examples).

Browser Support
---------------

[](#browser-support)

- Chrome
- Firefox 3.5+
- Safari 4+
- Internet Explorer 8+
- Opera 11+

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

Customer Support
----------------

[](#customer-support)

For general questions about typeahead.js, tweet at [@typeahead](https://twitter.com/typeahead).

For technical questions, you should post a question on [Stack Overflow](http://stackoverflow.com/) and tag it with [typeahead.js](http://stackoverflow.com/questions/tagged/typeahead.js).

Issues
------

[](#issues)

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

Versioning
----------

[](#versioning)

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

`..`

And constructed with the following guidelines:

- Breaking backwards compatibility bumps the major
- New additions without breaking backwards compatibility bumps the minor
- Bug fixes and misc changes bump the patch

For more information on semantic versioning, please visit .

Testing
-------

[](#testing)

Tests are written using [Jasmine](http://jasmine.github.io/) and ran with [Karma](http://karma-runner.github.io/). To run the test suite with PhantomJS, run `$ npm test`.

Developers
----------

[](#developers)

If you plan on contributing to typeahead.js, be sure to read the [contributing guidelines](https://github.com/twitter/typeahead.js/blob/master/CONTRIBUTING.md). A good starting place for new contributors are issues labeled with [entry-level](https://github.com/twitter/typeahead.js/issues?&labels=entry-level&state=open). 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](https://github.com/gruntjs/grunt-cli)installed (`$ npm install -g grunt-cli`). Below is an overview of the available Grunt tasks that'll be useful in development.

- `grunt build` – Builds *typeahead.js* from source.
- `grunt lint` – Runs source and test files through JSHint.
- `grunt watch` – Rebuilds *typeahead.js* whenever a source file is modified.
- `grunt server` – Serves files from the root of typeahead.js on localhost:8888. Useful for using *test/playground.html* for debugging/testing.
- `grunt dev` – Runs `grunt watch` and `grunt server` in parallel.

Maintainers
-----------

[](#maintainers)

- **Jake Harding**

    - [@JakeHarding](https://twitter.com/JakeHarding)
    - [GitHub](https://github.com/jharding)
- **You?**

Authors
-------

[](#authors)

- **Jake Harding**

    - [@JakeHarding](https://twitter.com/JakeHarding)
    - [GitHub](https://github.com/jharding)
- **Veljko Skarich**

    - [@vskarich](https://twitter.com/vskarich)
    - [GitHub](https://github.com/vskarich)
- **Tim Trueman**

    - [@timtrueman](https://twitter.com/timtrueman)
    - [GitHub](https://github.com/timtrueman)

License
-------

[](#license)

Copyright 2013 Twitter, Inc.

Licensed under the MIT License

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity70

Solid adoption and visibility

Community49

Growing community involvement

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~64 days

Recently: every ~72 days

Total

8

Last Release

4040d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdbdcf9625c5abc52d73255da84f0af910e73347ee658a5b6b732c45755bcab7?d=identicon)[caniszczyk](/maintainers/caniszczyk)

---

Top Contributors

[![jharding](https://avatars.githubusercontent.com/u/314351?v=4)](https://github.com/jharding "jharding (77 commits)")[![timtrueman](https://avatars.githubusercontent.com/u/20725?v=4)](https://github.com/timtrueman "timtrueman (7 commits)")[![caniszczyk](https://avatars.githubusercontent.com/u/63777?v=4)](https://github.com/caniszczyk "caniszczyk (5 commits)")[![akre54](https://avatars.githubusercontent.com/u/931368?v=4)](https://github.com/akre54 "akre54 (3 commits)")[![lookfirst](https://avatars.githubusercontent.com/u/85355?v=4)](https://github.com/lookfirst "lookfirst (3 commits)")[![twhitbeck](https://avatars.githubusercontent.com/u/762471?v=4)](https://github.com/twhitbeck "twhitbeck (2 commits)")[![Morgon](https://avatars.githubusercontent.com/u/879077?v=4)](https://github.com/Morgon "Morgon (2 commits)")[![ragulka](https://avatars.githubusercontent.com/u/593267?v=4)](https://github.com/ragulka "ragulka (2 commits)")[![simonexmachina](https://avatars.githubusercontent.com/u/261804?v=4)](https://github.com/simonexmachina "simonexmachina (2 commits)")[![stevenwilkin](https://avatars.githubusercontent.com/u/45121?v=4)](https://github.com/stevenwilkin "stevenwilkin (2 commits)")[![evverx](https://avatars.githubusercontent.com/u/10195800?v=4)](https://github.com/evverx "evverx (1 commits)")[![gintsmurans](https://avatars.githubusercontent.com/u/56369?v=4)](https://github.com/gintsmurans "gintsmurans (1 commits)")[![IsaacHaze](https://avatars.githubusercontent.com/u/3511481?v=4)](https://github.com/IsaacHaze "IsaacHaze (1 commits)")[![jaspertey](https://avatars.githubusercontent.com/u/1280844?v=4)](https://github.com/jaspertey "jaspertey (1 commits)")[![jeffmax](https://avatars.githubusercontent.com/u/479260?v=4)](https://github.com/jeffmax "jeffmax (1 commits)")[![aronwoost](https://avatars.githubusercontent.com/u/408962?v=4)](https://github.com/aronwoost "aronwoost (1 commits)")[![jlbooker](https://avatars.githubusercontent.com/u/3429673?v=4)](https://github.com/jlbooker "jlbooker (1 commits)")[![jmwong](https://avatars.githubusercontent.com/u/342379?v=4)](https://github.com/jmwong "jmwong (1 commits)")[![lamberta](https://avatars.githubusercontent.com/u/43051?v=4)](https://github.com/lamberta "lamberta (1 commits)")[![AntonPalyok](https://avatars.githubusercontent.com/u/975853?v=4)](https://github.com/AntonPalyok "AntonPalyok (1 commits)")

---

Tags

autocompletetypeahead

### Embed Badge

![Health badge](/badges/twitter-typeaheadjs/health.svg)

```
[![Health](https://phpackages.com/badges/twitter-typeaheadjs/health.svg)](https://phpackages.com/packages/twitter-typeaheadjs)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[jetbrains/phpstorm-stubs

PHP runtime &amp; extensions header files for PhpStorm

1.4k27.7M68](/packages/jetbrains-phpstorm-stubs)[corejavascript/typeahead.js

fast and fully-featured autocomplete library

975103.8k2](/packages/corejavascript-typeaheadjs)[phalcon/ide-stubs

The most complete Phalcon Framework IDE stubs library which enables autocompletion in modern IDEs.

1623.1M121](/packages/phalcon-ide-stubs)[bazilio/yii2-stubs-generator

Yii2 component stubs generator for Yii::$app

146720.4k1](/packages/bazilio-yii2-stubs-generator)[kartik-v/yii2-widget-typeahead

Enhanced Yii2 wrapper for the Twitter Typeahead plugin (sub repo split from yii2-widgets).

454.8M9](/packages/kartik-v-yii2-widget-typeahead)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
