{"id":15019905,"url":"https://github.com/steve-lebleu/kompletr","last_synced_at":"2026-03-14T16:34:40.955Z","repository":{"id":20484708,"uuid":"58122625","full_name":"steve-lebleu/kompletr","owner":"steve-lebleu","description":"10kb of vanilla lightweight for a simple \u0026 efficient autocomplete.","archived":false,"fork":false,"pushed_at":"2025-01-25T09:07:18.000Z","size":3348,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T09:07:59.481Z","etag":null,"topics":["auto-complete","auto-completion","autocomplete","autocompletion","esm","esmodules","javascript","library"],"latest_commit_sha":null,"homepage":"https://kompletr.konfer.be","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steve-lebleu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-05T10:15:42.000Z","updated_at":"2025-01-25T09:07:01.000Z","dependencies_parsed_at":"2024-03-22T10:29:43.578Z","dependency_job_id":"069f908b-f224-478a-bfed-928ae8e9a9af","html_url":"https://github.com/steve-lebleu/kompletr","commit_stats":{"total_commits":195,"total_committers":2,"mean_commits":97.5,"dds":0.3025641025641026,"last_synced_commit":"902b04a973fa1ba419f7c6dc9bc164cd77b1ff31"},"previous_names":["steve-lebleu/kompleter","konfer-be/kompleter"],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steve-lebleu%2Fkompletr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steve-lebleu%2Fkompletr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steve-lebleu%2Fkompletr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steve-lebleu%2Fkompletr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steve-lebleu","download_url":"https://codeload.github.com/steve-lebleu/kompletr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238327772,"owners_count":19453675,"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":["auto-complete","auto-completion","autocomplete","autocompletion","esm","esmodules","javascript","library"],"created_at":"2024-09-24T19:54:18.102Z","updated_at":"2025-10-26T12:30:56.955Z","avatar_url":"https://github.com/steve-lebleu.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS autocompletion library - Kømpletr\n\n[![Logo Kømpletr light](https://cdn.konfer.be/images/kompletr/logo-kompletr-dark.png#gh-light-mode-only)](https://cdn.konfer.be/images/kompletr/logo-kompletr-dark.png#gh-light-mode-only)\n[![Logo Kømpletr dark](https://cdn.konfer.be/images/kompletr/logo-kompletr-light.png#gh-dark-mode-only)](https://cdn.konfer.be/images/kompletr/logo-kompletr-light.png#gh-dark-mode-only)\n\n![Github action workflow status](https://github.com/steve-lebleu/kompletr/actions/workflows/build.yml/badge.svg?branch=master)\n![GitHub Release](https://img.shields.io/github/v/release/steve-lebleu/kompletr?logo=Github)\n[![CodeFactor](https://www.codefactor.io/repository/github/steve-lebleu/kompletr/badge)](https://www.codefactor.io/repository/github/steve-lebleu/kompletr)\n[![Coverage Status](https://coveralls.io/repos/github/steve-lebleu/kompletr/badge.svg?branch=master)](https://coveralls.io/github/steve-lebleu/kompletr?branch=master)\n[![GPL Licence](https://badges.frapsoft.com/os/gpl/gpl.svg?v=103)](https://github.com/steve-lebleu/kompletr/blob/master/LICENSE)\n\n## Features\n\n- :white_check_mark: Sync / async querying\n- :white_check_mark: Cache management\n- :white_check_mark: Keyboard navigation\n- :white_check_mark: Flexible research (begining, whole word or ... on your own)\n- :white_check_mark: Flexible suggestions display (1, 2, 3, ... fields)\n- :white_check_mark: Support string or object values\n- :white_check_mark: No dependencies\n- :white_check_mark: 10kb fully included\n\n## Installation\n\n### Package manager\n\n#### Install package\n\n```bash\nnpm i kompletr --save\n```\n\n#### Import module\n\n```javascript\nimport kompletr from 'kompletr'\n```\n\nGet CSS from *./node_modules/kompletr/css/kompletr.min.css*\n\n### Direct download\n\n1. Download latest release archive\n2. Get JS from *[Your-vendors-path]/kompletr/js/kompletr.min.js*\n3. Get CSS from *[Your-vendors-path]/kompletr/css/kompletr.min.css*\n\n#### Import script and stylesheet\n\n``` html\n...\n\u003clink href=\"kompletr.min.css\" rel=\"stylesheet\" type=\"text/css\" /\u003e\n\u003cscript src=\"kompletr.min.js\" type=\"module\"\u003e\u003c/script\u003e\n...\n```\n\n## Getting started\n\nDefine input element:\n\n``` html\n\u003cinput type=\"text\" id=\"auto-complete\" autocomplete=\"off\" placeholder=\"Whatever you want...\" /\u003e\n```\n\nInvoke Kømpletr:\n\n``` javascript\nkompletr({\n  input: 'auto-complete',\n  data: [],\n  onSelect: (selected) =\u003e {\n    console.log('There is the selected value', selected);\n  }\n});\n```\n\n## Options\n\n- **fieldsToDisplay**: string[], properties to display in the suggestion field when suggestions are Objects\n- **mapPropertyAsValue**: string, property to map as input value when the suggestions are Objects\n- **filterOn**: string, check expression from beginning of the value or on the whole word. Default 'prefix'\n- **startQueryingFromChar**: int, number of chars completed in input before kompletr fire search\n- **maxResults**: int, number of max results to display\n- **onKeyup**: function(value), callback fired each time the user press a keyboard touch\n- **onSelect**: function(selected), callback fired after selection of on result item\n- **onError**: function(error), callback fired when an error occurs\n\n## Licence\n\n[GPL](https://www.gnu.org/licenses/gpl-3.0.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteve-lebleu%2Fkompletr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteve-lebleu%2Fkompletr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteve-lebleu%2Fkompletr/lists"}