{"id":28795599,"url":"https://github.com/bakerface/dynamodb-event-store","last_synced_at":"2026-03-10T14:02:53.903Z","repository":{"id":72152800,"uuid":"80937521","full_name":"bakerface/dynamodb-event-store","owner":"bakerface","description":"An event store implementation on top of Amazon DynamoDB","archived":false,"fork":false,"pushed_at":"2017-04-26T14:03:09.000Z","size":11,"stargazers_count":16,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-02T17:16:48.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bakerface.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-02-04T18:01:59.000Z","updated_at":"2022-11-07T19:39:20.000Z","dependencies_parsed_at":"2023-03-11T11:56:40.555Z","dependency_job_id":null,"html_url":"https://github.com/bakerface/dynamodb-event-store","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"b02076549ebf3f0f01ecbadf2eda5c696906c504"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/bakerface/dynamodb-event-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Fdynamodb-event-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Fdynamodb-event-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Fdynamodb-event-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Fdynamodb-event-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bakerface","download_url":"https://codeload.github.com/bakerface/dynamodb-event-store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Fdynamodb-event-store/sbom","scorecard":{"id":224120,"data":{"date":"2025-08-11","repo":{"name":"github.com/bakerface/dynamodb-event-store","commit":"b02076549ebf3f0f01ecbadf2eda5c696906c504"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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/4 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":"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":"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":-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":"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":"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"}}]},"last_synced_at":"2025-08-17T03:16:42.615Z","repository_id":72152800,"created_at":"2025-08-17T03:16:42.616Z","updated_at":"2025-08-17T03:16:42.616Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30336074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T12:41:07.687Z","status":"ssl_error","status_checked_at":"2026-03-10T12:41:06.728Z","response_time":106,"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-06-18T03:09:30.876Z","updated_at":"2026-03-10T14:02:53.895Z","avatar_url":"https://github.com/bakerface.png","language":"JavaScript","funding_links":[],"categories":["Event Stores"],"sub_categories":[],"readme":"# dynamodb-event-store\n[![build](https://img.shields.io/travis/bakerface/dynamodb-event-store.svg?flat-square)](https://travis-ci.org/bakerface/dynamodb-event-store)\n[![npm](https://img.shields.io/npm/v/dynamodb-event-store.svg?flat-square)](https://npmjs.com/package/dynamodb-event-store)\n[![downloads](https://img.shields.io/npm/dm/dynamodb-event-store.svg?flat-square)](https://npmjs.com/package/dynamodb-event-store)\n[![climate](https://img.shields.io/codeclimate/github/bakerface/dynamodb-event-store.svg?flat-square)](https://codeclimate.com/github/bakerface/dynamodb-event-store)\n[![coverage](https://img.shields.io/codeclimate/coverage/github/bakerface/dynamodb-event-store.svg?flat-square)](https://codeclimate.com/github/bakerface/dynamodb-event-store)\n\nThis package provides a simple event store implementation on top of Amazon\nDynamoDB. This is meant to be a general purpose package, and makes no\nassumptions about the structure or type of your events. Events are serialized to\nJSON when stored, and deserialized automatically when querying. Events that\nhappen at the same time are grouped into a commit, providing an atomic append\noperation. This guarantees that either all events are made durable, or none of\nthem are. For a few examples, view the samples below:\n\n``` javascript\nvar EventStore = require('dynamodb-event-store');\n\nvar eventStore = new EventStore({\n  region: 'us-east-1',\n  accessKeyId: 'access-key-id',\n  secretAccessKey: 'secret-access-key',\n  tableName: 'commitsByAggregateIdAndVersion',\n  indexName: 'commitsByCommitId'\n});\n```\n\n### eventStore.append(commit)\nAn atomic append of events to the event store.\n\n``` javascript\nvar commit = {\n  aggregateId: '00000000-0000-0000-0000-000000000000',\n  version: 0,\n  events: [\n    {\n      type: 'accountCreated',\n      username: 'john',\n      email: 'john@doe.com'\n    },\n    {\n      type: 'profileEdited',\n      name: 'John Doe',\n      company: 'Doe, Inc.'\n    }\n  ]\n};\n\neventStore.append(commit)\n  .then(function () {\n    // the events were committed to the event store\n  })\n  .catch(function (err) {\n    // something went wrong\n\n    if (err instanceof EventStore.VersionConflictError) {\n      // a commit with that version and aggregateId already exists\n      // most likely a concurrency issue\n    }\n  });\n});\n```\n\n### eventStore.query(options)\nFetches commits for a single aggregate starting at the specified version.\n\n``` javascript\nvar options = {\n  aggregateId: '00000000-0000-0000-0000-000000000000',\n  version: 0\n};\n\neventStore.query(options)\n  .then(function (commits) {\n    // =\u003e\n    [\n      {\n        commitId: '20000101000000000:00000000-0000-0000-0000-000000000000',\n        committedAt: 946684800000, \n        aggregateId: '00000000-0000-0000-0000-000000000000',\n        version: 0,\n        events: [\n          {\n            type: 'accountCreated',\n            username: 'john',\n            email: 'john@doe.com'\n          },\n          {\n            type: 'profileEdited',\n            name: 'John Doe',\n            company: 'Doe, Inc.'\n          }\n        ]\n      },\n      {\n        commitId: '20000101000000001:00000000-0000-0000-0000-000000000000',\n        committedAt: 946684800001, \n        aggregateId: '00000000-0000-0000-0000-000000000000',\n        version: 1,\n        events: [\n          {\n            type: 'accountDeleted'\n          }\n        ]\n      }\n    ]\n  })\n  .catch(function (err) {\n    // something went wrong\n  });\n```\n\n### eventStore.scan([options])\nFetches commits for all aggregates starting at the specified commit id. If no\noptions are defined then start scanning from the beginning.\n\n``` javascript\nvar options = {\n  commitId: '20000101000000000:00000000-0000-0000-0000-000000000000'\n};\n\neventStore.scan(options)\n  .then(function (commits) {\n    // =\u003e\n    [\n      {\n        commitId: '20000101000000000:00000000-0000-0000-0000-000000000000',\n        committedAt: 946684800000, \n        aggregateId: '00000000-0000-0000-0000-000000000000',\n        version: 0,\n        events: [\n          {\n            type: 'accountCreated',\n            username: 'john',\n            email: 'john@doe.com'\n          },\n          {\n            type: 'profileEdited',\n            name: 'John Doe',\n            company: 'Doe, Inc.'\n          }\n        ]\n      },\n      {\n        commitId: '20000101000000001:11111111-1111-1111-1111-111111111111',\n        committedAt: 946684800001, \n        aggregateId: '11111111-1111-1111-1111-111111111111',\n        version: 0,\n        events: [\n          {\n            type: 'accountCreated',\n            username: 'jane',\n            email: 'jane@doe.com'\n          },\n          {\n            type: 'profileEdited',\n            name: 'Jane Doe',\n            company: 'Doe, Inc.'\n          }\n        ]\n      },\n      {\n        commitId: '20000101000000002:00000000-0000-0000-0000-000000000000',\n        committedAt: 946684800002, \n        aggregateId: '00000000-0000-0000-0000-000000000000',\n        version: 1,\n        events: [\n          {\n            type: 'accountDeleted'\n          }\n        ]\n      },\n      {\n        commitId: '20000101000000003:11111111-1111-1111-1111-111111111111',\n        committedAt: 946684800003, \n        aggregateId: '11111111-1111-1111-1111-111111111111',\n        version: 1,\n        events: [\n          {\n            type: 'accountDeleted'\n          }\n        ]\n      }\n    ]\n  })\n  .catch(function (err) {\n    // something went wrong\n  });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakerface%2Fdynamodb-event-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbakerface%2Fdynamodb-event-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakerface%2Fdynamodb-event-store/lists"}