{"id":34502670,"url":"https://github.com/fsteff/hyperobjects","last_synced_at":"2025-12-24T02:11:37.175Z","repository":{"id":95292580,"uuid":"318508088","full_name":"fsteff/hyperobjects","owner":"fsteff","description":"Transactional object store built on hypercore","archived":false,"fork":false,"pushed_at":"2023-03-19T14:36:26.000Z","size":331,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T08:23:33.029Z","etag":null,"topics":["database","hypercore","p2p"],"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/fsteff.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":"2020-12-04T12:21:30.000Z","updated_at":"2023-09-10T07:43:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"b11e353f-cb3c-4e5b-95ef-86ff4778da7b","html_url":"https://github.com/fsteff/hyperobjects","commit_stats":{"total_commits":51,"total_committers":1,"mean_commits":51.0,"dds":0.0,"last_synced_commit":"bfc42d3beb89d7291c9fa6a664c28b024054ca2b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fsteff/hyperobjects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsteff%2Fhyperobjects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsteff%2Fhyperobjects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsteff%2Fhyperobjects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsteff%2Fhyperobjects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fsteff","download_url":"https://codeload.github.com/fsteff/hyperobjects/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsteff%2Fhyperobjects/sbom","scorecard":{"id":412867,"data":{"date":"2025-08-11","repo":{"name":"github.com/fsteff/hyperobjects","commit":"bfc42d3beb89d7291c9fa6a664c28b024054ca2b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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 'main'"],"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"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T23:09:03.040Z","repository_id":95292580,"created_at":"2025-08-18T23:09:03.040Z","updated_at":"2025-08-18T23:09:03.040Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27992997,"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-12-24T02:00:07.193Z","response_time":83,"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":["database","hypercore","p2p"],"created_at":"2025-12-24T02:11:33.789Z","updated_at":"2025-12-24T02:11:37.168Z","avatar_url":"https://github.com/fsteff.png","language":"TypeScript","readme":"# HyperObjects\n\nSimple object store with transaction support, built on [hypercore](https://github.com/hypercore-protocol/hypercore).\n\n## Features\n\n- simple DB journal\n- concurrent, atomic transactions\n- the default merge handler merges transactions that change different objects\n  - but a custom one can be passed to each transaction\n  - throws an error and rolls back the transaction if a collision occures\n- generates sequential object IDs to maximize efficiency\n  - internally uses an octree to store object-ID \u003e hypercore index mappings\n\n## Usage\n\n```javascript\nconst feed = somehowCreateHypercore()\nconst db = new HyperObjects(feed, {valueEncoding: 'utf-8'})\nlet objId\nawait db.transaction(async tr =\u003e {\n    /**\n     * Creates a new Object\n     * @param value (optional) object value\n     * @param immediate {boolean} (default: false) if the changes should be written to the feed \n     *                  cannot be undone, is persisted even if the transaction fails!\n     * @returns {Promise\u003c{id: number|null}\u003e} id is set AFTER the transaction is over!\n     */\n    objId = tr.create('hello world', false) \n})\n\nawait db.transaction(async tr =\u003e {\n    /**\n     * Fetches the value of an object\n     * @param key {number} object ID\n     * @param immediate {boolean} (default: false) if the changes should be written to the feed \n     *                  cannot be undone, is persisted even if the transaction fails!\n     * @returns {Promise\u003cany\u003e} the object\n     */\n    const greeting = await tr.get(objId.id, false)\n    console.log(greeting)\n})\n\nawait db.transaction(async tr =\u003e {\n    /**\n     * Overwrites the value of an existing object\n     * @param key {number} object ID\n     * @param value {any} object value\n     * @param immediate {boolean} (default: false) if the changes should be written to the feed \n     *                  cannot be undone, is persisted even if the transaction fails!\n     * @returns {Promise\u003cvoid\u003e}\n     */\n    await tr.set(objId.id, 'something else')\n})\n\nawait db.transaction(async tr =\u003e {\n    /**\n     * Deletes an object's value (practically it's set to null)\n     * @param key {number} object ID\n     * @returns {Promise\u003cvoid\u003e}\n     */\n    await tr.delete(objId.id)\n\n    /**\n     * Undos the transaction (changes are not persisted)\n     * Theoretically it is possible to make changes after this again, \n     * the previous ones are simply removed from the queue\n     */\n    tr.rollback()\n})\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsteff%2Fhyperobjects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffsteff%2Fhyperobjects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsteff%2Fhyperobjects/lists"}