{"id":25524763,"url":"https://github.com/drejohnson/sveltekit-kratos","last_synced_at":"2026-01-01T03:30:17.243Z","repository":{"id":56713351,"uuid":"370214238","full_name":"drejohnson/sveltekit-kratos","owner":"drejohnson","description":"Sveltekit app using ORY Kratos for authentication","archived":false,"fork":false,"pushed_at":"2021-06-24T09:51:39.000Z","size":517,"stargazers_count":25,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-06-03T00:25:07.525Z","etag":null,"topics":["authentication","ory-kratos","sveltekit","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"Svelte","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/drejohnson.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}},"created_at":"2021-05-24T03:17:34.000Z","updated_at":"2023-03-03T15:17:20.000Z","dependencies_parsed_at":"2022-08-16T00:00:39.634Z","dependency_job_id":null,"html_url":"https://github.com/drejohnson/sveltekit-kratos","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drejohnson%2Fsveltekit-kratos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drejohnson%2Fsveltekit-kratos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drejohnson%2Fsveltekit-kratos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drejohnson%2Fsveltekit-kratos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drejohnson","download_url":"https://codeload.github.com/drejohnson/sveltekit-kratos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239727073,"owners_count":19687098,"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":["authentication","ory-kratos","sveltekit","tailwindcss"],"created_at":"2025-02-19T20:05:34.756Z","updated_at":"2026-01-01T03:30:17.173Z","avatar_url":"https://github.com/drejohnson.png","language":"Svelte","funding_links":[],"categories":["Archived, Outdated, and WIP"],"sub_categories":["Ory Fosite"],"readme":"# SvelteKit-Kratos\n\n\u003e Basic SvelteKit example using [Ory Kratos](https://ory.sh/kratos) for authentication.\n\n## Features\n\n- [x] Svelte via [SvelteKit](https://kit.svelte.dev)\n- [x] Authentication via [Kratos](https://ory.sh/kratos)\n- [x] Styling via [tailwindcss](https://tailwindcss.com)\n- [ ] GraphQL via [Hasura](https://hasura.io/)\n\n## Quick start\n\nOnce you've installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```bash\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n\n# to use https run\nnpm run dev -- -H\n```\n\nIf running locally on port 80 and getting `listen EACCES: permission denied 0.0.0.0:80` try:\n\n```bash\nsudo apt-get install libcap2-bin\nsudo setcap cap_net_bind_service=+ep `readlink -f \\`which node\\``\n\n# start sveltekit on port 80 or 443 if using https with -H flag\nnpm run dev -- -p 80\n```\n\nStart Kratos:\n\n```bash\ndocker compose up --build --force-recreate\n```\n\nCreate cookie/default secret\n\n```bash\nopenssl rand -base64 24\n```\n\nCreate cryptographic keys for Oathkeeper JWT:\n\n```bash\ndocker run oryd/oathkeeper:v0.38.11-beta.1 credentials generate --alg RS512 \u003e ./.oathkeeper/jwks.json\n```\n\nCreate SSL certificates for local development\n\n```bash\nmkdir certs \u0026\u0026 cd certs\nmkcert myapp.local \"*.myapp.local\" localhost 127.0.0.1\n```\n\nBuild a production version of your app by running:\n\n```bash\nnpm run build\n```\n\n\u003e You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.\n\n## TODO\n\n- [ ] Add [Oathkeeper](https://ory.sh/oathkeeper) as a reverse proxy\n- [ ] Fix misc styles issues for different browsers\n- [ ] Fix password toggle not working in Firefox (works in Chrome and Safari)\n- [ ] Add GraphQL via Hasura\n\n## Disclaimer\n\n\u003e I suggest using the Chrome browser to run this example.\n\n\u003e SvelteKit is still in early beta and has various bugs, especially in Firefox\n\n\u003e If you're on Windows and using WSL2 you might face a bug where the dev server constantly refreshes because of a websocket connection error when using host 127.0.0.1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrejohnson%2Fsveltekit-kratos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrejohnson%2Fsveltekit-kratos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrejohnson%2Fsveltekit-kratos/lists"}