{"id":20493105,"url":"https://github.com/segment-boneyard/model-memoize","last_synced_at":"2025-04-13T17:13:53.039Z","repository":{"id":9131387,"uuid":"10920047","full_name":"segment-boneyard/model-memoize","owner":"segment-boneyard","description":"Memoizes the model objects returned from the server to reduce outbound requests and speed up initial page loading.","archived":false,"fork":false,"pushed_at":"2013-10-22T06:24:23.000Z","size":133,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-04-13T17:13:47.605Z","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/segment-boneyard.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2013-06-24T20:57:03.000Z","updated_at":"2019-02-06T21:50:58.000Z","dependencies_parsed_at":"2022-07-07T19:19:56.338Z","dependency_job_id":null,"html_url":"https://github.com/segment-boneyard/model-memoize","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-boneyard%2Fmodel-memoize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-boneyard%2Fmodel-memoize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-boneyard%2Fmodel-memoize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-boneyard%2Fmodel-memoize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segment-boneyard","download_url":"https://codeload.github.com/segment-boneyard/model-memoize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750127,"owners_count":21155687,"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-15T17:32:57.866Z","updated_at":"2025-04-13T17:13:53.021Z","avatar_url":"https://github.com/segment-boneyard.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# model-memoize\n\n  Memoizes the model objects returned from the server to reduce outbound requests and speed up initial page loading.\n\n## Installation\n\n    $ component install segmentio/model-memoize\n\n## Examples\n\n  Just `use` the plugin:\n\n```js\nvar memoize = require('model-memoize');\nvar model = require('model');\n\nvar Person = model('person')\n  .use(memoize)\n  .attr('id')\n  .attr('name');\n```\n\n  You can also pass in an array of models to be memoized from the beginning, which is useful for passing in models served from the server on initial page load:\n\n```js\nvar Person = model('person')\n  .attr('id')\n  .attr('name')\n  .use(memoize(window.people)); // array of `person` objects\n```\n\n  If you're passing in an array, make sure to define your Model's attributes first.\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegment-boneyard%2Fmodel-memoize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegment-boneyard%2Fmodel-memoize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegment-boneyard%2Fmodel-memoize/lists"}