{"id":13469442,"url":"https://github.com/one-aalam/svelte-starter-kit","last_synced_at":"2025-04-05T14:09:31.860Z","repository":{"id":40242992,"uuid":"352062098","full_name":"one-aalam/svelte-starter-kit","owner":"one-aalam","description":"Svelte with brilliant bells and useful whistles","archived":false,"fork":false,"pushed_at":"2023-01-01T20:31:45.000Z","size":610,"stargazers_count":449,"open_issues_count":10,"forks_count":33,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-03-29T13:11:40.653Z","etag":null,"topics":["starter-kit","supabase","supabase-js","svelte","svelte3","sveltejs","sveltekit","typescript"],"latest_commit_sha":null,"homepage":"","language":"Svelte","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/one-aalam.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}},"created_at":"2021-03-27T12:01:54.000Z","updated_at":"2025-01-24T05:42:10.000Z","dependencies_parsed_at":"2023-02-01T00:45:23.871Z","dependency_job_id":null,"html_url":"https://github.com/one-aalam/svelte-starter-kit","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/one-aalam%2Fsvelte-starter-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fsvelte-starter-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fsvelte-starter-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-aalam%2Fsvelte-starter-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/one-aalam","download_url":"https://codeload.github.com/one-aalam/svelte-starter-kit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345854,"owners_count":20924102,"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":["starter-kit","supabase","supabase-js","svelte","svelte3","sveltejs","sveltekit","typescript"],"created_at":"2024-07-31T15:01:40.115Z","updated_at":"2025-04-05T14:09:31.844Z","avatar_url":"https://github.com/one-aalam.png","language":"Svelte","funding_links":[],"categories":["Svelte"],"sub_categories":[],"readme":"# Svelte Starter Kit\n_Svelte Starter Kit_ is an opinionated boilerplate based off of [SvelteKit](https://kit.svelte.dev/), with all the bells and whistles you want ready, up and running when starting any Full-stack Svelte/Javascript project. Out of the box you get all the `essentials`\n- __Typescript__ as the language choice\n- __Tailwind CSS__ for quick styling without getting out of your HTML\n- __ESLint__ and __Prettier__ for static code analysis and code formatting\n- __SEO__ pre-configured\n\nwith [Supabase](https://supabase.io/) as the 3rd Party Persistence Layer for\n- __Authentication System__ with Supabase GoTrue\n- __User Profiles__ available on `/profile` as an example for Supabase PostgREST (CRUD API)\n- __User Avatar__ which is Supbase Storage(AWS S3 backed effortless uploads) supported\n\nand a huge bunch of pre-made, hand-rolled(easily replace-able) components, that you almost always end up installing/using for any non-trivial project\n- __Alert/Toast__ to notify your users of the outcome of an event - `success, `error` or `default` is supported\n- __Modal__(with multiple Modal and Sidepanel support) as you always come back to `em\n- __Loaders__(two types) for reporting the progress of an API call + a page load\n- __Popover__ for contextual menus\n- __Form Helpers__ for basic input types, validation and submission\n\n\n\u003c!-- \u003cimg src=\"./static/svelte-starter-kit.png\" title=\"Svelte Starter Kit\" /\u003e\nBoilerplate to quckly get up and running with Svelte + Supabase, with --\u003e\n\n__Note__: Refer the [basic](https://github.com/one-aalam/svelte-starter-kit/tree/basic) branch for a bare minimum starter structure with all the `essentials`\n\n## How to Setup?\nIf new to Supabase\n- Create account at [Supabase](https://app.supabase.io/)\n- Create a Organisation, and a project\n\nOnce done, or if you already have a Supabase project\n- Copy the generated project's API authentication details from `https://app.supabase.io/project/\u003cyour-awesome-svelte-project\u003e/api/default?page=auth`\n- Place the details in `.env`/`.env.local` as `VITE_SUPABASE_URL` and `VITE_SUPABASE_ANON_KEY`\u003c/li\u003e\n- Install NPM dependencies\n\nSvelte Start Kit supports profile and user avatars now. To get the profile table and storage ready, execute the following query at `https://app.supabase.io/project/\u003cyour-awesome-svelte-project\u003e/editor/sql`\n\n```sql\n-- Create a table for Public Profiles\ncreate table profiles (\n  id uuid references auth.users not null,\n  username text unique,\n  avatar_url text,\n  website text,\n  updated_at timestamp with time zone,\n\n  primary key (id),\n  unique(username),\n  constraint username_length check (char_length(username) \u003e= 3)\n);\n\nalter table profiles enable row level security;\n\ncreate policy \"Public profiles are viewable by everyone.\"\n  on profiles for select\n  using ( true );\n\ncreate policy \"Users can insert their own profile.\"\n  on profiles for insert\n  with check ( auth.uid() = id );\n\ncreate policy \"Users can update own profile.\"\n  on profiles for update\n  using ( auth.uid() = id );\n\n-- Set up Storage!\ninsert into storage.buckets (id, name)\nvalues ('avatars', 'avatars');\n\ncreate policy \"Avatar images are publicly accessible.\"\n  on storage.objects for select\n  using ( bucket_id = 'avatars' );\n\ncreate policy \"Anyone can upload an avatar.\"\n  on storage.objects for insert\n  with check ( bucket_id = 'avatars' );\n```\n\n`profiles` table's changes are not observed in real-time due to performance reasons. If needed, execute the following query\n```sql\nbegin;\n  drop publication if exists supabase_realtime;\n  create publication supabase_realtime;\ncommit;\nalter publication supabase_realtime add table profiles;\n```\n\n\nand get started by running `yarn dev`\n\n## Why SvelteKit?\n\nLanding from a different Full-stack UI framework(Next.js, NuxtJS, Angular Universal)? Here's few essential watches and readings -\n- [An update on SvelteKit](https://www.youtube.com/watch?v=fnr9XWvjJHw\u0026t=19101s) (Rich Harris on SvelteKit - SvelteSummit)\n- [A short history of Svelte](https://dev.to/ajcwebdev/a-short-history-of-sveltekit-49lk)\n\n## Why Supabase?\n- https://aalam.in/blog/supabase-the-open-source-firebase-alternative (Supabase has storage now, and something better than functions could land anytime soon)\n\n## Building\n\nSvelte Kit apps are built with _adapters_, which optimise your project for deployment to different environments.\n\nBy default, `yarn build` will generate a Node app that you can run with `node build`. To use a different adapter, add it to the `devDependencies` in `package.json` making sure to specify the version as `next` and update your `svelte.config.cjs` to [specify your chosen adapter](https://kit.svelte.dev/docs#configuration-adapter). The following official adapters are available:\n\n- [@sveltejs/adapter-node](https://github.com/sveltejs/kit/tree/master/packages/adapter-node)\n- [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/master/packages/adapter-static)\n- [@sveltejs/adapter-netlify](https://github.com/sveltejs/kit/tree/master/packages/adapter-netlify)\n- [@sveltejs/adapter-vercel](https://github.com/sveltejs/kit/tree/master/packages/adapter-vercel)\n- ...more soon\n\n[See the adapter documentation for more detail](https://kit.svelte.dev/docs#adapters)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-aalam%2Fsvelte-starter-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone-aalam%2Fsvelte-starter-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-aalam%2Fsvelte-starter-kit/lists"}