{"id":20129890,"url":"https://github.com/open-rpc/typings","last_synced_at":"2025-04-09T16:13:10.825Z","repository":{"id":34881503,"uuid":"185275208","full_name":"open-rpc/typings","owner":"open-rpc","description":"Generate Type Aliases for your OpenRPC Document","archived":false,"fork":false,"pushed_at":"2024-09-13T07:25:05.000Z","size":4866,"stargazers_count":24,"open_issues_count":23,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T16:13:04.212Z","etag":null,"topics":["cli","open-rpc","openrpc"],"latest_commit_sha":null,"homepage":"https://open-rpc.github.io/typings/","language":"TypeScript","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/open-rpc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-05-06T21:34:44.000Z","updated_at":"2025-03-26T11:59:49.000Z","dependencies_parsed_at":"2023-02-19T15:45:26.720Z","dependency_job_id":"3d86234c-478d-4e5e-8c42-6773acad8742","html_url":"https://github.com/open-rpc/typings","commit_stats":{"total_commits":407,"total_committers":9,"mean_commits":45.22222222222222,"dds":0.4545454545454546,"last_synced_commit":"96da33e59effa438fc40d2a672b8a90f2969a915"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-rpc%2Ftypings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-rpc%2Ftypings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-rpc%2Ftypings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-rpc%2Ftypings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-rpc","download_url":"https://codeload.github.com/open-rpc/typings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065282,"owners_count":21041872,"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","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":["cli","open-rpc","openrpc"],"created_at":"2024-11-13T20:36:34.571Z","updated_at":"2025-04-09T16:13:10.806Z","avatar_url":"https://github.com/open-rpc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenRPC Typings\n\n\u003ccenter\u003e\n  \u003cspan\u003e\n    \u003cimg alt=\"CircleCI branch\" src=\"https://img.shields.io/circleci/project/github/open-rpc/typings/master.svg\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/open-rpc/typings/branch/master/graph/badge.svg\" /\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/@open-rpc/typings.svg\" /\u003e\n    \u003cimg alt=\"GitHub release\" src=\"https://img.shields.io/github/release/open-rpc/typings.svg\" /\u003e\n    \u003cimg alt=\"GitHub commits since latest release\" src=\"https://img.shields.io/github/commits-since/open-rpc/typings/latest.svg\" /\u003e\n  \u003c/span\u003e\n\u003c/center\u003e\n\nA tool to produce language-specific typings given an OpenRPC document. \n\nThis package will extract the json-schemas from your document, and give you types for them (and language-specific functionality for dealing with data of that json schema type).\n\nNeed help or have a question? Join us on our [Discord](https://discord.gg/gREUKuF)!\n\n## Installing\n\n`npm install @open-rpc/typings`\n\n## CLI\n\n```bash\n$ open-rpc-typings --help\nUsage: cli [options]\n\nOptions:\n  -v, --version                     print the version number\n  -d, --document [openrpcDocument]  JSON string, or a filepath or remote URL pointing to an Open-RPC JSON document (default: \"./openrpc.json\")\n  --output-rs [directory]           path to output dir of Rust typings\n  --output-ts [directory]           path to output dir of Typescript typings\n  --output-go [directory]           path to output dir of Go typings\n  --name-rs [file]                  file name to input of Rust typings (default: \"./index\")\n  --name-ts [file]                  file name to input of Typescript typings (default: \"./index\")\n  --name-go [file]                  file name to input of Go typings (default: \"./index\")\n  -h, --help                        print usage information\n\n```\n\n## JS/TS SDK\n\n```typescript\nimport OpenRPCTypings from \"@open-rpc/typings\";\n\n\nconst typings = new OpenRPCTypings(OpenRPCDocument);\n\nawait typings.generate()\n\nconst rustTypings = typings.toString(\"rust\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-rpc%2Ftypings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-rpc%2Ftypings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-rpc%2Ftypings/lists"}