{"id":23249519,"url":"https://github.com/wizardone/fetch-autocomplete","last_synced_at":"2026-05-09T05:32:51.945Z","repository":{"id":57234521,"uuid":"78125366","full_name":"wizardone/fetch-autocomplete","owner":"wizardone","description":"Autocomplete input field, using the fetch api","archived":false,"fork":false,"pushed_at":"2017-03-08T09:16:08.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T23:19:20.964Z","etag":null,"topics":["autocomplete","es2015","fetch-api","javascript","json","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wizardone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-05T15:38:19.000Z","updated_at":"2023-12-01T07:57:51.000Z","dependencies_parsed_at":"2022-09-15T00:30:40.446Z","dependency_job_id":null,"html_url":"https://github.com/wizardone/fetch-autocomplete","commit_stats":null,"previous_names":["wizardone/react-autocomplete"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wizardone/fetch-autocomplete","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Ffetch-autocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Ffetch-autocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Ffetch-autocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Ffetch-autocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wizardone","download_url":"https://codeload.github.com/wizardone/fetch-autocomplete/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wizardone%2Ffetch-autocomplete/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32808441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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","es2015","fetch-api","javascript","json","react"],"created_at":"2024-12-19T08:19:47.225Z","updated_at":"2026-05-09T05:32:51.922Z","avatar_url":"https://github.com/wizardone.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-autocomplete\n[![Build Status](https://travis-ci.org/wizardone/fetch-autocomplete.svg?branch=master)](https://travis-ci.org/wizardone/react-autocomplete)\n\nAutocomplete field written in React. A couple of points:\n- It uses Json to send data and it expects a json data to be returned\n- It uses the Fetch Api.\n- It is configurable.\n\nTo configure the FetchAutoComplete Component you can pass the following\nproperties:\n\n```javascript\nimport { FetchAutoComplete } from 'fetch-autocomplete'\n\n\u003cFetchAutoComplete inputClass='autocomplete-field' resultsClass='autocomplete-results'\n              mainHolderClass='autocomplete' defaultSearchText='Search...'\n              defaultKeyPresses={3} fetchUrl='http://localhost:8888/data' fetchMethod='POST'\n              fetchMode='cors'\n/\u003e\n```\nThe options that you definitely want to configure are:\n`fetchUrl` =\u003e url endpoint\n`fetchMode` =\u003e 'cors' or 'no-cors', depending on how you use the\nautocomplete field\n\nThe request format is:\n```json\n{\n  \"search\": \"value\"\n}\n```\n\nThe response format needs to look like this:\n```json\n{\n  \"data\": [\n    {\"identifier\": \"title\", \"value\": \"mysearch\", \"url\": \"http://dummy.com\"},\n    {\"identifier\": \"title\", \"value\": \"searchme\", \"url\": \"http://test.com\"}\n  ]\n}\n```\nPretty much data is an array of the search results. Currently only the `value`\nand `url` are used to display the results. Future versions will use more options ;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwizardone%2Ffetch-autocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwizardone%2Ffetch-autocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwizardone%2Ffetch-autocomplete/lists"}