{"repo":"chord-ts/rpc","free":true,"listed":false,"github":"https://github.com/chord-ts/rpc","clone":"git clone https://github.com/chord-ts/rpc.git","description":"💎 Cutting edge transport framework vanishing borders between frontend and backend","language":"TypeScript","stars":59,"topics":["express","http","json-rpc","json-rpc-transport","sveltekit","typescript","chord","rpc"],"license":"Apache-2.0","category":"saas-starters-boilerplates","readme_excerpt":"Chord - RPC Framework The revolution in the world of client-server communication. Type-safe RPC on top of JSON-RPC v2 protocol. ✅ Used inside 🥏 Why? Because client-server communication becomes complex with the growth of project. Hundreds of REST API endpoints destroy Developer Experience. On the other hand GraphQL seems like a cumbersome and suboptimal solution, and gRPC works only for server-to-server That's where Chord comes to solve accumulated problems of modern software development ✨ Features Protocol agnostic Framework agnostic Type safe exchange Accelerated development IDE hinting out-of-box Client size 1.5kb ⚙️ Installation Chord can be used with any backend library. Install it freely from npm via your favorite package manager Chord uses decorators and reflection under the hood, to construct server and client So you need to configure your tsconfig.json first ./tsconfig.json ⚠️ Caveats If you are using Vite as bundler of your project, you have to note, that ESbuild that is used under the hood, does not support emitDecoratorMetadata flag at the moment Thus, you have to use additional plugins for Vite. I personally recommend to try out SWC. It fixes this issue and doesn't impact on rebuilding performance Then add SWC plugin to Vite: ./vite.config.ts 🛠️ Usage The example below uses SvelteKit framework, but you can try your own on any other preferred framework like Next or Nuxt 📝 Implement the Class Then implement defined interface inside your controller. In SvelteKit i","default_branch":null,"files":null,"tree":[],"storefront":"/r/chord-ts","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chord-ts/rpc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}