{"id":50761314,"url":"https://github.com/mojtaba-afraz/doxor.js","last_synced_at":"2026-06-11T10:01:46.723Z","repository":{"id":45841273,"uuid":"514405916","full_name":"mojtaba-afraz/doxor.js","owner":"mojtaba-afraz","description":"❇️ Doxor.js : more comfortable interacting with IndexedDB","archived":false,"fork":false,"pushed_at":"2022-07-26T10:16:22.000Z","size":26,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-11T01:19:19.822Z","etag":null,"topics":["browser","database","frontend","indexeddb","javascript","storage"],"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/mojtaba-afraz.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":"2022-07-15T21:10:10.000Z","updated_at":"2026-05-24T21:08:55.000Z","dependencies_parsed_at":"2022-08-28T11:10:56.045Z","dependency_job_id":null,"html_url":"https://github.com/mojtaba-afraz/doxor.js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mojtaba-afraz/doxor.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojtaba-afraz%2Fdoxor.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojtaba-afraz%2Fdoxor.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojtaba-afraz%2Fdoxor.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojtaba-afraz%2Fdoxor.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mojtaba-afraz","download_url":"https://codeload.github.com/mojtaba-afraz/doxor.js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojtaba-afraz%2Fdoxor.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34192870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["browser","database","frontend","indexeddb","javascript","storage"],"created_at":"2026-06-11T10:01:46.184Z","updated_at":"2026-06-11T10:01:46.717Z","avatar_url":"https://github.com/mojtaba-afraz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# doxor.js\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.ibb.co/TgBQ8TR/doxor.png\" width=\"350\" alt=\"logo\"/\u003e\n  \u003cbr/\u003e \n    \u003cb\u003eOffline database in Front-End \u003cbr/\u003e library for interacting with IndexedDB\u003cb/\u003e\n\n\u003c/p\u003e\n\u003chr/\u003e\n\n## Install Doxor.js using npm\n\n```\nnpm i doxor.js\n```\n\n## Creating a database\n\n```javascript\nimport Doxor from \"doxor.js\"\n\n\nconst dbName = new Doxor('dbName')\n```\n\n## Specify the structure\n\n```javascript\nconst usersCollection = {\n    name: 'users',\n    indexes: [\n        {\n            key: 'name',\n            unique: false\n        },\n        {\n            key: 'email',\n            unique: true\n        }\n    ]\n}\n\ndbName.Store(usersCollection)\n```\n\n\u003cp\u003e\n\u003cb\u003ename :\u003c/b\u003e Collection name\u003cbr/\u003e\n\u003cb\u003eindexes [array of objects] :\u003c/b\u003e Each object carries collection field properties\u003cbr/\u003e\n\n\u003c/p\u003e\n\n### result:\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://i.ibb.co/wWzm8LH/Screen-Shot-2022-07-18-at-11-27-18-PM.png\"/\u003e\n\u003c/p\u003e\n\n## Insert Record\n\n```javascript\ndbName.Insert('users',{name:\"john\",email:\"john@email.com\"})\n```\n\n## Get Record\n\n```javascript\ndbName.get('users',1,result =\u003e {\n    console.log(result)\n})\n```\n\n## Get All Records\n\n```javascript\ndbName.getAll('users',result =\u003e {\n    console.log(result)\n})\n```\n\n## remove Record\n\n```javascript\ndbName.remove('users',1)\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojtaba-afraz%2Fdoxor.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmojtaba-afraz%2Fdoxor.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojtaba-afraz%2Fdoxor.js/lists"}