{"id":15775094,"url":"https://github.com/katt/trpc-suspense","last_synced_at":"2025-03-31T14:42:00.351Z","repository":{"id":140088183,"uuid":"421053874","full_name":"KATT/trpc-suspense","owner":"KATT","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-26T09:35:03.000Z","size":377,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-05T16:42:17.132Z","etag":null,"topics":["suspense","trpc"],"latest_commit_sha":null,"homepage":"https://suspense.trpc.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KATT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"KATT"}},"created_at":"2021-10-25T14:16:55.000Z","updated_at":"2021-10-26T09:35:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"09357c70-3d38-4c67-adc5-39e40991b00f","html_url":"https://github.com/KATT/trpc-suspense","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"trpc/examples-next-prisma-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2Ftrpc-suspense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2Ftrpc-suspense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2Ftrpc-suspense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2Ftrpc-suspense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KATT","download_url":"https://codeload.github.com/KATT/trpc-suspense/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246484254,"owners_count":20785041,"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":["suspense","trpc"],"created_at":"2024-10-04T16:42:18.208Z","updated_at":"2025-03-31T14:42:00.323Z","avatar_url":"https://github.com/KATT.png","language":"TypeScript","funding_links":["https://github.com/sponsors/KATT"],"categories":[],"sub_categories":[],"readme":"# Prisma + tRPC\n\nTry in CodeSandbox: [https://githubbox.com/trpc/trpc/tree/main/examples/next-prisma-starter](https://codesandbox.io/s/github/trpc/trpc/tree/main/examples/next-prisma-starter?file=/src/pages/index.tsx)\n\n\n## Features\n\n- 🧙‍♂️ E2E typesafety with [tRPC](https://trpc.io)\n- ⚡ Full-stack React with Next.js\n- ⚡ Database with Prisma\n- ⚙️ VSCode extensions\n- 🎨 ESLint + Prettier\n- 💚 CI setup using GitHub Actions:\n  - ✅ E2E testing with [Playwright](https://playwright.dev/)\n  - ✅ Linting\n\n\n## Setup\n\n```bash\nnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter\ncd trpc-prisma-starter\nyarn\nyarn dx\n```\n\n\n### Requirements\n\n- Node \u003e= 14\n- Docker (for running Postgres)\n\n## Development\n\n### Start project\n\n```bash\nnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter\ncd trpc-prisma-starter\nyarn\nyarn dx\n```\n\n### Commands\n\n```bash\nyarn build      # runs `prisma generate` + `prisma migrate` + `next build`\nyarn db-nuke    # resets local db\nyarn dx         # starts postgres db + runs migrations + seeds + starts next.js \nyarn test-dev   # runs e2e tests on dev\nyarn test-start # runs e2e tests on `next start` - build required before\nyarn test:unit  # runs normal jest unit tests\nyarn test:e2e   # runs e2e tests\n```\n\n## Files of note\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003ePath\u003c/th\u003e\n      \u003cth\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ca href=\"./prisma/schema.prisma\"\u003e\u003ccode\u003e./prisma/schema.prisma\u003c/code\u003e\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003ePrisma schema\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ca href=\"./src/api/trpc/[trpc].tsx\"\u003e\u003ccode\u003e./src/api/trpc/[trpc].tsx\u003c/code\u003e\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003etRPC response handler\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ca href=\"./src/routers\"\u003e\u003ccode\u003e./src/routers\u003c/code\u003e\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003eYour app's different tRPC-routers\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\n---\n\nCreated by [@alexdotjs](https://twitter.com/alexdotjs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatt%2Ftrpc-suspense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatt%2Ftrpc-suspense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatt%2Ftrpc-suspense/lists"}