{"id":21927352,"url":"https://github.com/yaroslavgaponov/suggester","last_synced_at":"2025-03-22T12:16:12.491Z","repository":{"id":57374185,"uuid":"43965477","full_name":"YaroslavGaponov/suggester","owner":"YaroslavGaponov","description":"library for create suggest index","archived":false,"fork":false,"pushed_at":"2015-11-11T10:21:52.000Z","size":264,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-27T11:25:26.862Z","etag":null,"topics":["memory-database","suggestion"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YaroslavGaponov.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":"2015-10-09T15:52:04.000Z","updated_at":"2021-02-18T19:11:37.000Z","dependencies_parsed_at":"2022-09-17T16:50:33.841Z","dependency_job_id":null,"html_url":"https://github.com/YaroslavGaponov/suggester","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YaroslavGaponov%2Fsuggester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YaroslavGaponov%2Fsuggester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YaroslavGaponov%2Fsuggester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YaroslavGaponov%2Fsuggester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YaroslavGaponov","download_url":"https://codeload.github.com/YaroslavGaponov/suggester/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244952807,"owners_count":20537474,"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":["memory-database","suggestion"],"created_at":"2024-11-28T22:14:47.795Z","updated_at":"2025-03-22T12:16:12.468Z","avatar_url":"https://github.com/YaroslavGaponov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Suggester [![Build Status](https://travis-ci.org/YaroslavGaponov/suggester.png?branch=master)](https://travis-ci.org/YaroslavGaponov/suggester)\n\n    library for create suggest index\n\n## Usage\n\n###### code\n\n```js\nvar Suggester = require('suggester');\nvar suggester = new Suggester();\nsuggester.add('hello world');\nsuggester.add('hello city');\nsuggester.add('hello city');\nsuggester.add('hello city');\nsuggester.add('hello village');\nsuggester.add('hello village');\nconsole.log(suggester.search('hell'));\n```\n\n###### result\n```js\n[ 'hello city', 'hello village', 'hello world' ]\n```\n\n## Example\n    Autocomplete for NPM packages\n\n##### Run server\n```sh\ncd example\\web\nnpm install\nPORT=58468 node server.js \n```\n\n##### Wait\n```sh\n[gap@localhost web]$ PORT=58468 node server.js \n   info  - socket.io started\nDownloading data about packages...\nCreating suggest index...\nPlease open http://localhost:58468\nLoaded  500  docs\nLoaded  1000  docs\n...\n```\n##### Open website\n```sh\nxdg-open http://localhost:58468\n```\n##### Result\n![alt text](https://github.com/YaroslavGaponov/suggester/raw/master/example.png \"Example\")\n\n## API\n[api.md](api.md)\n\n## License\nMIT Copyright (c) 2015 Yaroslav Gaponov \u003cyaroslav.gaponov@gmail.com\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslavgaponov%2Fsuggester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaroslavgaponov%2Fsuggester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaroslavgaponov%2Fsuggester/lists"}