{"id":19864651,"url":"https://github.com/dev360/backbone.amplify","last_synced_at":"2025-05-02T05:31:13.809Z","repository":{"id":46368060,"uuid":"2309264","full_name":"dev360/Backbone.amplify","owner":"dev360","description":"Amplify storage adapter for Backbone.js","archived":false,"fork":false,"pushed_at":"2011-09-03T16:13:44.000Z","size":196,"stargazers_count":39,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T22:42:57.653Z","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/dev360.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":"2011-09-01T17:54:14.000Z","updated_at":"2022-07-05T13:12:37.000Z","dependencies_parsed_at":"2022-08-29T05:21:51.459Z","dependency_job_id":null,"html_url":"https://github.com/dev360/Backbone.amplify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev360%2FBackbone.amplify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev360%2FBackbone.amplify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev360%2FBackbone.amplify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev360%2FBackbone.amplify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev360","download_url":"https://codeload.github.com/dev360/Backbone.amplify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251992789,"owners_count":21677020,"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":"2024-11-12T15:19:22.764Z","updated_at":"2025-05-02T05:31:12.357Z","avatar_url":"https://github.com/dev360.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backbone Amplify Storage\n\nFull cross browser fall back (IE5 - w00t!) for backbone.js, courtesy of amplify.store.js.\n\n## Usage\n\nInclude Backbone.amplify after having included Backbone.js:\n\n  `\u003cscript type=\"text/javascript\" src=\"json2.js\"\u003e\u003c/script\u003e`  \n  `\u003cscript type=\"text/javascript\" src=\"backbone.js\"\u003e\u003c/script\u003e`  \n  `\u003cscript type=\"text/javascript\" src=\"amplify.store.js\"\u003e\u003c/script\u003e`  \n  `\u003cscript type=\"text/javascript\" src=\"backbone.amplify.js\"\u003e\u003c/script\u003e`  \n\n\nCreate your collections like so:\n\n    window.SomeCollection = Backbone.Collection.extend({\n      \n      localStorage: new Store(\"SomeCollection\"), // Unique name within your app.\n      \n      // ... everything else is normal.\n      \n    });\n  \nFeel free to use Backbone as you usually would, this is a drop-in replacement.\n\n## Browser support\n\nI tested this in IE7, IE9, Firefox 6, Safari 5, and in Chrome 13. The only snag you need to be \naware of is to remember to include the json2 dependency, which is required for IE\u003c8. If you\ncan verify that it works for more browsers, shoot me a mail and let me know so I can update.\n\n\n## Credits\n\nThis code was largely based on https://github.com/jeromegn/Backbone.localStorage, but I needed\nit to work for IE6/7.\n\nAnyhow, its refactored to use amplify.store to accomplish the fallback. Naturally, I copied \nthe tests as well, thank you [Mark Woodall](https://github.com/llad) for the unit tests, and\nbig thanks to [Jerome Gravel-Niquet](https://github.com/jeromegn).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev360%2Fbackbone.amplify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev360%2Fbackbone.amplify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev360%2Fbackbone.amplify/lists"}