Yet another sveltekit starter.
Feel free to fork the repo, open issues, or submit pull requests to help improve it. Whether it's adding new features, optimizing performance, or fixing bugs, any contributions are welcome.
This project is not ready for production use. It is primarily created for educational purposes and to demonstrate certain concepts or techniques. While the code may work as expected in a controlled environment, it may not be stable, secure, or optimized for real-world applications.
Please use this repository as a learning resource, and exercise caution if you decide to use or modify the code for any production environments.
- Clone repo
git clone https://github.com/oluijks/yass
- Install deps
pnpm install
- Migrate database
pnpm db:migrate
- Start dev server
pnpm run dev --host 0.0.0.0
Change the dummy values in src/lib/config/site.ts
with your own information. You can add more items if you need to.
pnpm run build
By enabling the Rollup Visualizer plugin in vite.config.ts
, you can analyze your bundle by viewing the .svelte-kit/output/server/stats.html
and .svelte-kit/output/client/stats.html
files to identify which modules consume the most space.
Alternatively, you can enable the Vite Compression plugin in vite.config.ts
to generate compressed build files using the gzip or Brotli algorithm.
See https://github.com/FiloSottile/mkcert
Uncomment the server.https block in vite.config.ts
and generate key.pem
and cert.pem
by running:
mkdir -p cert/localhost && cd $_
mkcert -install
mkcert -key-file key.pem -cert-file cert.pem localhost
Restart dev server.
- Auth (former Lucia)
- Drizzle ORM/Kit with SQLite
- ESLint (@antfu/eslint-config)
- Tailwind CSS & Svelte port of shadcn/ui
- Enhanced Images (@sveltejs/enhanced-img)
- Rollup Plugin Visualizer (rollup-plugin-visualizer)
- Vite Compression (gzip/brotli) (vite-plugin-compression)
The pages are responsive and include a basic header with links for Home, About, Login, and Register, along with a dark/light mode switcher. The footer displays the site name, version, and details of the last commit.
- /
- /about
- /settings
- /login
- /register
- /legal/terms
- /legal/policy
- /legal/cookies
- SEO (global and per page)
- Local fonts (preloaded in prod)
- Subtle animations (configurable)
These amazing individuals inspired me and taught me so much about Svelte and CSS:
- Ben Davis - https://www.youtube.com/@bmdavis419
- Coding2GO - https://www.youtube.com/@coding2go
- Hunter Johnston - https://www.youtube.com/@Huntabyte
- Johnny Magrippis - https://www.youtube.com/@johnnifytech
- JoyofCodeDev - https://www.youtube.com/@JoyofCodeDev
- Kevin Powell - https://www.youtube.com/@KevinPowell
- Syntax FM - https://www.youtube.com/@syntaxfm
- RGB Studios.org https://rgbstudios.org