{"id":35248318,"url":"https://github.com/nukep/protos-db","last_synced_at":"2026-05-20T09:38:25.059Z","repository":{"id":38022048,"uuid":"142546428","full_name":"nukep/protos-db","owner":"nukep","description":"A set of filesystem-based databases for iterative prototyping for Node.js","archived":false,"fork":false,"pushed_at":"2022-07-07T08:41:44.000Z","size":150,"stargazers_count":0,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T12:43:41.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nukep.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":"2018-07-27T07:54:05.000Z","updated_at":"2020-10-03T06:53:29.000Z","dependencies_parsed_at":"2022-07-12T17:04:52.058Z","dependency_job_id":null,"html_url":"https://github.com/nukep/protos-db","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nukep/protos-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nukep%2Fprotos-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nukep%2Fprotos-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nukep%2Fprotos-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nukep%2Fprotos-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nukep","download_url":"https://codeload.github.com/nukep/protos-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nukep%2Fprotos-db/sbom","scorecard":{"id":698235,"data":{"date":"2025-08-11","repo":{"name":"github.com/nukep/protos-db","commit":"7a0f6d755d7de586d36169ada9ad115753216cd1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/11 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":"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":10,"reason":"no dangerous workflow patterns detected","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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/nukep/protos-db/npmpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/nukep/protos-db/npmpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/nukep/protos-db/npmpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/nukep/protos-db/npmpublish.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned"],"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/npmpublish.yml:1","Info: no jobLevel write permissions found"],"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":"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":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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"16 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-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"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-22T04:22:37.112Z","repository_id":38022048,"created_at":"2025-08-22T04:22:37.112Z","updated_at":"2025-08-22T04:22:37.112Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33253749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"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":[],"created_at":"2025-12-30T06:11:32.908Z","updated_at":"2026-05-20T09:38:25.055Z","avatar_url":"https://github.com/nukep.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NOTE: Extremely unstable, work in progress\n\n# What's this?\n\nThis is a filesystem-based database library I quickly wrote to assist with iterative prototyping. This is intended as a holdover for **Node.js** projects that don't yet implement a \"real\" database.\n\n## Types of databases\n\nThere are so far two types of databases:\n\n* Blob database\n* Time Record database (table-oriented, append-only, indexed by timestamp)\n\nYou should choose the database(s) that are most relevant to your use cases.\n\n## Immutable, addressible data is stored as \"Blobs\"\n\nEach blob is a gzip-compressed string that's addressable by its SHA1 hash.\n\nWhy on earth would you want this?\n\n* a) To avoid persisting the same data twice - save on hard drive space. This is desirable for sparse-yet-large data that you want to normalize\n* b) To compress file contents that contain lots of repetition, such as JSON.\n\nUsage:\n\n```js\nconst { createBlobDb } = require('protos-db')\n\nconst blobDb = createBlobDb('./path/to/my-blob-db')\n\nblobDb.persistDataAsBlob(\"Hello World!\").then(hash =\u003e {\n  console.log(`Persisted Hash: ${hash}`)\n})\n// =\u003e Prints \"Persisted Hash: 2ef7bde608ce5404e97d5f042f95f89f1c232871\"\n\n// later on in your program...\n\nblobDb.readBlobDataAsString(\"2ef7bde608ce5404e97d5f042f95f89f1c232871\").then(contents =\u003e {\n  console.log(`Contents: ${contents}`)\n})\n// =\u003e Prints \"Contents: Hello World!\"\n\n```\n\n\n## Blob data structure, tree\n\nA blob directory might look something like this:\n\n```\nmy-blob-db\n├── 2a\n│   └── ae6c35c94fcfb415dbe95f408b9ce91ee846ed.gz\n├── 87\n│   └── 2e18a933e6c41dc5abe6c29a38b58959c8112b.gz\n└── b8\n    └── dfb080bc33fb564249e34252bf143d88fc018f.gz\n```\n\nThe database above contains three blobs:\n* `2aae6c35c94fcfb415dbe95f408b9ce91ee846ed`\n* `872e18a933e6c41dc5abe6c29a38b58959c8112b`\n* `b8dfb080bc33fb564249e34252bf143d88fc018f`\n\nIf you read the blob, you get a string:\n\n```\n$ zcat my-blob-db/2a/ae6c35c94fcfb415dbe95f408b9ce91ee846ed.gz\nhello world\n$\n```\n\nIf you rehash the uncompressed string, you get the directory+filename back:\n\n```\n$ zcat my-blob-db/2a/ae6c35c94fcfb415dbe95f408b9ce91ee846ed.gz | sha1sum\n2aae6c35c94fcfb415dbe95f408b9ce91ee846ed  -\n$\n```\n\nNotice how the first two characters of the SHA1 are used for the directory names.\nThis is inspired by Git and CDNs that do the same.\n\n* The first reason is for performance. Many file systems, such as Ext*, scan files in a directory linearly. I.e. they start from the top, and check one-by-one until a match is found.\n* The second reason for doing this is to stay within the file system's file limit for directories. On Ext3, this is about 32,000.\n* The last reason is for humans. If you're troubleshooting the database, you don't want to `ls` the directory and get spammed with tens of thousands of files up-front. By fanning out to 256 buckets, that 10,000 becomes 39.\n\n\n## Append-only data is stored as records in tables\n\nAll records are indexed by calendar day.\n\nUsage:\n\n```js\nconst { createRecordDb } = require('protos-db')\n\n// We must additionally supply a function to extract the ISO-8583 timestamp field.\n// All records in all tables must have a way to extract a ISO-8583 timestamp, e.g. a field.\nconst recordDb = createRecordDb('./path/to/my-record-db', record =\u003e record.timestamp)\n\n// There's new information about Marge Simpson!\nrecordDb.appendRecordToTable('marge-simpson-info', {\n  timestamp: \"2018-07-27T09:56:22Z\",\n  name: \"Marge Simpson\",\n  address: \"123 Fake Street\",\n  children: 3\n}).then(() =\u003e {\n  console.log(`Appended record`)\n})\n\n// later on in your program...\n\nrecordDb.readLatestRecord('marge-simpson-info').then(record =\u003e {\n  console.log(`Record: ${JSON.stringify(record)}`)\n})\n// =\u003e Prints \"Record: {\"timestamp\":\"2018-07-27T09:56:22Z\",\"name\":\"Marge Simpson\",\"address\":\"123 Fake Street\",\"children\":3}\"\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnukep%2Fprotos-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnukep%2Fprotos-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnukep%2Fprotos-db/lists"}