MCPcopy
hub / github.com/twitter/typeahead.js

github.com/twitter/typeahead.js @v0.11.1 sqlite

repository ↗ · DeepWiki ↗ · release v0.11.1 ↗
137 symbols 213 edges 46 files 0 documented · 0%
README

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: * Install with Bower: $ bower install typeahead.js

Other methods: * Download zipball of latest release. * Download the latest dist files individually: * bloodhound.js (standalone suggestion engine) * typeahead.jquery.js (standalone UI view) * typeahead.bundle.js (bloodhound.js + typeahead.jquery.js) * typeahead.bundle.min.js

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

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

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:

  • 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 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.

  • 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

Authors

License

Copyright 2013 Twitter, Inc.

Licensed under the MIT License

Core symbols most depended-on inside this repo

done
called by 21
src/bloodhound/transport.js
build
called by 17
test/bloodhound/bloodhound_spec.js
ttEach
called by 15
src/typeahead/plugin.js
simulateKeyEvent
called by 12
test/typeahead/input_spec.js
buildTestNode
called by 11
test/typeahead/highlight_spec.js
c
called by 11
src/typeahead/typeahead.js
prefetch
called by 10
test/bloodhound/options_parser_spec.js
remote
called by 10
test/bloodhound/options_parser_spec.js

Shape

Function 137

Languages

TypeScript100%

Modules by API surface

src/bloodhound/options_parser.js12 symbols
src/typeahead/event_emitter.js9 symbols
test/typeahead/dataset_spec.js8 symbols
src/typeahead/dataset.js8 symbols
src/typeahead/plugin.js7 symbols
test/bloodhound/options_parser_spec.js6 symbols
src/typeahead/menu.js6 symbols
src/bloodhound/bloodhound.js6 symbols
test/typeahead/event_emitter_spec.js5 symbols
test/helpers/typeahead_mocks.js5 symbols
test/bloodhound/bloodhound_spec.js5 symbols
src/bloodhound/search_index.js5 symbols

Dependencies from manifests, versioned

chai1.9.1 · 1×
colors0.6.2 · 1×
grunt0.4 · 1×
grunt-concurrent0.5.0 · 1×
grunt-contrib-clean0.4.0 · 1×
grunt-contrib-concat0.1 · 1×
grunt-contrib-connect0.1 · 1×
grunt-contrib-jshint0.8 · 1×
grunt-contrib-uglify0.2.6 · 1×
grunt-exec0.4.5 · 1×
grunt-sed0.1 · 1×

For agents

$ claude mcp add typeahead.js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact