{"id":28959599,"url":"https://github.com/thednp/vite-uni-rpc","last_synced_at":"2026-04-09T08:02:40.642Z","repository":{"id":293708213,"uuid":"909474369","full_name":"thednp/vite-uni-rpc","owner":"thednp","description":"⚡ A Vite plugin for creating server functions with automatic Remote Procedure Calls (RPC) generation","archived":false,"fork":false,"pushed_at":"2025-05-16T17:43:51.000Z","size":627,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T18:39:26.743Z","etag":null,"topics":["express","fastify","fastify-plugin","hono","rpc-library","vite"],"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/thednp.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,"zenodo":null}},"created_at":"2024-12-28T20:12:18.000Z","updated_at":"2025-05-16T17:43:54.000Z","dependencies_parsed_at":"2025-05-16T18:50:09.038Z","dependency_job_id":null,"html_url":"https://github.com/thednp/vite-uni-rpc","commit_stats":null,"previous_names":["thednp/vite-uni-rpc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thednp/vite-uni-rpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thednp%2Fvite-uni-rpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thednp%2Fvite-uni-rpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thednp%2Fvite-uni-rpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thednp%2Fvite-uni-rpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thednp","download_url":"https://codeload.github.com/thednp/vite-uni-rpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thednp%2Fvite-uni-rpc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261577986,"owners_count":23179767,"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":["express","fastify","fastify-plugin","hono","rpc-library","vite"],"created_at":"2025-06-24T00:02:54.158Z","updated_at":"2026-04-09T08:02:40.636Z","avatar_url":"https://github.com/thednp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## vite-uni-rpc\n\nA Vite plugin for creating server functions with automatic Remote Procedure Calls generation.\n\n### Features\n\n- File-level server code isolation without using directives like `'use server'`\n- System wide configuration via vite like config file\n- Automatic RPC generation for server functions\n- Server-side caching with single-flight requests\n- Flexible middleware system with hooks support and adapters for `express`, `fastify` and `hono`\n- Framework agnostic\n- TypeScript support\n\n\u003e NOTE - this is a work in progress plugin. Do not use in production apps.\n\n\n### Examples\n\n| Example             | Source Code                                                                   | Try online                                                                                      |\n| ------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |\n| SPA - node:http     | [SPA](https://github.com/thednp/vite-uni-rpc/tree/main/examples/spa)          | [StackBlitz](https://stackblitz.com/fork/github/thednp/vite-uni-rpc/tree/main/examples/spa)     |            \n| Express             | [Express](https://github.com/thednp/vite-uni-rpc/tree/main/examples/express)  | [StackBlitz](https://stackblitz.com/fork/github/thednp/vite-uni-rpc/tree/main/examples/express) |\n| Fastify             | [Fastify](https://github.com/thednp/vite-uni-rpc/tree/main/examples/fastify)  | [StackBlitz](https://stackblitz.com/fork/github/thednp/vite-uni-rpc/tree/main/examples/fastify) |\n| Hono                | [Hono](https://github.com/thednp/vite-uni-rpc/tree/main/examples/hono)        | [StackBlitz](https://stackblitz.com/fork/github/thednp/vite-uni-rpc/tree/main/examples/hono)    |\n\n\n### Installation\n\n```bash\nnpm install vite-uni-rpc@latest\n```\n\n```bash\npnpm add vite-uni-rpc@latest\n```\n\n\n### Wiki\n\nPlease refer to the [Wiki](https://github.com/thednp/vite-uni-rpc/wiki) for guides on installation, configuration and usage.\n\n\n### TO DO\n\n- [ ] Add/update examples examples\n- [ ] Add AbortController\n- [ ] Fix `The plugin \"vite:dep-scan\" was triggered by this import server/server.mjs:1:29:       1 │ import { createServer } from \"vite\";`\n- [x] Add SPA support\n- [x] Add wiki\n- [x] Test bun\n- [x] Add `contentType` option to `createServerFunction`, currently supporting: `application/json`, `text/plain`;\n- [ ] Add koa adapter\n- [ ] Add Github tooling/workflows\n- [ ] Add tests\n\n### To know\n* in dev mode **only** vite dev server and express/connect middleware are available\n\n\n### Credits\n\nThis project is inspired by [vite-dev-rpc](https://github.com/antfu/vite-dev-rpc).\n\n\n### License\nReleased under [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthednp%2Fvite-uni-rpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthednp%2Fvite-uni-rpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthednp%2Fvite-uni-rpc/lists"}