{"id":15537509,"url":"https://github.com/nullvoxpopuli/ember-shared-memory","last_synced_at":"2025-10-06T03:56:28.285Z","repository":{"id":45358971,"uuid":"401088215","full_name":"NullVoxPopuli/ember-shared-memory","owner":"NullVoxPopuli","description":"share memory between instances of the same class/component or across any kind of class","archived":false,"fork":false,"pushed_at":"2025-10-01T03:13:10.000Z","size":6321,"stargazers_count":3,"open_issues_count":12,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-01T05:28:15.696Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NullVoxPopuli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-29T16:23:18.000Z","updated_at":"2025-10-01T03:11:56.000Z","dependencies_parsed_at":"2023-01-22T13:00:11.336Z","dependency_job_id":"30101b89-1430-498d-bb71-1a8629ce49fa","html_url":"https://github.com/NullVoxPopuli/ember-shared-memory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NullVoxPopuli/ember-shared-memory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fember-shared-memory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fember-shared-memory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fember-shared-memory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fember-shared-memory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullVoxPopuli","download_url":"https://codeload.github.com/NullVoxPopuli/ember-shared-memory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Fember-shared-memory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278556194,"owners_count":26006081,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["hacktoberfest"],"created_at":"2024-10-02T11:57:49.049Z","updated_at":"2025-10-06T03:56:28.217Z","avatar_url":"https://github.com/NullVoxPopuli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-shared-memory\n\n[![npm version](https://badge.fury.io/js/ember-shared-memory.svg)](https://badge.fury.io/js/ember-shared-memory)\n[![CI](https://github.com/NullVoxPopuli/ember-shared-memory/actions/workflows/ci.yml/badge.svg?branch=main\u0026event=push)](https://github.com/NullVoxPopuli/ember-shared-memory/actions/workflows/ci.yml)\n\nShare objects and values between instances of things.\n\nShare memory between:\n- components\n- components \u003c-\u003e services\n- vanilla classes or other things\n- any class\n\n**Why would you want to do this?**\n\nA common use case is when showing search results on a page, you may have multiple\nrenderings of the same component on that page -- maybe a \"Top Result\" that is \nduplicated further down the page under categorized results.\n\nusing `@shared` allows you to not re-compute that data for the duplicatenly\nrendered components.\n\n## Compatibility\n\n* Ember.js v3.25+\n* TypeScript v4.2+\n\n## Installation\n\n```bash\nnpm install ember-shared-memory\n# or\nyarn add ember-shared-memory\n# or\nember install ember-shared-memory\n```\n\n## Usage\n\n```js\nimport Component from '@glimmer/component';\n\nexport default class MyComponent extends Component {\n  @shared\n  get worksOnGetters() { /* ... */ }\n\n  @shared \n  propertyA = 'any value';\n\n\n  @shared(() =\u003e [/* custom keys */])\n  propertyB = 'any value';\n}\n```\n\n## Testing\n\nTODO\n\n## Contributing\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n\n\n## Thanks\n\nThis library wouldn't be possible without the work of:\n - [@pzuraq](https://github.com/pzuraq)\n - [@josemarluedke](https://github.com/josemarluedke)\n\nSo much appreciate for the work both you have put in to Resources \u003c3\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Fember-shared-memory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullvoxpopuli%2Fember-shared-memory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Fember-shared-memory/lists"}