{"id":20109835,"url":"https://github.com/hyper63/hyper-ext-searchify","last_synced_at":"2025-10-09T15:15:34.835Z","repository":{"id":110719119,"uuid":"452822919","full_name":"hyper63/hyper-ext-searchify","owner":"hyper63","description":"hyper extension to manage your data and search documents with single commands","archived":false,"fork":false,"pushed_at":"2022-01-31T21:22:31.000Z","size":68,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T05:41:38.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyper63.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}},"created_at":"2022-01-27T19:50:51.000Z","updated_at":"2022-01-31T21:22:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9a3d7a7-d04a-4591-a49e-b843bc993e49","html_url":"https://github.com/hyper63/hyper-ext-searchify","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/hyper63%2Fhyper-ext-searchify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-ext-searchify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-ext-searchify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Fhyper-ext-searchify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyper63","download_url":"https://codeload.github.com/hyper63/hyper-ext-searchify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241550070,"owners_count":19980644,"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":[],"created_at":"2024-11-13T18:09:36.285Z","updated_at":"2025-10-09T15:15:29.804Z","avatar_url":"https://github.com/hyper63.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003e⚡️ hyper-ext-searchify ⚡️\u003c/h1\u003e\n\u003cp align=\"center\"\u003eA hyper-connect extension that merges the data api and search api\u003c/p\u003e\n\u003cp align=\"center\"\u003e🔍 + 💾 = 🕵️\u003c/p\u003e\n\n---\n\n## Table of Contents\n\n- [Description](#description)\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n- [CODE OF CONDUCT](#code-of-conduct)\n- [LICENSE](#license)\n- [CONTRIBUTING](#contributing)\n- [ABOUT](#about)\n\n---\n\n## Description\n\nThe data API for hyper can add, get, update, remove documents and the search API can add, update, and remove search documents. Often times you want to combine these two services to make one call to both services, this extension,\nallows you to do that.\n\n- hyper.ext.searchify.add - (adds doc to data and search service)\n- hyper.ext.searchify.get - (returns doc from data service)\n- hyper.ext.searchify.update - (updates doc from data and search service)\n- hyper.ext.searchify.remove - (removes doc from data and search service)\n\n\n## Install\n\n### NodeJS\n\n```sh\nnpm install hyper-connect\nnpm install hyper-ext-searchify\n```\n\n## Deno (using import-map)\n\n```json\n{\n  \"imports\": {\n    \"hyper-connect\": \"https://x.nest.land/hyper-connect@VERSION/deno/mod.ts\",\n    \"hyper-ext-searchify\": \"https://x.nest.land/hyper-ext-searchify@VERSION/deno/mod.ts\"\n  }\n}\n```\n\n```sh\ndeno cache --import-map import_map.json mod.ts\n```\n\n---\n\n## Usage\n\n```js\nimport { connect } from 'hyper-connect'\nimport { searchify } from 'hyper-ext-searchify'\n\n// create HYPER=[connection string] env variable\nconst hyper = searchify(connect(process.env.HYPER))\n\n// increment counter\nconsole.log(await hyper.ext.searchify.add(...))\n// get current count\nconsole.log(await hyper.ext.searchify.get(...))\n// decrement counter\nconsole.log(await hyper.ext.searchify.update(...))\n// reset to zero\nconsole.log(await hyper.ext.searchify.remove(...))\n```\n\n## API\n\n\u003e All functions are promises and take a single argument of string and return Promise\u003cNumber\u003e | Promise\u003cError\u003e\n\u003e\n\u003e (key: string) =\u003e Promise\u003cNumber\u003e | Promise\u003cError\u003e\n\n| command | description | example |\n| ------- | ----------- | ------- |\n| add     | adds document to both data and search | `hyper.ext.searchify.add({...})` |\n| get     | gets document from data | `hyper.ext.searchify.get(id)`  |\n| update  | updates document on both data and search | `hyper.ext.searchify.update(id, {...})` |\n| remove  | removes document on both data and search | `hyper.ext.searchify.remove(id)` |\n\n## Code of Conduct\n\nSEE [CODE_OF_CONDUCT](/CODE_OF_CONDUCT)\n\n## License\n\nSEE [LICENSE](/LICENSE)\n\n## Contributing\n\nAll bug reports and pull requests are welcome that are focused on improving the current scope of this project.\n\n## About\n\n⚡️ hyper-ext-searchify is an extension module for hyper-connect a client library for the ⚡️ hyper service. To learn more about ⚡️ hyper go to https://hyper.io \n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyper63%2Fhyper-ext-searchify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyper63%2Fhyper-ext-searchify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyper63%2Fhyper-ext-searchify/lists"}