{"id":17038658,"url":"https://github.com/wbotelhos/complety","last_synced_at":"2025-08-28T12:05:40.538Z","repository":{"id":22479075,"uuid":"96366832","full_name":"wbotelhos/complety","owner":"wbotelhos","description":":broken_heart: Complety - An Auto Complete","archived":false,"fork":false,"pushed_at":"2025-05-14T18:37:38.000Z","size":218,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T18:52:16.765Z","etag":null,"topics":["autocomplete","complete","hacketoberfest2022","hacktoberfest","searching"],"latest_commit_sha":null,"homepage":"http://wbotelhos.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wbotelhos.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"wbotelhos"}},"created_at":"2017-07-05T22:40:22.000Z","updated_at":"2025-05-14T18:37:42.000Z","dependencies_parsed_at":"2025-04-12T14:03:21.286Z","dependency_job_id":null,"html_url":"https://github.com/wbotelhos/complety","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/wbotelhos/complety","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbotelhos%2Fcomplety","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbotelhos%2Fcomplety/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbotelhos%2Fcomplety/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbotelhos%2Fcomplety/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wbotelhos","download_url":"https://codeload.github.com/wbotelhos/complety/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbotelhos%2Fcomplety/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272495601,"owners_count":24944349,"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","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","complete","hacketoberfest2022","hacktoberfest","searching"],"created_at":"2024-10-14T08:57:25.985Z","updated_at":"2025-08-28T12:05:40.524Z","avatar_url":"https://github.com/wbotelhos.png","language":"JavaScript","funding_links":["https://github.com/sponsors/wbotelhos"],"categories":[],"sub_categories":[],"readme":"# Complety - An Auto Complete Plugin\n\n[![Tests](https://github.com/wbotelhos/complety/workflows/Tests/badge.svg)](https://github.com/wbotelhos/complety/actions)\n[![NPM Version](https://badge.fury.io/js/complety.svg)](https://badge.fury.io/js/complety)\n[![Maintainability](https://api.codeclimate.com/v1/badges/7aba78eff57e5d5049ff/maintainability)](https://codeclimate.com/github/wbotelhos/complety/maintainability)\n[![Sponsor](https://img.shields.io/badge/sponsor-%3C3-green)](https://github.com/sponsors/wbotelhos)\n\nComplety is a plugin that generates an autocomplete.\n\n## Options\n\n| Attribute             | Default                       | Description                                                 |\n| --------------------- | ----------------------------- | ----------------------------------------------------------- |\n| cache                 | true                          | enables cache                                               |\n| cacheData             | {}                            | keeps json results on keys represented by the request url   |\n| delay                 | 300                           | time in milliseconds to delay the search after user typing  |\n| functions.getValue    | undefined                     | function to choose which attribute of json to use on search |\n| keys                  | undefined                     | keys of json that will be highlighted                       |\n| minChars              | 1                             | minimum of chars typed to trigger the search                |\n| params                | {}                            | literal or function params sent to query                    |\n| suggestion            | undefined                     | an initial suggestion to be shown                           |\n| templates.none        | undefined                     | compiled template used to render suggestion of no results   |\n| templates.search      | undefined                     | compiled template used to render suggestion                 |\n| url                   | undefined                     | search url                                                  |\n| wrappers.field        | '.complety\\_\\_field'          | class used on field                                         |\n| wrappers.item         | '.complety\\_\\_item'           | class used suggestion items                                 |\n| wrappers.itemSelected | '.complety\\_\\_item--selected' | class used on selected item of suggestion                   |\n| wrappers.list         | '.complety\\_\\_list'           | class used on suggestions list                              |\n| wrappers.loading      | '.complety\\_\\_field--loading' | class used on field during search                           |\n| wrappers.none         | '.complety\\_\\_none'           | class used on item that show no result message              |\n| wrappers.wrapper      | '.complety'                   | class used on complety wrapper                              |\n\n## Usage\n\nYou declare an element with optional data atributes:\n\n```html\n\u003cinput data-url=\"/update\" type=\"search\"\u003e\n```\n\nOn JS you can declare attributes too, but data attributes has priority:\n\n```js\n$('input').complety({ keys: ['name'] });\n```\n\n## Functions\n\n| Methods                  | Description                              |\n| ------------------------ | ---------------------------------------- |\n| complety.abort()         | aborts all pending requests              |\n| complety.hide()          | hides the last suggestions               |\n| complety.loader('start') | starts the loading animation             |\n| complety.loader('stop')  | starts or stops the loading animation    |\n| complety.readonly(true)  | enables fields readonly                  |\n| complety.readonly(false) | disables fields readonly                 |\n| complety.search('value') | executes a search                        |\n| complety.show()          | show the last suggestions                |\n| complety.suggest(json)   | suggest a json result                    |\n| complety.suggestion()    | returns the selected suggestion          |\n| complety.suggestions()   | returns suggestions from the last search |\n| complety.url()           | returns the actual builded url           |\n| complety.wrappers()      | returns the wrappers name                |\n\n## Events\n\n| Events             | Description                                                      |\n| ------------------ | ---------------------------------------------------------------- |\n| complety:always    | when ajax executes `always` callback. arguments: `json, this`    |\n| complety:fail      | when ajax executes `fail` callback. arguments: `json, this`      |\n| complety:done      | when ajax executes `done` callback. arguments: `json, this`      |\n| complety:suggested | when some suggestion is displayed: `suggestion, this`            |\n| complety:none      | when no suggestion result is displayed: arguments: `value, this` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbotelhos%2Fcomplety","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwbotelhos%2Fcomplety","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbotelhos%2Fcomplety/lists"}