{"id":18320357,"url":"https://github.com/alice1017/ink-search-select","last_synced_at":"2026-02-25T02:31:47.615Z","repository":{"id":44134761,"uuid":"189912993","full_name":"alice1017/ink-search-select","owner":"alice1017","description":"Incremantal search \u0026 select component for ink","archived":false,"fork":false,"pushed_at":"2023-01-03T23:16:54.000Z","size":520,"stargazers_count":4,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T03:32:50.069Z","etag":null,"topics":["incremental-search","ink","ink-component"],"latest_commit_sha":null,"homepage":null,"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/alice1017.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":"2019-06-03T01:11:41.000Z","updated_at":"2023-10-04T10:39:02.000Z","dependencies_parsed_at":"2023-02-01T13:00:35.358Z","dependency_job_id":null,"html_url":"https://github.com/alice1017/ink-search-select","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alice1017/ink-search-select","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alice1017%2Fink-search-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alice1017%2Fink-search-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alice1017%2Fink-search-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alice1017%2Fink-search-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alice1017","download_url":"https://codeload.github.com/alice1017/ink-search-select/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alice1017%2Fink-search-select/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29809086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T22:43:48.403Z","status":"online","status_checked_at":"2026-02-25T02:00:07.329Z","response_time":61,"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":["incremental-search","ink","ink-component"],"created_at":"2024-11-05T18:16:00.777Z","updated_at":"2026-02-25T02:31:47.588Z","avatar_url":"https://github.com/alice1017.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ink-search-select\r\n\r\n![mpm](https://img.shields.io/npm/v/ink-search-select.svg?style=flat)\r\n![node](https://img.shields.io/node/v/ink-search-select.svg?style=flat)\r\n\r\n\u003e incremental search and select component for [ink](https://github.com/vadimdemedes/ink)\r\n\r\n![DEMO](https://raw.githubusercontent.com/alice1017/ink-search-select/master/media/demo.gif)\r\n\r\n\r\n## Usage\r\n\r\n```js\r\nimport SearchSelect from \"ink-search-select\";\r\nimport React from 'react';\r\nimport { render } from 'ink';\r\n\r\nlet app;\r\nconst languages = [\r\n    \"JavaScript\", \"Java\", \"Python\", \"Ruby\",\r\n    \"TypeScript\", \"ECMAScript\", \"AppleScript\",\r\n    \"Swift\", \"Perl\", \"Lua\", \"Clojure\", \"C++\", \"C\",\r\n    \"Go\", \"Haskell\", \"Scala\", \"Scheme\", \"BrainFu*k\"\r\n];\r\nconst items = languages.map(lang =\u003e {\r\n    return { label: lang.toLowerCase(), value: lang };\r\n});\r\nconst onSelect = (item) =\u003e {\r\n    console.log(`You selected: '${item.value}'`);\r\n    app.unmount();\r\n};\r\n\r\napp = render(\r\n    \u003cSearchSelect\r\n        items={items}\r\n        label=\"Query: \"\r\n        desc=\"Search any languages\"\r\n        onSelect={onSelect}\r\n    /\u003e\r\n);\r\n```\r\n\r\n## Dependencies\r\n\r\n* **[ink](https://github.com/vadimdemedes/ink)** : `^2.1.1`,\r\n* **[ink-select-input](https://github.com/vadimdemedes/ink-select-input)** : `^3.1.1`,\r\n* **[ink-text-input](https://github.com/vadimdemedes/ink-text-input)** : `^3.1.1`\r\n\r\n## Installation\r\n\r\n```code\r\nnpm install ink-search-select\r\n```\r\n\r\nor\r\n\r\n```code\r\nyarn add ink-search-select\r\n```\r\n\r\n## Props\r\n\r\n### label\r\n\r\n| Type     | Default            |\r\n| -------- | ------------------ |\r\n| `string` | `\"Search query: \"` |\r\n\r\nA label string in front of text input.\r\n\r\n### desc\r\n\r\n| Type     | Default             |\r\n| -------- | ------------------- |\r\n| `string` | `\"Search anything\"` |\r\n\r\nA description string of search. It displays between until text inputted after rendered.\r\n\r\n### placeholder\r\n\r\n| Type     | Default |\r\n| -------- | ------- |\r\n| `string` | `\"...\"` |\r\n\r\nA placeholder string of text input.\r\n\r\n### items (from ink-select-input)\r\n\r\n| Type    | Default |\r\n| ------- | ------- |\r\n| `array` | `[]`    |\r\n\r\nAn items array to display in a list. Each item must be an **object** and have `label` and `value` props, it may also optionally have a `key` prop. If no key prop is provided, the value will be used as the item key.\r\n\r\n### itemComponent (from ink-select-input)\r\n\r\n| Type        | Default                                                                            |\r\n| ----------- | ---------------------------------------------------------------------------------- |\r\n| `Component` | `Item` |\r\n\r\nA custom ink component to override the default item component.\r\n\r\n### onSelect (from ink-select-input)\r\n\r\n| Type   | Default    |\r\n| ------ | ---------- |\r\n| `func` | `() =\u003e {}` |\r\n\r\nA function to call when user selects an item. Item object is passed to that function as an argument.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falice1017%2Fink-search-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falice1017%2Fink-search-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falice1017%2Fink-search-select/lists"}