{"id":23854768,"url":"https://github.com/akbarsaputrait/ngememoize","last_synced_at":"2025-09-08T01:32:19.506Z","repository":{"id":270508854,"uuid":"910511376","full_name":"akbarsaputrait/ngememoize","owner":"akbarsaputrait","description":"Ngememoize: Angular Memoization Library","archived":false,"fork":false,"pushed_at":"2025-08-14T15:48:36.000Z","size":1216,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-14T17:34:05.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ngememoize.vercel.app/","language":"TypeScript","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/akbarsaputrait.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-12-31T13:34:23.000Z","updated_at":"2025-08-14T15:48:40.000Z","dependencies_parsed_at":"2025-04-23T15:35:35.507Z","dependency_job_id":"0d1765d8-9e0f-48df-995c-40ed0559cef5","html_url":"https://github.com/akbarsaputrait/ngememoize","commit_stats":null,"previous_names":["akbarsaputrait/ngememoize"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/akbarsaputrait/ngememoize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akbarsaputrait%2Fngememoize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akbarsaputrait%2Fngememoize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akbarsaputrait%2Fngememoize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akbarsaputrait%2Fngememoize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akbarsaputrait","download_url":"https://codeload.github.com/akbarsaputrait/ngememoize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akbarsaputrait%2Fngememoize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274121922,"owners_count":25225801,"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-09-07T02:00:09.463Z","response_time":67,"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":[],"created_at":"2025-01-03T00:01:38.022Z","updated_at":"2025-09-08T01:32:19.501Z","avatar_url":"https://github.com/akbarsaputrait.png","language":"TypeScript","readme":"# Ngememoize: Angular Memoization Library\n\n\\\nEasily boost the performance of your Angular applications by memoizing functions and getters with this lightweight and simple-to-use library.\n\n## ✨ Features\n\n- **Memoize Functions**: Cache function results for improved performance.\n- **Lightweight**: Designed for efficiency without adding unnecessary overhead.\n- **Decorator Support**: Memoization is as simple as adding a decorator.\n- **Angular Compatible**: Fully supports Angular 19 and later.\n- **Tree Shakable**: Only include what you need.\n\n---\n\n## 📦 Installation\n\nTo get started, install Ngememoize via npm:\n\n```bash\nnpm install ngememoize\n```\n\nOr, if you use Yarn or PNPM:\n\n```bash\nyarn add ngememoize\n# or\npnpm add ngememoize\n```\n\n---\n\n## 🚀 Quick Start\n\n### Memoize a Function\n\n```typescript\nimport { Ngememoize } from 'ngememoize';\n\n// Method example\n@Ngememoize({\n  debugLabel: 'processData'\n})\nprocessData(value: number): number {\n  console.log('Processing...');\n  return value * 2;\n}\n\n// Async method example\n@Ngememoize({\n  debugLabel: 'fetchData',\n  maxAge: 5000\n})\nasync fetchData(id: string): Promise\u003cstring\u003e {\n  console.log('Fetching...');\n  return new Promise(resolve =\u003e\n    setTimeout(() =\u003e resolve(`Data for ${id}`), 1000)\n  );\n}\n```\n\nFor more examples on how to use Ngememoize, please refer to the `/projects/example` directory.\n\n---\n\n## 🧪 Testing\n\nTo ensure everything works perfectly, tests are included. Run the following commands:\n\n```bash\nnpm test\n```\n\n---\n\n## 📚 Documentation\n\n### Memoization Decorator\n\n- **@Ngememoize**: Use this decorator on functions or getters to enable memoization.\n\n### Cache Behavior\n\n- Cached results are invalidated when parameters or getter states change.\n\n---\n\n## 🎯 Benefits\n\n- **Performance Boost**: Reduce redundant computations.\n- **Cleaner Code**: Simplify logic by reducing manual caching.\n- **Angular Ready**: Seamlessly integrates with your Angular projects.\n\n---\n\n## 🔧 Contributing\n\nWe welcome contributions! Here's how you can help:\n\n1. Fork the repository.\n2. Create a feature branch: `git checkout -b feature/awesome-feature`\n3. Commit your changes: `git commit -m 'Add awesome feature'`\n4. Push to the branch: `git push origin feature/awesome-feature`\n5. Open a Pull Request.\n\n---\n\n## 📜 License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.\n\n---\n\n## 🤩 Credits\n\nNgememoize was built with ❤️ by developers who love Angular and believe in the power of simplicity and efficiency.\n\n---\n\n## 🌟 Support\n\nIf you find this library helpful, consider giving it a ⭐ on [GitHub](https://github.com/akbarsaputrait/ngememoize). Your support means a lot!\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/akbarsaputrait)\n\n---\n\nNow go forth and **memoize** your way to blazing-fast Angular apps! 🚀\n","funding_links":["https://www.buymeacoffee.com/akbarsaputrait"],"categories":["Development Utilities"],"sub_categories":["Performance"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakbarsaputrait%2Fngememoize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakbarsaputrait%2Fngememoize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakbarsaputrait%2Fngememoize/lists"}