{"id":20240913,"url":"https://github.com/aquapi/quick-rpc","last_synced_at":"2025-07-10T13:36:29.905Z","repository":{"id":218832647,"uuid":"747479525","full_name":"aquapi/quick-rpc","owner":"aquapi","description":"Base layer to implement RPC client and server","archived":false,"fork":false,"pushed_at":"2024-01-24T02:50:00.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T01:34:09.762Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/aquapi.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}},"created_at":"2024-01-24T02:18:16.000Z","updated_at":"2024-01-24T02:18:30.000Z","dependencies_parsed_at":"2024-01-24T03:48:08.043Z","dependency_job_id":null,"html_url":"https://github.com/aquapi/quick-rpc","commit_stats":null,"previous_names":["aquapi/quick-rpc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquapi%2Fquick-rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquapi%2Fquick-rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquapi%2Fquick-rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aquapi%2Fquick-rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aquapi","download_url":"https://codeload.github.com/aquapi/quick-rpc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241686832,"owners_count":20003112,"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":[],"created_at":"2024-11-14T08:50:30.895Z","updated_at":"2025-03-03T15:14:57.319Z","avatar_url":"https://github.com/aquapi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quick-rpc\nImplement RPC server and client with Quick RPC.\n\n## Usage\nServer-side:\n```ts\nimport rpc from 'quick-rpc';\nimport { t, vld } from 'vld-ts';\n\nconst User = t.obj({\n    name: t.str,\n    age: t.num\n}), isUser = vld(User);\n\nconst router = rpc.router({\n    user: rpc.proc(isUser)\n        .fn('create', input =\u003e {\n            // Do something with input\n            return {\n                status: 200,\n                message: 'User created successfully'\n            }\n        }, JSON.stringify) // Pass response serializer if required by underlying framework\n});\n\nexport type App = typeof router;\n```\n\nClient-side (need an adapter implementation for client):\n```ts\nimport { Infer } from 'quick-rpc';\nimport type { App } from '/path/to/rpc/router';\n\n// Use this type for client implementation\ntype Client = Infer\u003cApp\u003e;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faquapi%2Fquick-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faquapi%2Fquick-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faquapi%2Fquick-rpc/lists"}