{"id":15111560,"url":"https://github.com/macrat/indexedfts","last_synced_at":"2025-09-27T13:30:32.618Z","repository":{"id":54888993,"uuid":"120912998","full_name":"macrat/IndexedFTS","owner":"macrat","description":"Full-Text Search engine for web browser.","archived":true,"fork":false,"pushed_at":"2021-01-22T03:59:31.000Z","size":2643,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T21:54:16.480Z","etag":null,"topics":["database","full-text-search","fulltext-search","javascript-library"],"latest_commit_sha":null,"homepage":"https://macrat.github.io/IndexedFTS/","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/macrat.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":"2018-02-09T14:06:55.000Z","updated_at":"2023-01-28T10:58:12.000Z","dependencies_parsed_at":"2022-08-14T05:50:36.567Z","dependency_job_id":null,"html_url":"https://github.com/macrat/IndexedFTS","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2FIndexedFTS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2FIndexedFTS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2FIndexedFTS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2FIndexedFTS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macrat","download_url":"https://codeload.github.com/macrat/IndexedFTS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234438037,"owners_count":18832611,"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":["database","full-text-search","fulltext-search","javascript-library"],"created_at":"2024-09-26T00:21:16.612Z","updated_at":"2025-09-27T13:30:32.092Z","avatar_url":"https://github.com/macrat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"IndexedFTS\n==========\n\nFull-Text Search engine for web browser.\n\n[![NPM](https://nodei.co/npm/indexedfts.png)](https://nodei.co/npm/indexedfts/)\n\n[![Build Status](https://travis-ci.org/macrat/IndexedFTS.svg?branch=master)](https://travis-ci.org/macrat/IndexedFTS)\n[![Coverage Status](https://coveralls.io/repos/github/macrat/IndexedFTS/badge.svg?branch=master)](https://coveralls.io/github/macrat/IndexedFTS?branch=master)\n[![license](https://img.shields.io/github/license/macrat/IndexedFTS.svg)](https://github.com/macrat/IndexedFTS/blob/master/LICENSE)\n[![document](https://macrat.github.io/IndexedFTS/badge.svg)](https://macrat.github.io/IndexedFTS/)\n\n## install\n### HTML\n``` html\n\u003cscript src=\"https://unpkg.com/indexedfts\"\u003e\u003c/script\u003e\n```\n\n### Node\n``` shell\n$ npm install indexedfts\n```\n\n#### ES6\n``` javascript\nimport IndexedFTS from 'indexedfts';\n```\n\n#### common js\n``` javascript\nconst IndexedFTS = require('indexedfts').IndexedFTS;\n```\n\n## example\n``` javascript\n// make database\nconst db = IndexedFTS('database-name', 1, {\n\tuserid: 'primary',                     // primary key will indexed but can not full-text search\n\tname: {unique: true, fulltext: true},  // unique index and can full-text search\n\tdescription: 'fulltext',               // full-text search\n});\n\n\ndb.open()\n\t.then(() =\u003e {\n\t\tdb.put({\n\t\t\tuserid: 1,\n\t\t\tname: 'hello',\n\t\t\tdescription: 'this is test\\n',\n\t\t}, {\n\t\t\tuserid: 20,\n\t\t\tname: 'world',\n\t\t\tdescription: 'check check\\nhello hello world!',\n\t\t});\n\t})\n\n\t.then(() =\u003e db.search(['name', 'description'], 'hel').lower('userid', 5))\n\t.then(result =\u003e {\n\t\tconsole.log(result.length);   // output: 1\n\t\tconsole.log(result[0].name);  // output: hello\n\t})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacrat%2Findexedfts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacrat%2Findexedfts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacrat%2Findexedfts/lists"}