{"id":34642322,"url":"https://github.com/cakevm/node-cache","last_synced_at":"2026-05-27T15:04:03.639Z","repository":{"id":264772021,"uuid":"893054779","full_name":"cakevm/node-cache","owner":"cakevm","description":"Ethereum node cache for integration tests","archived":false,"fork":false,"pushed_at":"2024-11-26T08:20:16.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-26T09:21:00.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cakevm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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}},"created_at":"2024-11-23T12:16:57.000Z","updated_at":"2024-11-26T08:20:20.000Z","dependencies_parsed_at":"2024-11-26T09:22:00.305Z","dependency_job_id":"84025865-47fe-453d-9863-1fcf2940fa8c","html_url":"https://github.com/cakevm/node-cache","commit_stats":null,"previous_names":["cakevm/node-cache"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cakevm/node-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakevm%2Fnode-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakevm%2Fnode-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakevm%2Fnode-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakevm%2Fnode-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cakevm","download_url":"https://codeload.github.com/cakevm/node-cache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakevm%2Fnode-cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33570993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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-12-24T17:25:23.743Z","updated_at":"2026-05-27T15:04:03.634Z","avatar_url":"https://github.com/cakevm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node cache\nWhen your tests are using Ethereum node to fetch the storage slots by json-rpc it can slow down the test execution. To avoid this, you can cache the storage slots in a file and use it in the next test runs. \n\nNode cache will store all rpc requests in a file that is compressed and can be stored in the repository.\n\n## Concept\nCache everything that is deterministic and you get for the same request the same result from a node.\n\n```\nTEST -\u003e ANVIL -\u003e NODE CACHE -\u003e REAL NODE\n```\n\n## Status\nCurrently, node cache is in a pre-alpha state.\n\nTODO:\n- Implement compression\n- Hash keys\n- Implement more methods\n- Handle latest block\n\n## Usage\nStart the node and point your test to the node cache server. When the test is passed stop the server and the recorded requests will be stored in the file.\n```shell\nnode-cache --db-file-path records.db --node http://127.0.0.1:8485 --record\n```\nStart `anvil` with the `--rpc` flag and point your test to the node cache server.\n```shell\nanvil --fork-url http://127.0.0.1:7777 --fork-block-number 18567709\n```\n\n### GitHub Workflow\nIn a GitHub Workflow you can download the binary and run it in the background. To save storage compress the record file.\n```yaml\n      - run: |\n          curl -L \"https://github.com/cakevm/node-cache/releases/download/v0.0.1/node-cache-v0.0.1-x86_64-unknown-linux-gnu.tar.gz\" -o node-cache.tar.xz\n          tar -xf node-cache.tar.xz\n          chmod +x node-cache\n          tar -xf .node-cache/record.tar.gz -C .node-cache\n          ./node-cache --db-file-path .node-cache/record.db --node ${{ secrets.MAINNET_HTTP }} \u0026\n      - run: MAINNET_HTTP=http://127.0.0.1:7777 make test\n```\n\n## Licence\nThis project is dual-licensed under the Apache 2.0 or MIT licenses. See [LICENSE-APACHE](./LICENSE-APACHE) and [LICENSE-MIT](./LICENSE-MIT) for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakevm%2Fnode-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakevm%2Fnode-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakevm%2Fnode-cache/lists"}