{"id":29787207,"url":"https://github.com/alexdln/nimpl-cache","last_synced_at":"2026-01-29T15:02:58.216Z","repository":{"id":227125785,"uuid":"770522064","full_name":"alexdln/nimpl-cache","owner":"alexdln","description":"Repository for implementing caching solutions for full-stack frameworks (incl. next.js cacheHandlers)","archived":false,"fork":false,"pushed_at":"2025-12-18T22:16:48.000Z","size":742,"stargazers_count":10,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-20T00:58:09.315Z","etag":null,"topics":["cache","nextjs","reactjs","server-components","ssr"],"latest_commit_sha":null,"homepage":"https://nimpl.dev/docs/cache-adapter","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/alexdln.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-11T17:38:39.000Z","updated_at":"2025-12-18T22:15:56.000Z","dependencies_parsed_at":"2024-03-31T19:23:30.822Z","dependency_job_id":"77fdbca0-b255-4803-8d3a-e0abe68458ca","html_url":"https://github.com/alexdln/nimpl-cache","commit_stats":{"total_commits":50,"total_committers":1,"mean_commits":50.0,"dds":0.0,"last_synced_commit":"8aa7ee808301bc7a984eb79719d8b4ac045ce17f"},"previous_names":["vordgi/next-impl-cache","vordgi/nimpl-cache","alexdln/nimpl-cache"],"tags_count":66,"template":false,"template_full_name":null,"purl":"pkg:github/alexdln/nimpl-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexdln%2Fnimpl-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexdln%2Fnimpl-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexdln%2Fnimpl-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexdln%2Fnimpl-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexdln","download_url":"https://codeload.github.com/alexdln/nimpl-cache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexdln%2Fnimpl-cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28880017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cache","nextjs","reactjs","server-components","ssr"],"created_at":"2025-07-27T19:45:28.924Z","updated_at":"2026-01-29T15:02:58.211Z","avatar_url":"https://github.com/alexdln.png","language":"TypeScript","readme":"# nimpl-cache\n\nRepository for implementing caching solutions in Next.js, React Router and other frameworks. This monorepo contains cache handlers and utilities designed to provide efficient and scalable caching.\n\n## @nimpl/cache\n\n`@nimpl/cache` is a cache solutions library for creating universal cache-handlers. The library provides building blocks including core handlers (caching strategies) and cache layers (specific cache sources like in-memory LRU or Redis).\n\n[Read more about @nimpl/cache](https://github.com/alexdln/nimpl-cache/tree/main/packages/cache)\n\n## @nimpl/cache-redis\n\n`@nimpl/cache-redis` is a showcase library that demonstrates how to build a cache handler using `@nimpl/cache`. It implements a two-tier caching strategy: an in-memory LRU cache for fast local access and Redis for shared cache across multiple pods.\n\n[Read more about @nimpl/cache-redis](https://github.com/alexdln/nimpl-cache/tree/main/packages/cache-redis)\n\n## Quick Start\n\nInstall the core library:\n\n```bash\nnpm install @nimpl/cache\n# or\npnpm add @nimpl/cache\n```\n\nCreate your custom cache handler:\n\n```ts\n// cache-handlers/default.js\nimport { CacheHandler, LruLayer, FsLayer } from \"@nimpl/cache\";\n\nexport default new CacheHandler({\n  ephemeralLayer: new LruLayer(),\n  persistentLayer: new FsLayer(),\n});\n```\n\nConfigure in `next.config.ts`:\n\n```ts\nimport { type NextConfig } from \"next/types\";\n\nconst nextConfig: NextConfig = {\n  cacheComponents: true,\n  cacheHandlers: {\n    default: import.meta.resolve(\"./cache-handlers/default.js\"),\n  },\n};\n\nexport default nextConfig;\n```\n\n## Additional Packages\n\n### @nimpl/cache-widget\n\n`@nimpl/cache-widget` is a React widget for visualizing and inspecting cache entries. It provides a user-friendly interface to view cache keys, their details, and metadata in your application.\n\n[Read more about @nimpl/cache-widget](https://github.com/alexdln/nimpl-cache/tree/main/packages/cache-widget)\n\n### @nimpl/cache-tools\n\n`@nimpl/cache-tools` provides utilities for working with `@nimpl/cache`-like cache handlers, including data retrieval and function caching. It offers helpers for creating cached functions and API routes for cache inspection tools like `@nimpl/cache-widget`.\n\n[Read more about @nimpl/cache-tools](https://github.com/alexdln/nimpl-cache/tree/main/packages/cache-tools)\n\n## Legacy Packages\n\n\u003e **Note**: The following packages are outdated and not actively maintained for now. They will be updated and improved soon:\n\u003e\n\u003e - `@nimpl/cache-adapter` - Legacy cache adapter package\n\u003e - `@nimpl/cache-in-memory` - Legacy in-memory cache handler\n\u003e\n\u003e For new projects, use `@nimpl/cache` to build custom handlers\n\n## License\n\n[MIT](https://github.com/alexdln/nimpl-cache/blob/main/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdln%2Fnimpl-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexdln%2Fnimpl-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexdln%2Fnimpl-cache/lists"}