logo Svelte Starter Kit
Pricing FAQ Blog Documentation

Blog

Category Tags Archive
  • Sveltekit Protected Routes in SPA mode

    In this tutorial you will learn how to handle client side auth routes in SPA mode with the correct security assumptions.

    Published on Jul 26, 2024 Category Authentication Pinned
  • SvelteKit layouts

    +layout.svelte wraps every child page and stays mounted on navigation. Build a nested account layout with load data, then a route group so login skips the shop nav.

    Published on Aug 30, 2026 Category SvelteKit
  • SvelteKit goto

    goto() is client-side navigation from a click handler. Use an <a> when you already know the href, and redirect() when the server should send a 3xx.

    Published on Aug 29, 2026 Category SvelteKit
  • Run SvelteKit in Docker

    Build a multi-stage image with adapter-node, set ORIGIN, and run the Node server in a container.

    Published on Aug 27, 2026 Category SvelteKit
  • Deploy SvelteKit on AWS EC2 with adapter-node

    Build a SvelteKit app with adapter-node, copy it to a t3a.small, then PM2, nginx, and TLS.

    Published on Aug 26, 2026 Category SvelteKit
  • SvelteKit components

    Extract a ProductCard.svelte, pass props with $props, and reuse it on the product list and the [slug] page.

    Published on Aug 25, 2026 Category SvelteKit
  • SvelteKit redirects

    redirect() throws a 3xx. Call it from load, an action, or hooks, and do not catch it.

    Published on Aug 24, 2026 Category SvelteKit
  • Tailwind CSS in SvelteKit

    Add Tailwind v4 to a SvelteKit app with the Vite plugin, then style a layout and a product card.

    Published on Aug 23, 2026 Category SvelteKit
  • SvelteKit routing

    How SvelteKit maps folders to URLs. Build static pages, a layout, a [slug] product page, a catch-all help section, and a JSON endpoint.

    Published on Aug 22, 2026 Category SvelteKit
  • Svelte 5 alternatives to stores

    Replace writable with $state, a .svelte.ts class, and context. Covers the SvelteKit SSR leak that a global store still has.

    Published on Aug 22, 2026 Category SvelteKit
  • SvelteKit environment variables

    Read secrets from .env with $env/static/private so they never ship to the browser. PUBLIC_ names, static vs dynamic, and the SvelteKit 3 rename.

    Published on Aug 22, 2026 Category SvelteKit
  • SvelteKit tutorial

    Create a SvelteKit app and build a reading list. Covers routes, a layout, load, and a form action.

    Published on Aug 21, 2026 Category SvelteKit
  • Use Drizzle with SQLite in SvelteKit

    Connect Drizzle ORM to a local SQLite file in a SvelteKit app, push a schema, and build a notes form that writes to the database.

    Published on Aug 20, 2026 Category SvelteKit
  • Use Drizzle with Postgres in SvelteKit

    Connect Drizzle ORM to PostgreSQL in a SvelteKit app, push a schema, and build a notes form that writes to the database.

    Published on Aug 19, 2026 Category SvelteKit
  • Showing upload progress in SvelteKit

    use:enhance and fetch do not report how many bytes have left the browser. Post the file with XMLHttpRequest and update a progress bar from upload.onprogress.

    Published on Aug 18, 2026 Category SvelteKit
  • Validating image uploads with magic bytes in SvelteKit

    file.type and the filename are claims from the browser. Read the first bytes of the upload in SvelteKit and keep only JPEG, PNG, or WebP.

    Published on Aug 17, 2026 Category SvelteKit
  • Uploading large files to S3 from SvelteKit with presigned URLs

    Form actions hit body size limits. Sign a short-lived S3 PUT URL on the server and let the browser send the file straight to the bucket.

    Published on Aug 16, 2026 Category SvelteKit
  • Serving uploaded files behind auth in SvelteKit

    A UUID in the URL is not a lock. Check the session on the GET that returns the bytes, record who owns the file, and keep shared caches from storing it.

    Published on Aug 15, 2026 Category SvelteKit
  • Uploading files in a SvelteKit web app

    Build a SvelteKit form that uploads an image, validates it on the server, saves it, and serves it back. Covers multipart forms, body size limits, and why static hosting cannot do this alone.

    Published on Aug 14, 2026 Category SvelteKit
  • SvelteKit 3 changelog and migration guide

    Upgrade a SvelteKit 2 app to SvelteKit 3. Config moves into Vite, $lib becomes #lib, $app/stores is gone, and a handful of security defaults get stricter.

    Published on Aug 13, 2026 Category SvelteKit
  • SvelteKit auth with HttpOnly cookies

    A step by step guide to add cookie based login to a SvelteKit app using hooks.server.ts, form actions and an HttpOnly session cookie.

    Published on Aug 12, 2026 Category Authentication
  • What a global UI script costs your SvelteKit app

    We replaced Preline JS with Bits UI on this site and measured it. The home page shipped 42% fewer bytes, and a surprising chunk of the win had nothing to do with JavaScript.

    Published on Aug 12, 2026 Category SvelteKit

Svelte Starter Kit © 2026

Created by Vivek Shukla

Social
Links
Pricing FAQ Blog Documentation
Read
Sveltekit Protected Routes in SPA mode Deploy SvelteKit on AWS EC2 with adapter-node