{"id":15905757,"url":"https://github.com/jinhduong/phodb","last_synced_at":"2025-10-13T11:41:02.495Z","repository":{"id":57322993,"uuid":"186148379","full_name":"jinhduong/phodb","owner":"jinhduong","description":"phodb - a simple chrome extension storage database","archived":false,"fork":false,"pushed_at":"2019-05-14T02:11:18.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-24T05:18:40.458Z","etag":null,"topics":["chrome-extension","database-adapter","storage-engine","typescript-library"],"latest_commit_sha":null,"homepage":"https://jinhduong.github.io/phodb/","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/jinhduong.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}},"created_at":"2019-05-11T15:15:32.000Z","updated_at":"2025-06-26T18:28:57.000Z","dependencies_parsed_at":"2022-09-10T16:52:02.260Z","dependency_job_id":null,"html_url":"https://github.com/jinhduong/phodb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jinhduong/phodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinhduong%2Fphodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinhduong%2Fphodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinhduong%2Fphodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinhduong%2Fphodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinhduong","download_url":"https://codeload.github.com/jinhduong/phodb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinhduong%2Fphodb/sbom","scorecard":{"id":521308,"data":{"date":"2025-08-11","repo":{"name":"github.com/jinhduong/phodb","commit":"a984423479d342b94851b417d0db92d5af1cdf35"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T03:04:44.447Z","repository_id":57322993,"created_at":"2025-08-20T03:04:44.447Z","updated_at":"2025-08-20T03:04:44.447Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014804,"owners_count":26085594,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":["chrome-extension","database-adapter","storage-engine","typescript-library"],"created_at":"2024-10-06T13:08:23.039Z","updated_at":"2025-10-13T11:41:02.477Z","avatar_url":"https://github.com/jinhduong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phodb\n\n![](https://api.travis-ci.org/jinhduong/phodb.svg?branch=dev)\n\n[![](https://badge.fury.io/js/phodb.svg)](https://www.npmjs.com/package/phodb)\n\n## Simplest database interface for chrome extension storage\n\n- Simple built-in methods\n- Faster with storage cached of table\n- Support UUID\n- Support @types\n- Can extend for other simple storages\n\n## Usage\n\n```\nnpm i phodb -S\n```\n\n```ts\nimport { ChromeExtDb } from \"phodb\";\n\nconst db = new ChromeExtDb();\nconst peopleTable = db.table(\"people\");\n\npeopleTable.where(x =\u003e !!x).then(res =\u003e console.log(res));\npeopleTable\n  .findOne(x =\u003e new Date(x.createdAt) \u003c new Date())\n  .then(res =\u003e console.log(res));\n```\n\n## Documents\n\n```ts\nclass ChromeExtDb implements IPhoDb {\n  constructor(options?: {\n    setFunc: (localData: any) =\u003e void;\n    getFunc: (callback: (data: any) =\u003e void) =\u003e void;\n  });\n  table\u003cT\u003e(name: string): ITable\u003cT\u003e;\n}\n\nclass ChromeExtTable\u003cT\u003e implements ITable\u003cT\u003e {\n  constructor(\n    name: string,\n    setFunc: (localData: any) =\u003e void,\n    getFunc: (res: any) =\u003e void\n  );\n  add(model: T): Promise\u003cT \u0026 BaseModel\u003e;\n  remove(id: string): Promise\u003cboolean\u003e;\n  update(id: string, model: T \u0026 BaseModel): Promise\u003cT \u0026 BaseModel | null\u003e;\n  findOne(pre: (model: T \u0026 BaseModel) =\u003e boolean): Promise\u003cT \u0026 BaseModel\u003e;\n  where(pre: (model: T \u0026 BaseModel) =\u003e boolean): Promise\u003c(T \u0026 BaseModel)[]\u003e;\n  list(): Promise\u003c(T \u0026 BaseModel)[]\u003e;\n  getName(): string;\n}\n\ninterface BaseModel {\n    id: string;\n    createdAt: number;\n    updateAt: number;\n}\n```\n\n## Browser \u0026 js built file\nhttps://github.com/jinhduong/phodb/blob/master/build/release/phodb.chrome.js\n```js\nvar peopleTable = ChromeExt.table(\"people\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinhduong%2Fphodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinhduong%2Fphodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinhduong%2Fphodb/lists"}