{"id":27233307,"url":"https://github.com/netrixone/searchbox","last_synced_at":"2025-04-10T14:46:15.447Z","repository":{"id":143829670,"uuid":"209533808","full_name":"netrixone/searchbox","owner":"netrixone","description":"Text input augmented with Lexer magic✨ to support advanced search features.","archived":false,"fork":false,"pushed_at":"2020-09-24T22:04:34.000Z","size":52,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T00:14:26.427Z","etag":null,"topics":["javascript","lexer","parser","search","searchbox","text","tokenizer","typescript","webkitty"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/netrixone.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["f3l1x"]}},"created_at":"2019-09-19T11:13:58.000Z","updated_at":"2025-01-01T17:25:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3e034f7-c561-4f67-a464-5edeae52dbf0","html_url":"https://github.com/netrixone/searchbox","commit_stats":null,"previous_names":["webkitty/searchbox","netrixone/searchbox"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netrixone%2Fsearchbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netrixone%2Fsearchbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netrixone%2Fsearchbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netrixone%2Fsearchbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netrixone","download_url":"https://codeload.github.com/netrixone/searchbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248234288,"owners_count":21069557,"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":["javascript","lexer","parser","search","searchbox","text","tokenizer","typescript","webkitty"],"created_at":"2025-04-10T14:46:14.889Z","updated_at":"2025-04-10T14:46:15.429Z","avatar_url":"https://github.com/netrixone.png","language":"TypeScript","funding_links":["https://github.com/sponsors/f3l1x"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=center\u003eSearchbox\u003c/h1\u003e\n\n\u003cp align=center\u003e\n🌐 \u003ca href=\"https://stuchl4n3k.net\"\u003estuchl4n3k.net\u003c/a\u003e | 💻 \u003ca href=\"https://github.com/stuchl4n3k\"\u003estuchl4n3k\u003c/a\u003e | 🐦 \u003ca href=\"https://twitter.com/stuchl4n3k\"\u003e@stuchl4n3k\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=center\u003e\n\u003ca href=\"https://circleci.com/gh/webkitty/searchbox\"\u003e\u003cimg src=\"https://img.shields.io/circleci/build/github/webkitty/searchbox?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/webkitty/searchbox\"\u003e\u003cimg src=\"https://img.shields.io/codecov/c/github/webkitty/searchbox?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/webkitty/searchbox/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/webkitty/searchbox?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nText input augmented with Lexer magic✨ to support advanced search features. Searchbox supports multiple user-defined keywords (filters, variables) and also _NOT_ operator.\n\n## Features\n\n- [x] Parses user input string into a structured formula of literals.\n- [x] Supports literal negation.\n- [x] Supports unicode.\n- [ ] Operators are configurable.\n\n## Usage\n\n```typescript\nimport * as searchbox from '@webkitty/searchbox';\n\nconst inputText = 'Never take title:raisins from -author:rabbits';\nconst keywords = ['title', 'author'];\n\nconst formula = searchbox.parse(inputText, {keywords});\n\n// Formula:\n//  _: [Never,take,from]\t// words not matching any keyword (aka fulltext)\n//  title: [raisins]\t\t// \"title\" keyword match\n//  -author: [rabbits]\t\t// \"author\" keyword match with NOT operator (\"-\")\n```\n\nPlease note that only **case-sensitive** keyword matching is supported.\n\n## 📝 License\n\nCopyright © 2019 [stuchl4n3k](https://github.com/stuchl4n3k).\nThis project is [MIT](LICENSE) licensed.\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fwebkitty%2Fsearchbox.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fwebkitty%2Fsearchbox?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetrixone%2Fsearchbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetrixone%2Fsearchbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetrixone%2Fsearchbox/lists"}