{"id":13719482,"url":"https://github.com/Egor-S/pocketbase-sveltekit-static","last_synced_at":"2025-05-07T11:32:03.430Z","repository":{"id":210974317,"uuid":"727885765","full_name":"Egor-S/pocketbase-sveltekit-static","owner":"Egor-S","description":"PocketBase + SvelteKit (Static): minimalistic template with configured authorization featuring a single binary or Docker image (from 59 MB) for deploying.","archived":false,"fork":false,"pushed_at":"2025-04-20T07:16:56.000Z","size":124,"stargazers_count":26,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-20T08:28:37.861Z","etag":null,"topics":["authorization","pocketbase","sveltekit"],"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/Egor-S.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-12-05T19:23:40.000Z","updated_at":"2025-04-20T07:17:00.000Z","dependencies_parsed_at":"2024-06-01T11:32:19.503Z","dependency_job_id":"8b57182a-6bb2-451c-a783-9a11fb678ab2","html_url":"https://github.com/Egor-S/pocketbase-sveltekit-static","commit_stats":null,"previous_names":["egor-s/pocketbase-sveltekit-static"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Egor-S%2Fpocketbase-sveltekit-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Egor-S%2Fpocketbase-sveltekit-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Egor-S%2Fpocketbase-sveltekit-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Egor-S%2Fpocketbase-sveltekit-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Egor-S","download_url":"https://codeload.github.com/Egor-S/pocketbase-sveltekit-static/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252869016,"owners_count":21816959,"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":["authorization","pocketbase","sveltekit"],"created_at":"2024-08-03T01:00:49.874Z","updated_at":"2025-05-07T11:32:03.391Z","avatar_url":"https://github.com/Egor-S.png","language":"TypeScript","funding_links":[],"categories":["JavaScript/TypeScript","Svelte"],"sub_categories":["Svelte"],"readme":"# PocketBase + SvelteKit (Static) Project Template\n\n\u003e It's `v2` of the template. The old version could be found in branch `v1`.\n\nWelcome to the PocketBase + SvelteKit project template!\nThis template allows you to effortlessly create a single Docker container housing both the backend (PocketBase) and frontend (SvelteKit) for your projects.\nWith a minimal image size of just 59 MB, it's perfect for cost-effective hosting providers and projects without extensive public pages that require SEO. It's still possible to prerender some pages with SvelteKit, but it's not the main focus of this template.\n\n## Features\n\n- PocketBase extended with Go (PocketBase 0.25.8)\n- SvelteKit with adapter-static (Svelte 5.22.2, TypeScript, Tailwind CSS)\n- Ready to use login, registration, and auth-requiring routes\n- Single binary with embedded frontend (~47 MB)\n- GitHub Action to build and push the Docker image (~59 MB) to `ghcr.io`\n\n## Quickstart\n\n1. Fork this repository\n   - Replace all `github.com/YOUR-ORG/YOUR-REPO` to your GitHub repo. For instance, `github.com/Egor-S/my-awesome-project`\n   - Update default app settings in `pocketbase/migrations/1739793600_initial_settings.go`\n1. Start your PocketBase server `cd pocketbase \u0026\u0026 go run . serve` in the first terminal\n   - Create a superuser account\n1. Start your SvelteKit dev server `cd sveltekit \u0026\u0026 npm run dev` in the second terminal\n1. Access both SvelteKit and PocketBase at `localhost:5173`\n\nFind more details in respective README files.\n\n## Build and run Docker image\n\nTo build the Docker image locally, run:\n\n```bash\ndocker build . -t my-awesome-project:latest\n```\n\nThe image is simple enough to be run without `docker compose`:\n\n```bash\ndocker run -p 8090:8090 -v ./pb_data:/app/pb_data my-awesome-project:latest\n```\n\n### Get single binary\n\n```bash\ncontainer_id=$(docker create my-awesome-project:latest)\ndocker cp $container_id:/app/pocketbase ./pocketbase\ndocker rm $container_id\n```\n\n## Contributing\n\nWe welcome contributions! Please feel free to submit issues or pull requests.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Acknowledgements\n\nSpecial thanks to PocketBase, SvelteKit, and the authors of other PocketBase-SvelteKit templates ([1](https://github.com/danawoodman/sveltekit-auth-example), [2](https://github.com/jianyuan/pocketbase-sveltekit-auth)).\n\n## Contact\n\nIf you have any questions or feedback, please use the [GitHub Issues](https://github.com/Egor-S/pocketbase-sveltekit-static/issues) page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEgor-S%2Fpocketbase-sveltekit-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEgor-S%2Fpocketbase-sveltekit-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEgor-S%2Fpocketbase-sveltekit-static/lists"}