{"id":40176790,"url":"https://github.com/sergey-melnychuk/iamgroot","last_synced_at":"2026-01-19T17:34:26.894Z","repository":{"id":165999914,"uuid":"622526315","full_name":"sergey-melnychuk/iamgroot","owner":"sergey-melnychuk","description":"Generate Rust code from Open-RPC spec","archived":false,"fork":false,"pushed_at":"2025-02-12T10:02:51.000Z","size":691,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T10:46:05.561Z","etag":null,"topics":["rpc","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/sergey-melnychuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-02T11:35:41.000Z","updated_at":"2025-02-12T10:02:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"61135d33-dc8d-45dd-9b37-dbdd0664233e","html_url":"https://github.com/sergey-melnychuk/iamgroot","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/sergey-melnychuk/iamgroot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergey-melnychuk%2Fiamgroot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergey-melnychuk%2Fiamgroot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergey-melnychuk%2Fiamgroot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergey-melnychuk%2Fiamgroot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergey-melnychuk","download_url":"https://codeload.github.com/sergey-melnychuk/iamgroot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergey-melnychuk%2Fiamgroot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28577421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T16:29:19.148Z","status":"ssl_error","status_checked_at":"2026-01-19T16:29:17.772Z","response_time":67,"last_error":"SSL_read: 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":["rpc","rust"],"created_at":"2026-01-19T17:34:26.299Z","updated_at":"2026-01-19T17:34:26.883Z","avatar_url":"https://github.com/sergey-melnychuk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"I AM GROOT\n==========\n\n[Proof of Concept] Rust code generator from OpenRPC spec\n\n[OpenRPC spec](https://spec.open-rpc.org/)\n\n[JSON-RPC spec](https://www.jsonrpc.org/specification)\n\n[StarkNet OpenRPC spec](https://github.com/starkware-libs/starknet-specs)\n\n### Usage\n\n* Generate the code and then run suggested example:\n\n```\nexport KEY=\"...\"\nexport URL=\"https://starknet-mainnet.g.alchemy.com/v2/$KEY\"\n\n./x.sh\n\nRUST_LOG=debug cargo run --example demo\n\ncargo run --example gen \u003e data.json\n```\n\n```\n## Sample call\ncurl \\\n-H 'Content-Type: application/json' \\\n-d '{\"jsonrpc\":\"2.0\",\"method\":\"starknet_getStateUpdate\",\"params\":[{\"block_hash\": \"0x4684a9257747388a70848ccf222fd4c7e0bde27b84457e829ee48cac28ea21d\"}],\"id\":1}' \\\n$URL\n```\n\n### TODO\n\n1. [X] `async` version of the `Rpc` trait and the client\n   - using [`async_trait`](https://docs.rs/async-trait/latest/async_trait/)\n   - add an option to generate blocking client (use case: Beerus WebAssembly)\n1. [X] Seamless inclusion into a build process\n   - extract `-build` sub-crate for `[build-dependencies]`\n   - see [iamgroot-demo](https://github.com/sergey-melnychuk/iamgroot-demo/tree/main/gen-build-proxy)\n1. [X] Extract generic HTTP client trait and uncouple specific HTTP client dependencies\n\n#### Misc\n\nTotal lines of code: `find ./src -type f -name \"*.rs\" | xargs grep . | wc -l`\n\n---\n\n**Why \"I am groot\"?**\n\nMost people keep crafting hand-made RPC clients from formalized and machine-readable specs.\n\nSuch people don't want to make specs codegen-friendly and usable for reasons unknown.\n\nSuch people don't want to turn spec \u0026 client upgrades work from `O(N)` into `O(1)`.\n\nSuch people can't explain why do they do it ¯\\\\\\_(ツ)_/¯.\n\nSuch people's excuses all sound like \"I am groot\" to me. That's why.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergey-melnychuk%2Fiamgroot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergey-melnychuk%2Fiamgroot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergey-melnychuk%2Fiamgroot/lists"}