{"id":42113872,"url":"https://github.com/serenysoft/rxdb-flexsearch","last_synced_at":"2026-01-26T14:03:28.306Z","repository":{"id":185697558,"uuid":"673962654","full_name":"serenysoft/rxdb-flexsearch","owner":"serenysoft","description":"RxDB Plugin based on FlexSearch implementation","archived":false,"fork":false,"pushed_at":"2023-08-03T22:44:44.000Z","size":22,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-23T20:18:00.701Z","etag":null,"topics":["flexsearch","fulltext-search","fuzzy","fuzzy-search","javascript","nodejs","rxdb","search","searching","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/serenysoft.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,"governance":null}},"created_at":"2023-08-02T20:29:43.000Z","updated_at":"2025-04-20T06:23:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"3cead45f-1172-4df6-b7df-78535a8afaeb","html_url":"https://github.com/serenysoft/rxdb-flexsearch","commit_stats":null,"previous_names":["serenysoft/rxdb-flexsearch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/serenysoft/rxdb-flexsearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serenysoft%2Frxdb-flexsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serenysoft%2Frxdb-flexsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serenysoft%2Frxdb-flexsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serenysoft%2Frxdb-flexsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serenysoft","download_url":"https://codeload.github.com/serenysoft/rxdb-flexsearch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serenysoft%2Frxdb-flexsearch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28780054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flexsearch","fulltext-search","fuzzy","fuzzy-search","javascript","nodejs","rxdb","search","searching","typescript"],"created_at":"2026-01-26T14:03:17.703Z","updated_at":"2026-01-26T14:03:28.282Z","avatar_url":"https://github.com/serenysoft.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [RxDB](https://rxdb.info) - [FlexSearch](https://github.com/nextapps-de/flexsearch) plugin\n\n[![Build Status](https://github.com/serenysoft/rxdb-flexsearch/actions/workflows/ci.yml/badge.svg)](https://github.com/serenysoft/rxdb-flexsearch/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/serenysoft/rxdb-flexsearch/branch/master/graph/badge.svg?token=Mur8A2Z2Rb)](https://codecov.io/gh/serenysoft/rxdb-flexsearch)\n\n## Install\n\n```cli\nnpm i rxdb-flexsearch flexsearch@0.7.21 --save\n```\n\n## Usage\n\n```js\nimport { addRxPlugin } from 'rxdb';\nimport { getRxStorageMemory } from 'rxdb/plugins/storage-memory';\nimport { RxDBFlexSearchPlugin } from 'rxdb-flexsearch';\nimport { userSchema } from './schemas';\n\naddRxPlugin(RxDBFlexSearchPlugin);\n\nconst database = await createRxDatabase({\n  storage: getRxStorageMemory(),\n});\n\nawait database.addCollections({\n  users: {\n    schema: userSchema,\n    options: {\n      searchable: true,\n    },\n  },\n});\n\n...\n\nconst results = await collection.search(query: string);\nconsole.log(results);\n\n```\n\n## Import/Export indexes\n\n```js\n\nawait database.exportIndexes((key, data) =\u003e {\n  localStorage.setItem(key, data);\n});\n\n\nawait database.importIndexes({\n  [key]: localStorage.getItem(key);\n});\n\n```\n\nYou can use the `autoIndexExport` database option to automatically export indexes when the collection is modified.\n\n```js\nconst database = await createRxDatabase({\n  storage: getRxStorageMemory(),\n  options: {\n    autoIndexExport: (key, value) =\u003e {\n      localStorage.setItem(key, value);\n    },\n  }\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserenysoft%2Frxdb-flexsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserenysoft%2Frxdb-flexsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserenysoft%2Frxdb-flexsearch/lists"}