{"id":22828692,"url":"https://github.com/busterc/mincomplete","last_synced_at":"2026-03-19T23:46:37.100Z","repository":{"id":57297352,"uuid":"108459299","full_name":"busterc/mincomplete","owner":"busterc","description":":arrow_up_down: a very minimal autocomplete typeahead autosuggestion select list highlighter","archived":false,"fork":false,"pushed_at":"2018-05-09T20:22:35.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T08:14:57.311Z","etag":null,"topics":["autocomplete","autoselect","autosuggest","typeahead"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/busterc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-26T19:58:28.000Z","updated_at":"2023-12-01T08:10:58.000Z","dependencies_parsed_at":"2022-09-02T05:42:02.264Z","dependency_job_id":null,"html_url":"https://github.com/busterc/mincomplete","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fmincomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fmincomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fmincomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busterc%2Fmincomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/busterc","download_url":"https://codeload.github.com/busterc/mincomplete/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399803,"owners_count":20770909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autocomplete","autoselect","autosuggest","typeahead"],"created_at":"2024-12-12T19:11:36.823Z","updated_at":"2026-01-08T20:05:47.480Z","avatar_url":"https://github.com/busterc.png","language":"HTML","readme":"# mincomplete [![NPM version][npm-image]][npm-url]\n\n\u003e a very minimal autocomplete typeahead autosuggestion select list highlighter\n\n### try the [demo](https://rawgit.com/busterc/mincomplete/master/test/index.html)\n\n![](https://i.imgur.com/Krcvl6j.gif)\n\n## What it doesn't do\n\n- Populate or significantly modify DOM Element that contains a list of suggestions; forcing you to used a baked in filtering algorithm (e.g. fuzzy) and/or presentation format.\n- Provide every possible capability you could ever dream up for such a feature, sticking you with a whole lot of code that you'll never use.\n\n## What it does\n\nListens to an input for `arrow up`, `arrow down`, `tab` and `enter`\n- Upon arrowing a highlighting class is applied to the current item\n- On `tab` the highlighted item's `innerText` is applied to the `input.value`\n- `Enter` does the same thing as `tab`\n\n## What if you need a bit more functionality\n\n- Create your own, additional, event handlers for `tab` and `enter` outside the scope of mincomplete (e.g. fetch data from a server when hitting `enter`).\n- [**Fork mincomplete**](https://github.com/busterc/mincomplete) and make it your own.\n- Use [**Distiller**](https://github.com/busterc/distiller) to grab the dist file(s) and modify them for your custom use case.\n\n## Install\n\n```sh\n$ npm install mincomplete\n```\n\n## Usage\n\n```html\n// ...\n\n  \u003cstyle\u003e.highlighted { background-color: yellow; }\u003c/style\u003e\n\n\u003c/head\u003e\n\u003cbody\u003e\n\n  \u003cdiv\u003e\n    \u003cinput id=\"search\" type=\"text\"\u003e\n    \u003cdiv id=\"suggestions\"\u003e\u003c/div\u003e\n  \u003c/div\u003e\n\n  \u003cscript\u003e\n    // so easy a caveman can do it\n    mincomplete({\n      input: document.querySelector('#search'),\n      suggestions: document.querySelector('#suggestions'),\n      highlightedClass: 'highlighted'\n    });\n  \u003c/script\u003e\n\n// ...\n```\n\n## License\n\nISC © [Buster Collings](http://about.me/buster)\n\n\n[npm-image]: https://badge.fury.io/js/mincomplete.svg\n[npm-url]: https://npmjs.org/package/mincomplete\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusterc%2Fmincomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbusterc%2Fmincomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusterc%2Fmincomplete/lists"}