Skip to main content
ProductsDesktop toolsTASTECADDrawing reviewTASTEFILESFile managementTASTEFTPFile transferTASTESSHRemote workspaceTASTEZIPCompression and extractionTASTEWINMFile managementDeveloper toolsTASTECODERust integrated development environmentTASTESTUDIOIntegrated development and test environmentTASTEETLData integration (ETL)ServersTASTEREMOTERemote desktop serverTASTEGEOGeospatial serverTASTEMAILMail workspaceInvestingTASTESTOCKStock auto-trading desktop appGet startedDownloadsDocumentationBuyAll products
Marketplace
News
TechNewsToday's dev newsDeveloper docsProgramming languagesRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWeb front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngularServer frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressApp & desktop frameworksTauriFlutterReact NativeElectronAlgorithmsAlgorithm basicsCore algorithmsAdvanced algorithmsPractical algorithms
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcaseCommunity guide
Work with usTech transferWebsite buildDesktop app buildRelease and payment pipelineSales partnerContact
ServicesRemote desktopCustom installer packages
TASTEDEV
Products

Desktop tools

TASTECADComplex drawings, opened with easeTASTEFILESJust the files you need, as fast as possibleTASTEFTPThe tidiest path for your filesTASTESSHA stronger link between you and your serversTASTEZIPPack faster, unpack saferTASTEWINMA keyboard-first file manager with two panes

Developer tools

TASTECODEEdit, build, debug and test Rust apps in one windowTASTESTUDIOFrom editing to remote tests and approved AI fixesTASTEETLMove data while you watch the values

Servers

TASTEREMOTEA remote desktop you run on your own serverTASTEGEORebuilding a GeoServer-compatible geospatial server in RustTASTEMAILTake back control of your email

Investing

TASTESTOCKStock auto-trading that follows the rules you set: when, and what

Get started

DownloadsLatest builds of every productDocsHow to use each productBuySubscriptions and perpetual licencesAll productsEvery product at a glance
All products
MarketplaceNews
Tech

News

Today's dev newsOfficial announcements on languages, frameworks, GitHub and AIDeveloper docsGuides to languages, frameworks and algorithms

Programming languages

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Web front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngular
Server frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
App & desktop frameworksTauriFlutterReact NativeElectron

Algorithms

Algorithm basicsComplexity analysis · Sorting · Searching · Basic data structures · Trees and heapsCore algorithmsGraph traversal · Shortest paths & minimum spanning trees · Dynamic programming · Greedy algorithms · Divide and conquer · BacktrackingAdvanced algorithmsString algorithms · Math and number theory · Bit manipulation · Segment trees · Union-findPractical algorithmsCoding interview strategy · LRU cache · Rate limiting · Consistent hashing
All development docs
Community
ProjectsDiscover builders and their workDevelopment logsDecisions and lessons learnedPromptsReusable instructionsAI tool issuesProblems and workarounds for Claude, Codex, GeminiShowcaseFinished resultsCommunity guideHow we build in the open
Work with us
Tech transferNative apps in Rust and eguiWebsite build10 languages, accounts, docs and downloadsDesktop app buildRust and egui, no WebViewRelease and payment pipelineSigning, MSI, deb, rpm, AppImage, hashesSales partnerRecommend us and earn 30%ContactBuilds, partnerships and investment
Services
Remote desktopReach your computer from a browserCustom installer packagesOnly the features you need, settings preloaded
Buy
EN
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Log in
Log in
TASTEDEV

From small tools to better development.

support@tastedev.netSupport TASTEDEV
ProductsProduct lineupBuyDocsDownloadsMarketplaceSupport
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcase
PoliciesAbout usPrivacy policyTerms of serviceSubscription termsRefund policyCommunity guidelines
AccountLog inSign up
Visitors
Today
Yesterday
Total views
Company
GXSOFT
Representative
CHOI YOUNG GU
Business registration number
853-44-00368
Address
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Phone
+82-10-4404-1523
Email
whitecalvin@tastedev.net
Privacy officer
CHOI YOUNG GU

© 2026 TASTEDEVProduct information is based on verified development sources.Released · improving

SvelteKit docs
SvelteKit
Getting Started with SvelteKitProject StructureCore ConceptsData and StateTestingBuilding and Deployment
Discussions

SvelteKit guide · 1/6

Getting Started with SvelteKit

In this chapter you will create a SvelteKit project, start the development server and edit your first page. Along the way we cover editor setup and the everyday commands you will use.

What SvelteKit is

Svelte is a UI framework that compiles components into efficient JavaScript at build time. SvelteKit is the application framework built on top of it: it adds routing, server-side rendering (SSR), data loading, form handling, and building and deploying your app. Vite powers the dev server and the bundling, and SvelteKit itself runs as a Vite plugin. If Next.js is the app framework for React, SvelteKit plays the same role for Svelte.

Prerequisites

  • A current LTS release of Node.js, plus npm (or pnpm, Yarn or Bun)
  • An editor: Visual Studio Code with the official Svelte for VS Code extension is recommended
  • Basic familiarity with the terminal

Check which Node.js version you have installed. If it is older than the minimum SvelteKit requires, download the LTS release from nodejs.org.

node --version
npm --version

Creating a project

Projects are created with sv, the official Svelte command-line tool. There is nothing to install globally; run it through npx.

npx sv create my-app
cd my-app
npm run dev

sv create asks a few questions:

PromptWhat it means
Templateminimal (an empty app), demo (an app with a small example game), library (a Svelte component library)
Type checkingTypeScript (ts) or JSDoc annotations (jsdoc)
Add-onsPrettier, ESLint, Vitest, Playwright, Tailwind CSS, Drizzle and more
Package managerThe tool used to install dependencies right away (npm, pnpm, yarn, bun, deno)

To skip the prompts, pass the options directly. This guide uses TypeScript throughout.

npx sv create my-app --template minimal --types ts --no-add-ons --install npm

# Add integrations later
npx sv add prettier eslint
npx sv add vitest playwright

Running the dev server

npm run dev starts the Vite dev server at http://localhost:5173 by default. When you save a file, hot module replacement (HMR) updates only what changed, without a full page reload.

# Open the browser automatically
npm run dev -- --open

# Expose the server to other devices on your network
npm run dev -- --host

Editing your first page

src/routes/+page.svelte is the home page (/). Replace its contents with the following and save. $state is a Svelte 5 rune that creates reactive state: whenever the value changes, the UI updates.

<script lang="ts">
  let name = $state('SvelteKit');
  let count = $state(0);
</script>

<h1>Hello, {name}!</h1>

<input bind:value={name} />
<button onclick={() => count++}>
  Clicked {count} times
</button>

bind:value creates a two-way binding between the input and the variable, and onclick passes an event handler just like a regular HTML attribute.

A second page and a link

Create src/routes/about/+page.svelte with the content below, then add <a href="/about">About</a> to the home page.

<svelte:head>
  <title>About</title>
</svelte:head>

<h1>About</h1>
<p>This page lives at /about.</p>
<a href="/">Back home</a>

Anything inside <svelte:head> is placed in the document head, so each page can set its own title and meta tags. When you click the link, SvelteKit loads only the code it needs and swaps the page without a full reload. The first request is still rendered to HTML on the server, so search engines see real content.

Everyday commands

The scripts section of package.json includes:

CommandWhat it does
npm run devStart the dev server
npm run buildCreate a production build (vite build)
npm run previewPreview the production build locally
npm run checkRun svelte-check for type and Svelte diagnostics

Editor setup

In VS Code, the Svelte for VS Code extension adds syntax highlighting, completion, inline type errors and formatting for .svelte files. Extensions built on the same language server exist for other editors, including JetBrains IDEs, Neovim and Zed. Running npm run check before you commit is a good habit, since it checks the whole project at once.

Summary

  • SvelteKit is a Vite-based framework that adds routing, SSR, data loading and deployment on top of Svelte components.
  • Create a project with npx sv create and start it with npm run dev.
  • Pages are +page.svelte files inside src/routes, and the folder structure defines the URLs.
  • Use npx sv add to bring in integrations at any time.
Questions about this chapter?
Next chapterProject Structure

0 comments

Top commentsNewest first

Sign in · Sign in to leave a comment.