{"id":28795584,"url":"https://github.com/bakerface/dynamodb-snapshot-store","last_synced_at":"2025-07-23T02:33:03.449Z","repository":{"id":57217831,"uuid":"81078188","full_name":"bakerface/dynamodb-snapshot-store","owner":"bakerface","description":"A snapshot store implementation on top of Amazon DynamoDB","archived":false,"fork":false,"pushed_at":"2017-04-22T15:19:55.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T03:09:28.207Z","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}},"created_at":"2017-02-06T10:59:30.000Z","updated_at":"2018-06-16T00:59:29.000Z","dependencies_parsed_at":"2022-08-28T21:00:54.263Z","dependency_job_id":null,"html_url":"https://github.com/bakerface/dynamodb-snapshot-store","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bakerface/dynamodb-snapshot-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Fdynamodb-snapshot-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Fdynamodb-snapshot-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Fdynamodb-snapshot-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Fdynamodb-snapshot-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bakerface","download_url":"https://codeload.github.com/bakerface/dynamodb-snapshot-store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakerface%2Fdynamodb-snapshot-store/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266270387,"owners_count":23902731,"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","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:28.575Z","updated_at":"2025-07-23T02:33:03.441Z","avatar_url":"https://github.com/bakerface.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dynamodb-snapshot-store\n[![build](https://img.shields.io/travis/bakerface/dynamodb-snapshot-store.svg?flat-square)](https://travis-ci.org/bakerface/dynamodb-snapshot-store)\n[![npm](https://img.shields.io/npm/v/dynamodb-snapshot-store.svg?flat-square)](https://npmjs.com/package/dynamodb-snapshot-store)\n[![downloads](https://img.shields.io/npm/dm/dynamodb-snapshot-store.svg?flat-square)](https://npmjs.com/package/dynamodb-snapshot-store)\n[![climate](https://img.shields.io/codeclimate/github/bakerface/dynamodb-snapshot-store.svg?flat-square)](https://codeclimate.com/github/bakerface/dynamodb-snapshot-store)\n[![coverage](https://img.shields.io/codeclimate/coverage/github/bakerface/dynamodb-snapshot-store.svg?flat-square)](https://codeclimate.com/github/bakerface/dynamodb-snapshot-store)\n\nThis package provides a simple snapshot 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 states. The states are\nserialized to JSON when stored, and deserialized automatically when fetching.\nFor a few examples, view the samples below:\n\n``` javascript\nvar SnapshotStore = require('dynamodb-snapshot-store');\n\nvar snapshotStore = new SnapshotStore({\n  region: 'us-east-1',\n  accessKeyId: 'access-key-id',\n  secretAccessKey: 'secret-access-key',\n  tableName: 'snapshots'\n});\n```\n\n### snapshotStore.store(snapshot)\nAn atomic write of a snapshot to the store.\n\n``` javascript\nvar snapshot = {\n  snapshotId: '00000000-0000-0000-0000-000000000000',\n  state: {\n    foo: 'bar'  \n  }\n};\n\nsnapshotStore.store(snapshot)\n  .then(function () {\n    // the snapshot was stored\n  })\n  .catch(function (err) {\n    // something went wrong\n  });\n});\n```\n\n\n### snapshotStore.fetch(options)\nFetches the aggregate state from the snapshot store.\n\n``` javascript\nvar options = {\n  snapshotId: '00000000-0000-0000-0000-000000000000'\n};\n\nsnapshotStore.fetch(options)\n  .then(function (snapshot) {\n    // =\u003e\n    {\n      snapshotId: '00000000-0000-0000-0000-000000000000',\n      createdAt: 946684800000,\n      state: {\n        foo: 'bar'\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-snapshot-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbakerface%2Fdynamodb-snapshot-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakerface%2Fdynamodb-snapshot-store/lists"}