{"id":22688247,"url":"https://github.com/emanuelefavero/trpc","last_synced_at":"2026-04-30T00:03:38.798Z","repository":{"id":69318223,"uuid":"599343674","full_name":"emanuelefavero/trpc","owner":"emanuelefavero","description":"This is a cheat sheet repo for tRPC, a library for building typesafe APIs between server and client","archived":false,"fork":false,"pushed_at":"2023-02-09T10:58:40.000Z","size":12212,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T16:13:18.235Z","etag":null,"topics":["client","nodejs","trpc","typescript"],"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/emanuelefavero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-02-09T00:01:59.000Z","updated_at":"2023-11-01T14:18:25.000Z","dependencies_parsed_at":"2023-05-25T03:30:29.649Z","dependency_job_id":null,"html_url":"https://github.com/emanuelefavero/trpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emanuelefavero/trpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Ftrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Ftrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Ftrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Ftrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emanuelefavero","download_url":"https://codeload.github.com/emanuelefavero/trpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Ftrpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["client","nodejs","trpc","typescript"],"created_at":"2024-12-10T00:13:37.397Z","updated_at":"2026-04-30T00:03:38.784Z","avatar_url":"https://github.com/emanuelefavero.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tRPC\n\nThis is a cheat sheet repo for tRPC, a library for building typesafe APIs between server and client\n\n\u003e Note: tRPC main features work with TypeScript\n\n\u0026nbsp;\n\n---\n\n\u0026nbsp;\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Running](#running)\n- [Setup a new project](#setup-a-new-project)\n  - [Setup server folder](#setup-server-folder)\n  - [Setup client folder](#setup-client-folder)\n- [Resources](#resources)\n- [License](#license)\n\n\u0026nbsp;\n\n---\n\n\u0026nbsp;\n\n## Installation\n\n- clone repo and `cd` into it\n- `cd` into `server` and run `npm install`\n- `cd` into `client` and run `npm install`\n\n## Running\n\n- `cd` into `server` and run `npm run dev`\n- `cd` into `client` and run `npm run dev`\n\n- visit `http://localhost:5173/` to see the client\n\n\u0026nbsp;\n\n---\n\n\u0026nbsp;\n\n## Setup a new project\n\ntRPC works well when you have a monorepo with a `server` and `client` folder on the same levelf\n\n\u003e Note: you can setup a new tRPC project with [create-t3-app](https://create.t3.gg/)\n\nOR\n\n### Setup server folder\n\n- run `npm i @trpc/server cors express zod`\n- run `npm i -D @types/cors @types/express @types/node nodemon ts-node typescript`\n- setup `typescript` with `tsc --init`\n- add `dev` script to `package.json`:\n\n```json\n\"dev\": \"nodemon SERVER_NAME.ts\"\n```\n\n- start developing your server\n\n\u003e Note: see this repo project for a working example\n\n### Setup client folder\n\n\u003e Note: You can use many frameworks as the client, but tRPC works best with t3, Next.js and React\n\n- run `npm i @trpc/client`\n- run `npm i -D typescript`\n- setup `typescript` with `tsc --init`\n- add `dev` script to `package.json`:\n\n```json\n\"dev\": \"YOUR CLIENT START COMMAND\"\n```\n\n- start developing your client\n\n\u003e Note: see this repo project for a working example\n\n\u0026nbsp;\n\n---\n\n\u0026nbsp;\n\n## Resources\n\n- [tRPC.io](https://trpc.io/)\n- [tRPC Docs](https://trpc.io/docs)\n- [tRPC Quickstart](https://trpc.io/docs/quickstart)\n- [create-t3-app](https://create.t3.gg/)\n\n## License\n\n- [MIT](LICENSE.md)\n\n\u0026nbsp;\n\n---\n\n\u0026nbsp;\n\n[**Go To Top \u0026nbsp; ⬆️**](#trpc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelefavero%2Ftrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femanuelefavero%2Ftrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelefavero%2Ftrpc/lists"}