{"repo":"icflorescu/trpc-sveltekit","free":true,"listed":false,"github":"https://github.com/icflorescu/trpc-sveltekit","clone":"git clone https://github.com/icflorescu/trpc-sveltekit.git","description":"End-to-end typesafe APIs with tRPC.io for your SvelteKit applications.","language":"TypeScript","stars":835,"topics":["trpc","svelte","sveltekit","sveltekit-adapter","typescript"],"license":"ISC","category":"saas-starters-boilerplates","readme_excerpt":"tRPC-SvelteKit [![NPM version][npm-image]][npm-url] [![License][license-image]][license-url] [![Stars][stars-image]][stars-url] [![Last commit][last-commit-image]][repo-url] [![Closed issues][closed-issues-image]][closed-issues-url] [![Downloads][downloads-image]][npm-url] [![Language][language-image]][repo-url] [![Sponsor the author][sponsor-image]][sponsor-url] Documentation available at icflorescu.github.io/trpc-sveltekit. Move fast and break nothing. End-to-end typesafe APIs for your SvelteKit applications. Works with ✅ @sveltejs/adapter-node ✅ @sveltejs/adapter-vercel ✅ @sveltejs/adapter-netlify Important tRPC-SvelteKit v3.x.x is compatible with tRPC v10. If you're using tRPC v9, use tRPC-SvelteKit v2.x.x. The old source code is available in the trpc-v9 branch. Quickstart Install the package and its dependencies: Create your tRPC router: Create a tRPC context: Add this handle to your SvelteKit app hooks: Define a helper function to easily use the tRPC client in your pages: Call the tRPC procedures in your pages: Examples This repository contains a handful of examples: - simple - bookstall - websocket --- EXPERIMENTAL WebSocket support (courtesy of @SrZorro) SvelteKit doesn't (yet) offer WebSockets support, but if you're using @sveltejs/adapter-node , tRPC-SvelteKit can spin up an experimental WS server to process tRPC procedure calls (see the implementation details to find out how this works under the hood). Caveats - Works with @sveltejs/adapter-node exclusively ; - The","default_branch":null,"files":null,"tree":[],"storefront":"/r/icflorescu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/icflorescu/trpc-sveltekit/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."}