{"id":23789932,"url":"https://github.com/blackglory/json-rpc-creator","last_synced_at":"2026-05-04T15:39:04.738Z","repository":{"id":33604769,"uuid":"159913295","full_name":"BlackGlory/json-rpc-creator","owner":"BlackGlory","description":"🌳 JSON-RPC 2.0 data structures creator","archived":false,"fork":false,"pushed_at":"2023-06-11T04:05:35.000Z","size":545,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T22:29:19.979Z","etag":null,"topics":["browser","library","nodejs","npm-package","typescript"],"latest_commit_sha":null,"homepage":"","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/BlackGlory.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-12-01T05:46:01.000Z","updated_at":"2021-12-24T15:30:57.000Z","dependencies_parsed_at":"2025-01-05T22:33:22.557Z","dependency_job_id":null,"html_url":"https://github.com/BlackGlory/json-rpc-creator","commit_stats":{"total_commits":73,"total_committers":2,"mean_commits":36.5,"dds":0.1095890410958904,"last_synced_commit":"917ec7f6fb7b093ba7853094245d53dc978fd000"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fjson-rpc-creator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fjson-rpc-creator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fjson-rpc-creator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fjson-rpc-creator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackGlory","download_url":"https://codeload.github.com/BlackGlory/json-rpc-creator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240018691,"owners_count":19734872,"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":["browser","library","nodejs","npm-package","typescript"],"created_at":"2025-01-01T17:17:43.129Z","updated_at":"2026-05-04T15:39:04.731Z","avatar_url":"https://github.com/BlackGlory.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-rpc-creator\nJSON-RPC 2.0 data structures creator.\n\nThis module does not check types, nor convert unsupported types (e.g., `undefined` to `null`).\nThis is intentional so you can extend JSON-RPC to values ​​other than JSON.\n\n## Install\n```sh\nnpm install --save json-rpc-creator\n# or\nyarn add json-rpc-creator\n```\n\n## API\n### notification\n```ts\nfunction notification\u003cT\u003e(method: string, params?: JsonRpcParams\u003cT\u003e): JsonRpcNotification\u003cT\u003e\nfunction notification\u003cT\u003e(obj: Omit\u003cJsonRpcNotification\u003cT\u003e, 'jsonrpc'\u003e): JsonRpcNotification\u003cT\u003e\n```\n\n### request\n```ts\nfunction request\u003cT\u003e(id: JsonRpcId, method: string, params?: JsonRpcParams\u003cT\u003e): JsonRpcRequest\u003cT\u003e\nfunction request\u003cT\u003e(obj: Omit\u003cJsonRpcRequest\u003cT\u003e, 'jsonrpc'\u003e): JsonRpcRequest\u003cT\u003e\n```\n\n### success\n```ts\nfunction success\u003cT\u003e(id: JsonRpcId, result: T): JsonRpcSuccess\u003cT\u003e\nfunction success\u003cT\u003e(obj: Omit\u003cJsonRpcSuccess\u003cT\u003e, 'jsonrpc'\u003e): JsonRpcSuccess\u003cT\u003e\n```\n\n### error\n```ts\nfunction error\u003cT\u003e(id: JsonRpcId, code: number, message: string, data?: T): JsonRpcError\u003cT\u003e\nfunction error\u003cT\u003e(id: JsonRpcId, error: JsonRpcErrorObject\u003cT\u003e): JsonRpcError\u003cT\u003e\nfunction error\u003cT\u003e(obj: Omit\u003cJsonRpcError\u003cT\u003e, 'jsonrpc'\u003e): JsonRpcError\u003cT\u003e\n```\n\n### batch\n```ts\nfunction batch\u003cT\u003e(...requests: Array\u003cJsonRpcRequest\u003cT\u003e | JsonRpcNotification\u003cT\u003e\u003e): Array\u003cJsonRpcRequest\u003cT\u003e | JsonRpcNotification\u003cT\u003e\u003e\nfunction batch\u003cT\u003e(...responses: Array\u003cJsonRpcResponse\u003cT\u003e\u003e): Array\u003cJsonRpcResponse\u003cT\u003e\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Fjson-rpc-creator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackglory%2Fjson-rpc-creator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Fjson-rpc-creator/lists"}