{"id":14156611,"url":"https://github.com/mishankov/vite-svelte-trpc","last_synced_at":"2025-08-15T22:30:48.596Z","repository":{"id":156214945,"uuid":"582426713","full_name":"mishankov/vite-svelte-trpc","owner":"mishankov","description":"Vite + Svelte + tRPC template","archived":false,"fork":false,"pushed_at":"2024-12-01T19:50:20.000Z","size":510,"stargazers_count":29,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-09T04:36:42.167Z","etag":null,"topics":["fullstack","svelte","sveltejs","template","trpc","typescript","vite"],"latest_commit_sha":null,"homepage":"","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/mishankov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-12-26T19:52:08.000Z","updated_at":"2024-11-23T12:32:59.000Z","dependencies_parsed_at":"2023-11-07T03:15:23.621Z","dependency_job_id":"9a04cfa4-1dd9-4d32-aa2e-45d7a9bc491e","html_url":"https://github.com/mishankov/vite-svelte-trpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishankov%2Fvite-svelte-trpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishankov%2Fvite-svelte-trpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishankov%2Fvite-svelte-trpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishankov%2Fvite-svelte-trpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mishankov","download_url":"https://codeload.github.com/mishankov/vite-svelte-trpc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229964396,"owners_count":18152034,"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":["fullstack","svelte","sveltejs","template","trpc","typescript","vite"],"created_at":"2024-08-17T08:07:07.705Z","updated_at":"2024-12-16T13:14:05.566Z","avatar_url":"https://github.com/mishankov.png","language":"TypeScript","funding_links":[],"categories":["vite"],"sub_categories":[],"readme":"[![CI](https://github.com/mishankov/vite-svelte-trpc/actions/workflows/ci.yml/badge.svg)](https://github.com/mishankov/vite-svelte-trpc/actions/workflows/ci.yml)\n[![MadeWithSvelte.com shield](https://madewithsvelte.com/storage/repo-shields/4184-shield.svg)](https://madewithsvelte.com/p/vite-svelte-trpc-template/shield-link)\n\n# Vite + Svelte + tRPC\n\nThis template should help get you started developing with [Vite](https://vitejs.dev/), [Svelte](https://svelte.dev/) and [tRPC](https://trpc.io/) combo\n\n## Features\n\n- HMR for client code with Vite and automatic build and restart for server with tcx on file changes\n- [Vitest](https://vitest.dev/) for unit tests\n- [Playwright](https://playwright.dev/) for E2E tests\n- [GitHub Actions](https://github.com/features/actions) workflow with build, lint and test steps\n- [Dependabot](https://docs.github.com/en/code-security/dependabot/working-with-dependabot) setup to keep dependencies updated\n- [Express](https://expressjs.com/) and [sirv](https://github.com/lukeed/sirv) to serve SPA and handle tRPC API calls\n\n## How to work with this template?\n\n### Installation\n\n#### Using `degit`\n\n```bash\nnpx degit github:mishankov/vite-svelte-trpc my-app\n```\n\n#### Using GitHub template\n\nCreate repo from this template with \"Use this template\" button above and clone it\n\n### Install dependencies\n\n```bash\nnpm i\n```\n\n### Start server and client\n\n```bash\nnpm run dev\n```\n\nFor HMR support use http://localhost:5173/ link by default. tRPC endpoint is http://localhost:5000/\n\nYou can also start client and server separately. Use `npm run dev:server` to start server and `npm run dev:client` to start client\n\n### Testing\n\nUnit test are living in `tests` directory. To execute them, run: \n\n```bash\nnpm run test\n```\n\nE2E UI tests are living in `e2e` directory. To execute them, run: \n\n```bash\nnpm run e2e\n```\n\n### Create and run production build\n\n```bash\nnpm run build\nnpm run start\n```\n\n## Important points of file structure\n\n- `dist` - client and server build directory\n- `e2e` - E2E tests\n- `tests` - unit tests\n- `src`\n  - `lib`\n    - `trpc.ts` - tRPC client setup to use in browser code\n  - `server`\n    - `index.ts` - setup for ExpressJS server which combines static files serving and tRPC server\n    - `trpc.ts` - setup for tRPC server\n    - `test_data.ts` - test data to showcase basic capabilities of this setup\n\n## Recommended IDE Setup\n\n[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishankov%2Fvite-svelte-trpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmishankov%2Fvite-svelte-trpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishankov%2Fvite-svelte-trpc/lists"}