{"id":18578725,"url":"https://github.com/cdleveille/fullstack-bun","last_synced_at":"2025-06-15T17:08:50.435Z","repository":{"id":196068379,"uuid":"693890805","full_name":"cdleveille/fullstack-bun","owner":"cdleveille","description":"Single-page web app project template curated for performance, developer experience, and type safety. Bun \u0026 Elysia backend, React \u0026 TanStack Router frontend, Socket.IO \u0026 TanStack Query bridging the gap.","archived":false,"fork":false,"pushed_at":"2025-06-15T08:27:32.000Z","size":2661,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T08:49:24.808Z","etag":null,"topics":["bun","elysia","fullstack","react","socketio","tanstack-query","tanstack-router","template","typescript","vite"],"latest_commit_sha":null,"homepage":"https://fullstack-bun.fly.dev","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/cdleveille.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2023-09-19T23:25:16.000Z","updated_at":"2025-06-15T08:27:35.000Z","dependencies_parsed_at":"2023-11-25T21:23:13.730Z","dependency_job_id":"7a053a71-0e87-432b-b048-99c3686ef2db","html_url":"https://github.com/cdleveille/fullstack-bun","commit_stats":null,"previous_names":["cdleveille/fullstack-bun"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/cdleveille/fullstack-bun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdleveille%2Ffullstack-bun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdleveille%2Ffullstack-bun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdleveille%2Ffullstack-bun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdleveille%2Ffullstack-bun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdleveille","download_url":"https://codeload.github.com/cdleveille/fullstack-bun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdleveille%2Ffullstack-bun/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260016014,"owners_count":22946319,"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":["bun","elysia","fullstack","react","socketio","tanstack-query","tanstack-router","template","typescript","vite"],"created_at":"2024-11-06T23:37:08.220Z","updated_at":"2025-06-15T17:08:50.426Z","avatar_url":"https://github.com/cdleveille.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# fullstack-bun\n\nSingle-page web app project template curated for performance, developer experience, and type safety.\n\n## Stack\n\n- [Bun](https://bun.sh) - server runtime, package manager, script runner\n- [Elysia](https://elysiajs.com) - server framework\n- [React](https://react.dev) - user interface\n- [TanStack Router](https://tanstack.com/router) - client-side routing\n- [TanStack Query](https://tanstack.com/query) - async state management\n- [Socket.IO](https://socket.io) - real-time server/client communication\n- [TypeScript](https://www.typescriptlang.org), [Biome](https://biomejs.dev), [Lefthook](https://lefthook.dev) - code quality/style\n- [Vite](https://vite.dev) - dev server, bundler\n\n## Features\n\n- Server/client interaction is 100% type-safe. See [api.ts](https://github.com/cdleveille/fullstack-bun/blob/main/src/server/helpers/api.ts) and [useApi.ts](https://github.com/cdleveille/fullstack-bun/blob/main/src/client/hooks/useApi.ts) for simple HTTP and WebSocket examples.\n\n- [Scalar](https://guides.scalar.com) documentation for API routes is served on [/api/reference](https://fullstack-bun.fly.dev/api/reference). [OpenAPI Specification](https://swagger.io/specification) raw .json data is served on [/api/reference/json](https://fullstack-bun.fly.dev/api/reference/json).\n\n- The client meets [PWA](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps) requirements for an installable, native app-like experience on a variety of platforms, and boasts a near-perfect [PageSpeed Insights](https://pagespeed.web.dev) score out of the box.\n\n- Installs a [service worker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers) for caching static assets and API responses client-side, enabling offline functionality and faster subsequent loads with fewer requests to the server.\n\n- Includes a [Dockerfile](https://github.com/cdleveille/fullstack-bun/blob/main/Dockerfile), [fly.toml](https://github.com/cdleveille/fullstack-bun/blob/main/fly.toml), and [GitHub workflow](https://github.com/cdleveille/fullstack-bun/blob/main/.github/workflows/deploy.yml) for deploying to [fly.io](https://fly.io) on pushes to the `main` branch. The Dockerfile compiles the app into a standalone binary and runs it in a [distroless](https://github.com/GoogleContainerTools/distroless) image.\n\n## Not Implemented\n\n- Server-side rendering\n\n- Database\n\n- Authentication\n\n- CSS Framework\n\n- Tests\n\n...but I may look into adding these in the future!\n\n## Setup\n\nInstall [Bun](https://bun.sh).\n\nOptionally create a `.env` file in the root directory to override default environment variables. See [.env.example](https://github.com/cdleveille/fullstack-bun/blob/main/.env.example) for available options.\n\n## Development\n\nInstall dependencies and run:\n\n```bash\nbun install\nbun dev\n```\n\n## Production\n\nBuild client, compile server to standalone binary, and run:\n\n```bash\nbun run build\nbun run compile\n./main\n```\n\nAlternatively, build and run in a Docker container:\n\n```bash\ndocker build -t fullstack-bun .\ndocker run -p 3000:3000 fullstack-bun\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdleveille%2Ffullstack-bun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdleveille%2Ffullstack-bun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdleveille%2Ffullstack-bun/lists"}