{"id":15399351,"url":"https://github.com/raviqqe/onerpc","last_synced_at":"2025-04-12T04:44:22.016Z","repository":{"id":168102963,"uuid":"643726497","full_name":"raviqqe/oneRPC","owner":"raviqqe","description":"The router-less serverless RPC framework for TypeScript","archived":false,"fork":false,"pushed_at":"2025-04-10T05:45:40.000Z","size":2241,"stargazers_count":28,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-10T06:37:11.540Z","etag":null,"topics":["aws-lambda","edge-computing","nextjs","rpc","typescript"],"latest_commit_sha":null,"homepage":"https://raviqqe.github.io/oneRPC","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/raviqqe.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2023-05-22T03:01:29.000Z","updated_at":"2025-04-10T05:45:44.000Z","dependencies_parsed_at":"2023-10-31T07:22:10.126Z","dependency_job_id":"3c2219a4-3c7f-40f9-beb7-51d1c92fd524","html_url":"https://github.com/raviqqe/oneRPC","commit_stats":null,"previous_names":["raviqqe/onerpc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2FoneRPC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2FoneRPC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2FoneRPC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2FoneRPC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raviqqe","download_url":"https://codeload.github.com/raviqqe/oneRPC/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519468,"owners_count":21117757,"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":["aws-lambda","edge-computing","nextjs","rpc","typescript"],"created_at":"2024-10-01T15:48:17.469Z","updated_at":"2025-04-12T04:44:21.993Z","avatar_url":"https://github.com/raviqqe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oneRPC\n\n[![GitHub Action](https://img.shields.io/github/actions/workflow/status/raviqqe/onerpc/test.yaml?branch=main\u0026style=flat-square)](https://github.com/raviqqe/onerpc/actions)\n[![Codecov](https://img.shields.io/codecov/c/github/raviqqe/onerpc.svg?style=flat-square)](https://codecov.io/gh/raviqqe/onerpc)\n[![npm](https://img.shields.io/npm/v/onerpc?style=flat-square)](https://www.npmjs.com/package/onerpc)\n[![License](https://img.shields.io/github/license/raviqqe/onerpc.svg?style=flat-square)](LICENSE)\n\nThe router-less serverless RPC framework.\n\noneRPC is a minimal RPC library to convert a server-side function of a type, `(input: T) =\u003e Promise\u003cS\u003e` into `(request: Request) =\u003e Promise\u003cResponse\u003e` and make it callable from the client side in a type-safe way.\n\nCurrently, we support [Next.js Route Handlers][route-handlers] and [AWS Lambda](https://aws.amazon.com/lambda/).\n\n## Features\n\n- 🔮 Seamless client-server communication\n\n  You can call remote procedures just as seamless as calling local functions.\n\n- 🛡️ Type safe\n\n  Server-client communication is made safe with request and response types in TypeScript which are used by both client and server.\n\n- 🔥 Serverless first\n\n  Routing is delegated to other frameworks or infrastructures.\n\n- 🤝 HTTP friendly\n\n  You can leverage full potential of HTTP functionalities, such as cache control headers.\n\n- 🐁 Minimal dependencies\n\n  It depends only on [Web APIs](https://developer.mozilla.org/en-US/docs/Web/API). Thus, it works on many platforms including Node.js, Deno, and edge runtimes.\n\n- 🌊 Streaming support\n\n  Stream responses are transferred as [JSON Lines](https://jsonlines.org/) and clients can consume them chunk by chunk.\n\n## Documentation\n\n[Here](https://raviqqe.com/oneRPC).\n\n## Examples\n\nFor all examples, see a [`examples`](examples) directory.\n\n### Next.js with [Route Handlers][route-handlers]\n\n`app/api/foo/route.ts`:\n\n```typescript\nimport { query } from \"onerpc\";\nimport { z } from \"zod\";\n\nexport const GET = query(z.number(), z.string(), (x) =\u003e `Hello, ${x}!`, {\n  path: \"/api/foo\",\n});\n```\n\n`app/page.tsx`:\n\n```typescript\nimport { type GET } from \"@/app/api/foo/route\";\nimport { query } from \"onerpc/client\";\n\nexport default async (): Promise\u003cJSX.Element\u003e =\u003e (\n  \u003cdiv\u003e{await query\u003ctypeof GET\u003e(\"/api/foo\", 42))}\u003c/div\u003e\n);\n```\n\n## References\n\n- [tRPC](https://trpc.io/)\n- [Hono.js](https://hono.dev/)\n- [Route Handlers | Next.js](https://nextjs.org/docs/app/building-your-application/routing/router-handlers)\n\n## License\n\n[MIT](LICENSE)\n\n[route-handlers]: https://nextjs.org/docs/app/building-your-application/routing/router-handlers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraviqqe%2Fonerpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraviqqe%2Fonerpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraviqqe%2Fonerpc/lists"}