{"id":13827204,"url":"https://github.com/pespantelis/vue-typeahead","last_synced_at":"2026-01-23T17:49:43.912Z","repository":{"id":44718687,"uuid":"41257953","full_name":"pespantelis/vue-typeahead","owner":"pespantelis","description":":mag: Typeahead component for Vue.js","archived":false,"fork":false,"pushed_at":"2018-11-18T19:53:59.000Z","size":825,"stargazers_count":515,"open_issues_count":24,"forks_count":96,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-10-26T21:05:59.304Z","etag":null,"topics":["javascript","typeahead","vue"],"latest_commit_sha":null,"homepage":"http://pespantelis.github.io/vue-typeahead","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/pespantelis.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":"2015-08-23T16:42:09.000Z","updated_at":"2025-10-26T17:45:10.000Z","dependencies_parsed_at":"2022-07-20T15:02:17.128Z","dependency_job_id":null,"html_url":"https://github.com/pespantelis/vue-typeahead","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pespantelis/vue-typeahead","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pespantelis%2Fvue-typeahead","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pespantelis%2Fvue-typeahead/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pespantelis%2Fvue-typeahead/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pespantelis%2Fvue-typeahead/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pespantelis","download_url":"https://codeload.github.com/pespantelis/vue-typeahead/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pespantelis%2Fvue-typeahead/sbom","scorecard":{"id":728335,"data":{"date":"2025-08-11","repo":{"name":"github.com/pespantelis/vue-typeahead","commit":"102440ebc124a2674e4350f1971b9f3e59486450"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 3/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T13:35:28.748Z","repository_id":44718687,"created_at":"2025-08-22T13:35:28.748Z","updated_at":"2025-08-22T13:35:28.748Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28697307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["javascript","typeahead","vue"],"created_at":"2024-08-04T09:01:52.029Z","updated_at":"2026-01-23T17:49:43.891Z","avatar_url":"https://github.com/pespantelis.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# VueTypeahead\n\nSee a live demo [here](http://pespantelis.github.io/vue-typeahead/).\n\n## Install\n\n#### NPM\nAvailable through npm as `vue-typeahead`.\n```\nnpm install --save vue-typeahead\n```\n\u003e Also, you need to install a HTTP client like [`axios`](https://github.com/mzabriskie/axios).\n\n## Usage\nIf you are using `vue@1.0.22+`, you could use the new [`extends`](http://vuejs.org/api/#extends) property (see below).\n\nOtherwise, the `mixins` way also works.\n\n```html\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003c!-- optional indicators --\u003e\n    \u003ci class=\"fa fa-spinner fa-spin\" v-if=\"loading\"\u003e\u003c/i\u003e\n    \u003ctemplate v-else\u003e\n      \u003ci class=\"fa fa-search\" v-show=\"isEmpty\"\u003e\u003c/i\u003e\n      \u003ci class=\"fa fa-times\" v-show=\"isDirty\" @click=\"reset\"\u003e\u003c/i\u003e\n    \u003c/template\u003e\n\n    \u003c!-- the input field --\u003e\n    \u003cinput type=\"text\"\n           placeholder=\"...\"\n           autocomplete=\"off\"\n           v-model=\"query\"\n           @keydown.down=\"down\"\n           @keydown.up=\"up\"\n           @keydown.enter=\"hit\"\n           @keydown.esc=\"reset\"\n           @blur=\"reset\"\n           @input=\"update\"/\u003e\n\n    \u003c!-- the list --\u003e\n    \u003cul v-show=\"hasItems\"\u003e\n      \u003c!-- for vue@1.0 use: ($item, item) --\u003e\n      \u003cli v-for=\"(item, $item) in items\" :class=\"activeClass($item)\" @mousedown=\"hit\" @mousemove=\"setActive($item)\"\u003e\n        \u003cspan v-text=\"item.name\"\u003e\u003c/span\u003e\n      \u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport VueTypeahead from 'vue-typeahead'\n\nexport default {\n  extends: VueTypeahead, // vue@1.0.22+\n  // mixins: [VueTypeahead], // vue@1.0.21-\n\n  data () {\n    return {\n      // The source url\n      // (required)\n      src: '...',\n\n      // The data that would be sent by request\n      // (optional)\n      data: {},\n\n      // Limit the number of items which is shown at the list\n      // (optional)\n      limit: 5,\n\n      // The minimum character length needed before triggering\n      // (optional)\n      minChars: 3,\n\n      // Highlight the first item in the list\n      // (optional)\n      selectFirst: false,\n\n      // Override the default value (`q`) of query parameter name\n      // Use a falsy value for RESTful query\n      // (optional)\n      queryParamName: 'search'\n    }\n  },\n\n  methods: {\n    // The callback function which is triggered when the user hits on an item\n    // (required)\n    onHit (item) {\n      // alert(item)\n    },\n\n    // The callback function which is triggered when the response data are received\n    // (optional)\n    prepareResponseData (data) {\n      // data = ...\n      return data\n    }\n  }\n}\n\u003c/script\u003e\n\n\u003cstyle\u003e\n  li.active {\n    /* ... */\n  }\n\u003c/style\u003e\n```\n\n## Key Actions\n**Down Arrow:** Highlight the previous item.\n\n**Up Arrow:** Highlight the next item.\n\n**Enter:** Hit on highlighted item.\n\n**Escape:** Hide the list.\n\n## States\n**loading:** Indicates that awaits the data.\n\n**isEmpty:** Indicates that the input is empty.\n\n**isDirty:** Indicates that the input is not empty.\n\u003e Useful if you want to add icon indicators (see the demo)\n\n## License\nVueTypeahead is released under the MIT License. See the bundled LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpespantelis%2Fvue-typeahead","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpespantelis%2Fvue-typeahead","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpespantelis%2Fvue-typeahead/lists"}