File contents Cursor
[!NOTE] Vite is often used in standalone mode to build single page apps (SPAs) , which you can also build with SvelteKit .
[!NOTE] Vite is often used in standalone mode to build single page apps (SPAs) , which you can also build with SvelteKit .
Available Resources
Alternatives to SvelteKit
Editor tooling
Getting help
<script>
<script module>
<style>
$state.raw
$state.snapshot
$state.eager
Passing state into functions
Passing state across modules
$derived.by
Understanding dependencies
Overriding derived values
Deriveds and reactivity
Destructuring
Update propagation
$effect.pre
$effect.tracking
$effect.pending
$effect.root
When not to use $effect
Fallback values
Renaming props
Rest props
Updating props
Type safety
$props.id()
$inspect(...).with
$inspect.trace(...)
Tags
Element attributes
Component props
Spread attributes
Events
Text expressions
Comments
Keyed each blocks
Each blocks without an item
Else blocks
Snippet scope
Passing snippets to components
Typing snippets
Exporting snippets
Programmatic snippets
Snippets and slots
Styling
Attachment factories
Inline attachments
Conditional attachments
Passing attachments to components
Controlling when attachments re-run
Creating attachments programmatically
Converting actions to attachments
Function bindings
<input bind:value>
<input bind:checked>
<input bind:indeterminate>
<input bind:group>
<input bind:files>
<select bind:value>
<audio>
currentTime
playbackRate
paused
volume
muted
duration
buffered
seekable
seeking
ended
readyState
played
<video>
<img>
naturalWidth
naturalHeight
<details bind:open>
window and document
Contenteditable bindings
innerHTML
innerText
textContent
Dimensions
bind:this
bind:property for components
Typing
Local vs global
Built-in transitions
Transition parameters
Custom transition functions
Transition events
Animation Parameters
Custom animation functions
Attributes
The class: directive
Synchronized updates
Concurrency
Indicating loading states
Error handling
Server-side rendering
Forking
Caveats
Breaking changes
Specificity
Scoped keyframes
:global(...)
:global
Properties
Using transformError
Legacy APIs
options
URL: custom-elements#Component-options
When to use stores
svelte/store
Store contract
setContext and getContext
Using context with state
Component testing
Replacing global state
onMount
onDestroy
tick
Deprecated: beforeUpdate / afterUpdate
mount
unmount
render
hydrate
Serialization
CSP
$state
$derived
$effect
{@attach ...}
function binding
URL: bind#Function-bindings
$inspect
createSubscriber
URL: svelte-reactivity#createSubscriber
$props
$inspect.trace
Events
Snippets
Each blocks
Using JavaScript variables in CSS
Styling child components
Context
Async Svelte
Avoid legacy features
Unit and component tests with Vitest
Component tests with Storybook
End-to-end tests with Playwright
<script lang="ts">
Preprocessor setup
tsconfig.json settings
target
verbatimModuleSyntax
isolatedModules
Typing $props
Generic $props
Typing wrapper components
Typing $state
The Component type
Enhancing built-in DOM types
Exceptions
SvelteComponent
migration guide
migration guide
migration guide
migration guide
SvelteComponentTyped
afterUpdate
beforeUpdate
createContext
createEventDispatcher
createRawSnippet
flushSync
fork
getAbortSignal
getAllContexts
getContext
hasContext
hydratable
hydrate
mount
onDestroy
onMount
setContext
settled
tick
unmount
untrack
Component
ComponentConstructorOptions
ComponentEvents
ComponentInternals
ComponentProps
ComponentType
EventDispatcher
Fork
MountOptions
Snippet
Action
ActionReturn
flip
AnimationConfig
FlipParams
createAttachmentKey
fromAction
Attachment
VERSION
compile
compileModule
migrate
parse
parseCss
preprocess
print
walk
AST
CompileError
CompileOptions
CompileResult
MarkupPreprocessor
ModuleCompileOptions
Preprocessor
PreprocessorGroup
Processed
Warning
backIn
backInOut
backOut
bounceIn
bounceInOut
bounceOut
circIn
circInOut
circOut
cubicIn
cubicInOut
cubicOut
elasticIn
elasticInOut
elasticOut
expoIn
expoInOut
expoOut
linear
quadIn
quadInOut
quadOut
quartIn
quartInOut
quartOut
quintIn
quintInOut
quintOut
sineIn
sineInOut
sineOut
on
Spring
Tween
prefersReducedMotion
spring
tweened
Spring
SpringOptions
SpringUpdateOptions
TweenOptions
Tweened
Updater
devicePixelRatio
innerHeight
innerWidth
online
outerHeight
outerWidth
screenLeft
screenTop
scrollX
scrollY
MediaQuery
SvelteDate
SvelteMap
SvelteSet
SvelteURL
SvelteURLSearchParams
createSubscriber
render
derived
fromStore
get
readable
readonly
toStore
writable
Readable
StartStopNotifier
Subscriber
Unsubscriber
Updater
Writable
blur
crossfade
draw
fade
fly
scale
slide
BlurParams
CrossfadeParams
DrawParams
EasingFunction
FadeParams
FlyParams
ScaleParams
SlideParams
TransitionConfig
Before we begin
What is SvelteKit?
What is Svelte?
SvelteKit vs Svelte
Editor setup
Default rendering
Static site generation
Single-page app
Multi-page app
Separate backend
Serverless app
Your own server
Container
Library
Offline app
Mobile app
Desktop app
Browser extension
Embedded device
Project files
$lib
param matchers
URL: advanced-routing#Matching
routes
paths.assets
hooks
hooks
service worker
observability
Other files
Fetch APIs
FormData
Stream APIs
URL APIs
Web Crypto
+page
+error
+layout
+server
$types
Other files
Further reading
Tutorial: Routing
Tutorial: API routes
URL: /tutorial/kit/get-handlers
Docs: Advanced routing
Page data
Layout data
page.data
Universal vs server
Using URL data
Making fetch requests
filterSerializedResponseHeaders
URL: hooks#Server-hooks-handle
Cookies
Headers
Using parent data
Errors
Redirects
Streaming with promises
Parallel loading
Rerunning load functions
fetch
URL: #Making-fetch-requests
invalidateAll()
URL: $app-navigation#invalidateAll
Implications for authentication
Using getRequestEvent
Further reading
Default actions
Named actions
Anatomy of an action
Loading data
Progressive enhancement
applyAction
URL: #Progressive-enhancement-Customising-use:enhance
reset focus
URL: accessibility#Focus-management
Alternatives
GET vs POST
Further reading
Tutorial: Forms
URL: /tutorial/kit/the-form-element
prerender
config.kit.prerender.entries
URL: configuration#prerender
entries
ssr
csr
progressively enhanced
URL: form-actions#Progressive-enhancement
trailingSlash
config
Further reading
Tutorial: Page options
URL: /tutorial/kit/page-options
Avoid shared state on the server
No side-effects in load
Using state and stores with context
Component and page state is preserved
Storing state in the URL
Storing ephemeral state in snapshots
Overview
query
query.batch
query.live
form
command
Single-flight mutations
prerender
Handling validation errors
Using getRequestEvent
Redirects
$env/static/private
$env/static/public
$env/dynamic/private
URL: $env-dynamic-private
$env/dynamic/public
Explicit environment variables
$app/env/private
$app/env/public
During the build
Preview your app
Using adapters
Platform-specific context
Usage
Prerendering individual pages
Apache
Rest parameters
Matching
Sorting
Encoding
Advanced layouts
Further reading
Tutorial: Advanced Routing
URL: /tutorial/kit/optional-params
Server hooks
Shared hooks
Universal hooks
Further reading
Tutorial: Hooks
URL: /tutorial/kit/handle
Error objects
Expected errors
Unexpected errors
Rendering errors
Responses
Type safety
Further reading
data-sveltekit-preload-data
data-sveltekit-preload-code
data-sveltekit-reload
data-sveltekit-replacestate
data-sveltekit-keepfocus
data-sveltekit-noscroll
Disabling options
Inside the service worker
Manual registration
Other solutions
References
Private environment variables
Server-only utilities
Your modules
How it works
Further reading
Tutorial: Environment variables
URL: /tutorial/kit/env-static-private
API
Loading data for a route
Caveats
handle
URL: hooks#Server-hooks-handle
load
Form actions
Remote functions
Augmenting the built-in tracing
Development quickstart
@opentelemetry/api
Sessions vs tokens
Integration points
Libraries
Guides
CSS
Svelte
Vite's built-in handling
@sveltejs/enhanced-img
Loading images dynamically from a CDN
Best practices
Route announcements
Focus management
The "lang" attribute
Further reading
Out of the box
Manual setup
Server
VERSION
error
fail
invalid
isActionFailure
isHttpError
isRedirect
isValidationError
json
normalizeUrl
redirect
text
Action
ActionFailure
ActionResult
Actions
Adapter
AfterNavigate
AwaitedActions
BeforeNavigate
Builder
ClientInit
Config
Cookies
Emulator
EnvVarConfig
server-only module
URL: /docs/kit/server-only-modules
Handle
HandleClientError
HandleFetch
HandleServerError
HandleValidationError
HttpError
InvalidField
KitConfig
LessThan
LiveQueryRequestedResult
LiveRequestedEntry
Load
LoadEvent
filterSerializedResponseHeaders
URL: /docs/kit/hooks#Server-hooks-handle
LoadProperties
Navigation
NavigationBase
NavigationEnter
NavigationEvent
NavigationExternal
NavigationFormSubmit
NavigationGoto
NavigationLeave
NavigationLink
NavigationPopState
NavigationTarget
NavigationType
NumericRange
OnNavigate
Page
ParamMatcher
PrerenderOption
QueryRequestedResult
Redirect
RemoteCommand
RemoteForm
RemoteFormEnhanceCallback
RemoteFormEnhanceInstance
RemoteFormField
RemoteFormFieldType
RemoteFormFieldValue
RemoteFormFields
RemoteFormInput
RemoteFormIssue
RemoteLiveQuery
RemoteLiveQueryFunction
RemotePrerenderFunction
RemoteQuery
RemoteQueryFunction
RemoteQueryOverride
RemoteQueryUpdate
RemoteResource
RequestEvent
filterSerializedResponseHeaders
URL: /docs/kit/hooks#Server-hooks-handle
RequestHandler
RequestedEntry
RequestedResult
Reroute
ResolveOptions
RouteDefinition
SSRManifest
ServerInit
ServerInitOptions
ServerLoad
ServerLoadEvent
Snapshot
SubmitFunction
Transport
Transporter
ValidationError
Private types
AdapterEntry
Csp
CspDirectives
DeepPartial
HttpMethod
IsAny
Logger
MaybePromise
PrerenderEntryGeneratorMismatchHandler
PrerenderEntryGeneratorMismatchHandlerValue
PrerenderHttpErrorHandler
PrerenderHttpErrorHandlerValue
PrerenderInvalidUrlHandler
PrerenderInvalidUrlHandlerValue
PrerenderMap
PrerenderMissingIdHandler
PrerenderMissingIdHandlerValue
PrerenderOption
PrerenderUnseenRoutesHandler
PrerenderUnseenRoutesHandlerValue
Prerendered
RequestOptions
RouteSegment
TrailingSlash
defineEnvVars
sequence
installPolyfills
createReadableStream
getRequest
setResponse
sveltekit
browser
building
dev
version
browser
building
dev
version
applyAction
deserialize
enhance
afterNavigate
beforeNavigate
disableScrollHandling
goto
invalidate
invalidateAll
onNavigate
preloadCode
preloadData
pushState
refreshAll
replaceState
asset
assets
base
match
resolve
resolveRoute
command
form
getRequestEvent
prerender
query
read
requested
query
navigating
page
loading data
form actions
URL: /docs/kit/form-actions
goto
URL: /docs/kit/$app-navigation#goto
updated
getStores
navigating
page
updated
Asset
RouteId
Pathname
ResolvedPathname
RouteParams
LayoutParams
config.kit.env.publicPrefix
URL: /docs/kit/configuration#env
config.kit.env.publicPrefix
URL: /docs/kit/configuration#env
config.kit.env.publicPrefix
URL: /docs/kit/configuration#env
config.kit.env.publicPrefix
URL: /docs/kit/configuration#env
base
build
files
prerendered
version
Config
KitConfig
adapter
alias
appDir
csp
csrf
embedded
env
experimental
files
monorepos
monorepos
monorepos
monorepos
monorepos
monorepos
monorepos
monorepos
monorepos
monorepos
monorepos
monorepos
inlineStyleThreshold
moduleExtensions
outDir
output
paths
prerender
router
serviceWorker
typescript
version
svelte-kit sync
Generated types
$lib
app.d.ts
Error
Locals
PageData
PageState
Platform
Usage
Acknowledgements
How do I run the sv CLI?
npx sv is not working
npx sv create does nothing
sv command name collides with runit
sv in windows powershell conflicts with Set-Variable
Usage
Options
Usage
Options
Official add-ons
better-auth
drizzle
eslint
mcp
mdsvex
paraglide
playwright
prettier
storybook
sveltekit-adapter
tailwindcss
vitest
Community add-ons
Installation
Usage
Options
Troubleshooting
Machine-readable output
Credits
FAQ
Usage
Migrations
Usage
What you get
Options
Usage
What you get
Options
Usage
What you get
Usage
What you get
Options
Usage
What you get
Options
Usage
What you get
Usage
What you get
Options
Usage
What you get
Usage
What you get
Usage
What you get
Usage
What you get
Options
Usage
What you get
Tailwind for SvelteKit guide
Options
@tailwindcss/typography
@tailwindcss/forms
Usage
What you get
Options
Quick start
Project structure
Development
Testing
Publishing
Next steps
Version compatibility
Examples
defineAddon
defineAddonOptions
create
add
transforms
Parsers (low-level)
Language tooling
Svelte config
Package manager helpers
Instructions : small prompt always injected into your session to make your agent more aware of the available tools
MCP Server : with tools, prompts and resources to give your agent more context, by pulling directly from the official Svelte documentation and using static analysis to correct common generative AI pitfalls
Skills : lazy-loaded descriptions that teach your agent Svelte best practices, and how to use the @sveltejs/mcp cli
Subagents : focused agents that can be invoked in parallel to execute atomic operations in a separate context window
Setup
Usage
Claude Code
Claude Desktop
Codex CLI
Copilot CLI
Antigravity CLI
OpenCode
VS Code
Cursor
Zed
Other clients
Claude Code
Claude Desktop
Link : Under the Remote MCP server URL input, use `
Codex CLI
Copilot CLI
Antigravity CLI
OpenCode
VS Code
Link : Insert in the input and pressEnter`
Cursor
GitHub Coding Agent
Other clients
list-sections
get-documentation
svelte-autofixer
playground-link
doc-section
svelte-task
Usage
list-sections
get-documentation
svelte-autofixer
svelte-code-writer
svelte-core-bestpractices
Installation
Installation
Configuration
Installation
Additional Resources (Optional)
Optional snippets
Optional parameters
HasNonOptionalBoolean
How to Use This Skill
Reference these resources when working with Cursor.
1 --- 2 name: cursor 3 description: Cursor 4 --- 5 6 # Cursor 7 8 > [!NOTE] Vite is often used in standalone mode to build [single page apps (SPAs)](../kit/glossary#SPA), which you can also [build with SvelteKit](../kit/single-page-apps). 9 10 [!NOTE] Vite is often used in standalone mode to build [single page apps (SPAs)](../kit/glossary#SPA), which you can also [build with SvelteKit](../kit/single-page-apps). 11 12 ## Available Resources 13 14 ### Alternatives to SvelteKit 15 16 ### Editor tooling 17 18 ### Getting help 19 20 ### `<script>` 21 22 ### `<script module>` 23 24 ### `<style>` 25 26 ### `$state.raw` 27 28 ### `$state.snapshot` 29 30 ### `$state.eager` 31 32 ### Passing state into functions 33 34 ### Passing state across modules 35 36 ### `$derived.by` 37 38 ### Understanding dependencies 39 40 ### Overriding derived values 41 42 ### Deriveds and reactivity 43 44 ### Destructuring 45 46 ### Update propagation 47 48 ### `$effect.pre` 49 50 ### `$effect.tracking` 51 52 ### `$effect.pending` 53 54 ### `$effect.root` 55 56 ### When not to use `$effect` 57 58 ### Fallback values 59 60 ### Renaming props 61 62 ### Rest props 63 64 ### Updating props 65 66 ### Type safety 67 68 ### `$props.id()` 69 70 ### $inspect(...).with 71 72 ### $inspect.trace(...) 73 74 ### Tags 75 76 ### Element attributes 77 78 ### Component props 79 80 ### Spread attributes 81 82 ### Events 83 84 ### Text expressions 85 86 ### Comments 87 88 ### Keyed each blocks 89 90 ### Each blocks without an item 91 92 ### Else blocks 93 94 ### Snippet scope 95 96 ### Passing snippets to components 97 98 ### Typing snippets 99 100 ### Exporting snippets 101 102 ### Programmatic snippets 103 104 ### Snippets and slots 105 106 ### Styling 107 108 ### Attachment factories 109 110 ### Inline attachments 111 112 ### Conditional attachments 113 114 ### Passing attachments to components 115 116 ### Controlling when attachments re-run 117 118 ### Creating attachments programmatically 119 120 ### Converting actions to attachments 121 122 ### Function bindings 123 124 ### `<input bind:value>` 125 126 ### `<input bind:checked>` 127 128 ### `<input bind:indeterminate>` 129 130 ### `<input bind:group>` 131 132 ### `<input bind:files>` 133 134 ### `<select bind:value>` 135 136 ### `<audio>` 137 138 - **`currentTime`** 139 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentTime 140 141 - **`playbackRate`** 142 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate 143 144 - **`paused`** 145 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/paused 146 147 - **`volume`** 148 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/volume 149 150 - **`muted`** 151 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/muted 152 153 - **`duration`** 154 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/duration 155 156 - **`buffered`** 157 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/buffered 158 159 - **`seekable`** 160 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seekable 161 162 - **`seeking`** 163 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seeking_event 164 165 - **`ended`** 166 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/ended 167 168 - **`readyState`** 169 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/readyState 170 171 - **`played`** 172 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/played 173 174 ### `<video>` 175 176 ### `<img>` 177 178 - **`naturalWidth`** 179 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalWidth 180 181 - **`naturalHeight`** 182 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalHeight 183 184 ### `<details bind:open>` 185 186 ### `window` and `document` 187 188 ### Contenteditable bindings 189 190 - **`innerHTML`** 191 - URL: https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML 192 193 - **`innerText`** 194 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText 195 196 - **`textContent`** 197 - URL: https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent 198 199 ### Dimensions 200 201 - **`clientWidth`** 202 - URL: https://developer.mozilla.org/en-US/docs/Web/API/Element/clientWidth 203 204 - **`clientHeight`** 205 - URL: https://developer.mozilla.org/en-US/docs/Web/API/Element/clientHeight 206 207 - **`offsetWidth`** 208 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetWidth 209 210 - **`offsetHeight`** 211 - URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight 212 213 - **`contentRect`** 214 - URL: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentRect 215 216 - **`contentBoxSize`** 217 - URL: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/contentBoxSize 218 219 - **`borderBoxSize`** 220 - URL: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/borderBoxSize 221 222 - **`devicePixelContentBoxSize`** 223 - URL: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize 224 225 ### bind:this 226 227 ### bind:_property_ for components 228 229 ### Typing 230 231 ### Local vs global 232 233 ### Built-in transitions 234 235 ### Transition parameters 236 237 ### Custom transition functions 238 239 ### Transition events 240 241 ### Animation Parameters 242 243 ### Custom animation functions 244 245 ### Attributes 246 247 ### The `class:` directive 248 249 ### Synchronized updates 250 251 ### Concurrency 252 253 ### Indicating loading states 254 255 ### Error handling 256 257 ### Server-side rendering 258 259 ### Forking 260 261 ### Caveats 262 263 ### Breaking changes 264 265 ### Specificity 266 267 ### Scoped keyframes 268 269 ### :global(...) 270 271 ### :global 272 273 - **`await`** 274 - URL: await-expressions 275 276 ### Properties 277 278 ### Using `transformError` 279 280 - **Legacy APIs** 281 - URL: legacy-overview 282 283 - **options** 284 - URL: custom-elements#Component-options 285 286 ### When to use stores 287 288 ### svelte/store 289 290 ### Store contract 291 292 ### `setContext` and `getContext` 293 294 ### Using context with state 295 296 ### Component testing 297 298 ### Replacing global state 299 300 ### `onMount` 301 302 ### `onDestroy` 303 304 ### `tick` 305 306 ### Deprecated: `beforeUpdate` / `afterUpdate` 307 308 - **Before** 309 - URL: /REMOVED 310 311 - **After** 312 - URL: /REMOVED 313 314 ### `mount` 315 316 ### `unmount` 317 318 ### `render` 319 320 ### `hydrate` 321 322 ### Serialization 323 324 ### CSP 325 326 ### `$state` 327 328 ### `$derived` 329 330 ### `$effect` 331 332 - **`{@attach ...}`** 333 - URL: @attach 334 335 - **function binding** 336 - URL: bind#Function-bindings 337 338 - **`$inspect`** 339 - URL: $inspect 340 341 - **`createSubscriber`** 342 - URL: svelte-reactivity#createSubscriber 343 344 ### `$props` 345 346 ### `$inspect.trace` 347 348 ### Events 349 350 ### Snippets 351 352 ### Each blocks 353 354 ### Using JavaScript variables in CSS 355 356 ### Styling child components 357 358 ### Context 359 360 ### Async Svelte 361 362 ### Avoid legacy features 363 364 ### Unit and component tests with Vitest 365 366 ### Component tests with Storybook 367 368 ### End-to-end tests with Playwright 369 370 ### `<script lang="ts">` 371 372 ### Preprocessor setup 373 374 ### tsconfig.json settings 375 376 - **`target`** 377 - URL: https://www.typescriptlang.org/tsconfig/#target 378 379 - **`verbatimModuleSyntax`** 380 - URL: https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax 381 382 - **`isolatedModules`** 383 - URL: https://www.typescriptlang.org/tsconfig/#isolatedModules 384 385 ### Typing `$props` 386 387 ### Generic `$props` 388 389 ### Typing wrapper components 390 391 ### Typing `$state` 392 393 ### The `Component` type 394 395 ### Enhancing built-in DOM types 396 397 ### Exceptions 398 399 ### SvelteComponent 400 401 - **migration guide** 402 - URL: https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes 403 404 - **migration guide** 405 - URL: https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes 406 407 - **migration guide** 408 - URL: https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes 409 410 - **migration guide** 411 - URL: https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes 412 413 ### SvelteComponentTyped 414 415 ### afterUpdate 416 417 ### beforeUpdate 418 419 ### createContext 420 421 ### createEventDispatcher 422 423 ### createRawSnippet 424 425 ### flushSync 426 427 ### fork 428 429 ### getAbortSignal 430 431 ### getAllContexts 432 433 ### getContext 434 435 ### hasContext 436 437 ### hydratable 438 439 ### hydrate 440 441 ### mount 442 443 ### onDestroy 444 445 ### onMount 446 447 ### setContext 448 449 ### settled 450 451 ### tick 452 453 ### unmount 454 455 ### untrack 456 457 ### Component 458 459 ### ComponentConstructorOptions 460 461 ### ComponentEvents 462 463 ### ComponentInternals 464 465 ### ComponentProps 466 467 ### ComponentType 468 469 ### EventDispatcher 470 471 ### Fork 472 473 ### MountOptions 474 475 ### Snippet 476 477 ### Action 478 479 ### ActionReturn 480 481 ### flip 482 483 ### AnimationConfig 484 485 ### FlipParams 486 487 ### createAttachmentKey 488 489 ### fromAction 490 491 ### Attachment 492 493 ### VERSION 494 495 ### compile 496 497 ### compileModule 498 499 ### migrate 500 501 ### parse 502 503 ### parseCss 504 505 ### preprocess 506 507 ### print 508 509 ### walk 510 511 ### AST 512 513 ### CompileError 514 515 ### CompileOptions 516 517 - **Content Security Policy** 518 - URL: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP 519 520 ### CompileResult 521 522 ### MarkupPreprocessor 523 524 ### ModuleCompileOptions 525 526 ### Preprocessor 527 528 ### PreprocessorGroup 529 530 ### Processed 531 532 ### Warning 533 534 ### backIn 535 536 ### backInOut 537 538 ### backOut 539 540 ### bounceIn 541 542 ### bounceInOut 543 544 ### bounceOut 545 546 ### circIn 547 548 ### circInOut 549 550 ### circOut 551 552 ### cubicIn 553 554 ### cubicInOut 555 556 ### cubicOut 557 558 ### elasticIn 559 560 ### elasticInOut 561 562 ### elasticOut 563 564 ### expoIn 565 566 ### expoInOut 567 568 ### expoOut 569 570 ### linear 571 572 ### quadIn 573 574 ### quadInOut 575 576 ### quadOut 577 578 ### quartIn 579 580 ### quartInOut 581 582 ### quartOut 583 584 ### quintIn 585 586 ### quintInOut 587 588 ### quintOut 589 590 ### sineIn 591 592 ### sineInOut 593 594 ### sineOut 595 596 ### on 597 598 ### Spring 599 600 ### Tween 601 602 ### prefersReducedMotion 603 604 ### spring 605 606 ### tweened 607 608 ### Spring 609 610 ### SpringOptions 611 612 ### SpringUpdateOptions 613 614 ### TweenOptions 615 616 ### Tweened 617 618 ### Updater 619 620 ### devicePixelRatio 621 622 ### innerHeight 623 624 ### innerWidth 625 626 ### online 627 628 ### outerHeight 629 630 ### outerWidth 631 632 ### screenLeft 633 634 ### screenTop 635 636 ### scrollX 637 638 ### scrollY 639 640 ### MediaQuery 641 642 ### SvelteDate 643 644 ### SvelteMap 645 646 ### SvelteSet 647 648 ### SvelteURL 649 650 ### SvelteURLSearchParams 651 652 ### createSubscriber 653 654 ### render 655 656 ### derived 657 658 ### fromStore 659 660 ### get 661 662 ### readable 663 664 ### readonly 665 666 ### toStore 667 668 ### writable 669 670 ### Readable 671 672 ### StartStopNotifier 673 674 ### Subscriber 675 676 ### Unsubscriber 677 678 ### Updater 679 680 ### Writable 681 682 ### blur 683 684 ### crossfade 685 686 ### draw 687 688 ### fade 689 690 ### fly 691 692 ### scale 693 694 ### slide 695 696 ### BlurParams 697 698 ### CrossfadeParams 699 700 ### DrawParams 701 702 ### EasingFunction 703 704 ### FadeParams 705 706 ### FlyParams 707 708 ### ScaleParams 709 710 ### SlideParams 711 712 ### TransitionConfig 713 714 ### Before we begin 715 716 ### What is SvelteKit? 717 718 ### What is Svelte? 719 720 ### SvelteKit vs Svelte 721 722 - **Svelte** 723 - URL: ../svelte 724 725 ### Editor setup 726 727 ### Default rendering 728 729 ### Static site generation 730 731 ### Single-page app 732 733 ### Multi-page app 734 735 ### Separate backend 736 737 ### Serverless app 738 739 ### Your own server 740 741 ### Container 742 743 ### Library 744 745 ### Offline app 746 747 ### Mobile app 748 749 ### Desktop app 750 751 ### Browser extension 752 753 ### Embedded device 754 755 ### Project files 756 757 - **`$lib`** 758 - URL: $lib 759 760 - **param matchers** 761 - URL: advanced-routing#Matching 762 763 - **routes** 764 - URL: routing 765 766 - **`paths.assets`** 767 - URL: configuration#paths 768 769 - **hooks** 770 - URL: hooks 771 772 - **hooks** 773 - URL: hooks 774 775 - **service worker** 776 - URL: service-workers 777 778 - **observability** 779 - URL: observability 780 781 ### Other files 782 783 ### Fetch APIs 784 785 ### FormData 786 787 ### Stream APIs 788 789 ### URL APIs 790 791 ### Web Crypto 792 793 ### +page 794 795 ### +error 796 797 ### +layout 798 799 ### +server 800 801 ### $types 802 803 ### Other files 804 805 ### Further reading 806 807 - **Tutorial: Routing** 808 - URL: /tutorial/kit/pages 809 810 - **Tutorial: API routes** 811 - URL: /tutorial/kit/get-handlers 812 813 - **Docs: Advanced routing** 814 - URL: advanced-routing 815 816 ### Page data 817 818 ### Layout data 819 820 ### page.data 821 822 ### Universal vs server 823 824 ### Using URL data 825 826 ### Making fetch requests 827 828 - **`filterSerializedResponseHeaders`** 829 - URL: hooks#Server-hooks-handle 830 831 ### Cookies 832 833 ### Headers 834 835 ### Using parent data 836 837 ### Errors 838 839 ### Redirects 840 841 ### Streaming with promises 842 843 ### Parallel loading 844 845 ### Rerunning load functions 846 847 - **`fetch`** 848 - URL: #Making-fetch-requests 849 850 - **`invalidateAll()`** 851 - URL: $app-navigation#invalidateAll 852 853 ### Implications for authentication 854 855 - **(When do load functions rerun?)** 856 - URL: load#Rerunning-load-functions-When-do-load-functions-rerun 857 858 - **hooks** 859 - URL: hooks 860 861 ### Using `getRequestEvent` 862 863 ### Further reading 864 865 - **Tutorial: Loading data** 866 - URL: /tutorial/kit/page-data 867 868 - **Tutorial: Errors and redirects** 869 - URL: /tutorial/kit/error-basics 870 871 - **Tutorial: Advanced loading** 872 - URL: /tutorial/kit/await-parent 873 874 ### Default actions 875 876 ### Named actions 877 878 ### Anatomy of an action 879 880 ### Loading data 881 882 ### Progressive enhancement 883 884 - **`applyAction`** 885 - URL: #Progressive-enhancement-Customising-use:enhance 886 887 - **reset focus** 888 - URL: accessibility#Focus-management 889 890 ### Alternatives 891 892 ### GET vs POST 893 894 ### Further reading 895 896 - **Tutorial: Forms** 897 - URL: /tutorial/kit/the-form-element 898 899 ### prerender 900 901 - **`config.kit.prerender.entries`** 902 - URL: configuration#prerender 903 904 ### entries 905 906 ### ssr 907 908 ### csr 909 910 - **progressively enhanced** 911 - URL: form-actions#Progressive-enhancement 912 913 ### trailingSlash 914 915 ### config 916 917 ### Further reading 918 919 - **Tutorial: Page options** 920 - URL: /tutorial/kit/page-options 921 922 ### Avoid shared state on the server 923 924 ### No side-effects in load 925 926 ### Using state and stores with context 927 928 ### Component and page state is preserved 929 930 ### Storing state in the URL 931 932 ### Storing ephemeral state in snapshots 933 934 ### Overview 935 936 ### query 937 938 ### query.batch 939 940 ### query.live 941 942 ### form 943 944 ### command 945 946 ### Single-flight mutations 947 948 ### prerender 949 950 ### Handling validation errors 951 952 ### Using `getRequestEvent` 953 954 ### Redirects 955 956 - **`$env/static/private`** 957 - URL: $env-static-private 958 959 - **`$env/static/public`** 960 - URL: $env-static-public 961 962 - **`$env/dynamic/private`** 963 - URL: $env-dynamic-private 964 965 - **`$env/dynamic/public`** 966 - URL: $env-dynamic-public 967 968 ### Explicit environment variables 969 970 - **`$app/env/private`** 971 - URL: $app-env-private 972 973 - **`$app/env/public`** 974 - URL: $app-env-public 975 976 ### During the build 977 978 ### Preview your app 979 980 - **`@sveltejs/adapter-cloudflare`** 981 - URL: adapter-cloudflare 982 983 - **`@sveltejs/adapter-netlify`** 984 - URL: adapter-netlify 985 986 - **`@sveltejs/adapter-node`** 987 - URL: adapter-node 988 989 - **`@sveltejs/adapter-static`** 990 - URL: adapter-static 991 992 - **`@sveltejs/adapter-vercel`** 993 - URL: adapter-vercel 994 995 ### Using adapters 996 997 ### Platform-specific context 998 999 ### Usage 1000 1001 ### Prerendering individual pages 1002 1003 ### Apache 1004 1005 ### Rest parameters 1006 1007 ### Matching 1008 1009 ### Sorting 1010 1011 - **matchers** 1012 - URL: #Matching 1013 1014 ### Encoding 1015 1016 ### Advanced layouts 1017 1018 ### Further reading 1019 1020 - **Tutorial: Advanced Routing** 1021 - URL: /tutorial/kit/optional-params 1022 1023 ### Server hooks 1024 1025 ### Shared hooks 1026 1027 ### Universal hooks 1028 1029 ### Further reading 1030 1031 - **Tutorial: Hooks** 1032 - URL: /tutorial/kit/handle 1033 1034 ### Error objects 1035 1036 ### Expected errors 1037 1038 ### Unexpected errors 1039 1040 ### Rendering errors 1041 1042 ### Responses 1043 1044 ### Type safety 1045 1046 ### Further reading 1047 1048 - **Tutorial: Errors and redirects** 1049 - URL: /tutorial/kit/error-basics 1050 1051 - **Tutorial: Hooks** 1052 - URL: /tutorial/kit/handle 1053 1054 ### data-sveltekit-preload-data 1055 1056 ### data-sveltekit-preload-code 1057 1058 ### data-sveltekit-reload 1059 1060 ### data-sveltekit-replacestate 1061 1062 ### data-sveltekit-keepfocus 1063 1064 ### data-sveltekit-noscroll 1065 1066 ### Disabling options 1067 1068 ### Inside the service worker 1069 1070 ### Manual registration 1071 1072 ### Other solutions 1073 1074 ### References 1075 1076 ### Private environment variables 1077 1078 ### Server-only utilities 1079 1080 ### Your modules 1081 1082 ### How it works 1083 1084 ### Further reading 1085 1086 - **Tutorial: Environment variables** 1087 - URL: /tutorial/kit/env-static-private 1088 1089 ### API 1090 1091 ### Loading data for a route 1092 1093 ### Caveats 1094 1095 - **`handle`** 1096 - URL: hooks#Server-hooks-handle 1097 1098 - **`load`** 1099 - URL: load 1100 1101 - **Form actions** 1102 - URL: form-actions 1103 1104 - **Remote functions** 1105 - URL: remote-functions 1106 1107 ### Augmenting the built-in tracing 1108 1109 ### Development quickstart 1110 1111 ### `@opentelemetry/api` 1112 1113 ### Sessions vs tokens 1114 1115 ### Integration points 1116 1117 ### Libraries 1118 1119 ### Guides 1120 1121 ### CSS 1122 1123 ### Svelte 1124 1125 ### Vite's built-in handling 1126 1127 ### @sveltejs/enhanced-img 1128 1129 ### Loading images dynamically from a CDN 1130 1131 ### Best practices 1132 1133 - **largest contentful paint (LCP)** 1134 - URL: https://web.dev/articles/lcp 1135 1136 - **cumulative layout shift (CLS)** 1137 - URL: https://web.dev/articles/cls 1138 1139 ### Route announcements 1140 1141 ### Focus management 1142 1143 ### The "lang" attribute 1144 1145 ### Further reading 1146 1147 - **MDN Web Docs: Accessibility** 1148 - URL: https://developer.mozilla.org/en-US/docs/Learn/Accessibility 1149 1150 - **The A11y Project** 1151 - URL: https://www.a11yproject.com/ 1152 1153 - **How to Meet WCAG (Quick Reference)** 1154 - URL: https://www.w3.org/WAI/WCAG21/quickref/ 1155 1156 ### Out of the box 1157 1158 ### Manual setup 1159 1160 ### Server 1161 1162 ### VERSION 1163 1164 ### error 1165 1166 ### fail 1167 1168 ### invalid 1169 1170 ### isActionFailure 1171 1172 ### isHttpError 1173 1174 ### isRedirect 1175 1176 ### isValidationError 1177 1178 ### json 1179 1180 ### normalizeUrl 1181 1182 ### redirect 1183 1184 ### text 1185 1186 ### Action 1187 1188 ### ActionFailure 1189 1190 ### ActionResult 1191 1192 ### Actions 1193 1194 ### Adapter 1195 1196 ### AfterNavigate 1197 1198 ### AwaitedActions 1199 1200 ### BeforeNavigate 1201 1202 ### Builder 1203 1204 ### ClientInit 1205 1206 ### Config 1207 1208 ### Cookies 1209 1210 - **here** 1211 - URL: https://github.com/jshttp/cookie#cookieparsestr-options 1212 1213 - **here** 1214 - URL: https://github.com/jshttp/cookie#cookieparsestr-options 1215 1216 - **here** 1217 - URL: https://github.com/jshttp/cookie#cookieserializename-value-options 1218 1219 - **here** 1220 - URL: https://github.com/jshttp/cookie#cookieserializename-value-options 1221 1222 - **here** 1223 - URL: https://github.com/jshttp/cookie#cookieserializename-value-options 1224 1225 ### Emulator 1226 1227 ### EnvVarConfig 1228 1229 - **server-only module** 1230 - URL: /docs/kit/server-only-modules 1231 1232 ### Handle 1233 1234 ### HandleClientError 1235 1236 ### HandleFetch 1237 1238 ### HandleServerError 1239 1240 ### HandleValidationError 1241 1242 ### HttpError 1243 1244 ### InvalidField 1245 1246 ### KitConfig 1247 1248 ### LessThan 1249 1250 ### LiveQueryRequestedResult 1251 1252 ### LiveRequestedEntry 1253 1254 ### Load 1255 1256 ### LoadEvent 1257 1258 - **`filterSerializedResponseHeaders`** 1259 - URL: /docs/kit/hooks#Server-hooks-handle 1260 1261 ### LoadProperties 1262 1263 ### Navigation 1264 1265 ### NavigationBase 1266 1267 ### NavigationEnter 1268 1269 ### NavigationEvent 1270 1271 ### NavigationExternal 1272 1273 ### NavigationFormSubmit 1274 1275 ### NavigationGoto 1276 1277 ### NavigationLeave 1278 1279 ### NavigationLink 1280 1281 ### NavigationPopState 1282 1283 ### NavigationTarget 1284 1285 ### NavigationType 1286 1287 ### NumericRange 1288 1289 ### OnNavigate 1290 1291 ### Page 1292 1293 ### ParamMatcher 1294 1295 ### PrerenderOption 1296 1297 ### QueryRequestedResult 1298 1299 ### Redirect 1300 1301 ### RemoteCommand 1302 1303 ### RemoteForm 1304 1305 ### RemoteFormEnhanceCallback 1306 1307 ### RemoteFormEnhanceInstance 1308 1309 ### RemoteFormField 1310 1311 ### RemoteFormFieldType 1312 1313 ### RemoteFormFieldValue 1314 1315 ### RemoteFormFields 1316 1317 ### RemoteFormInput 1318 1319 ### RemoteFormIssue 1320 1321 ### RemoteLiveQuery 1322 1323 ### RemoteLiveQueryFunction 1324 1325 ### RemotePrerenderFunction 1326 1327 ### RemoteQuery 1328 1329 ### RemoteQueryFunction 1330 1331 ### RemoteQueryOverride 1332 1333 ### RemoteQueryUpdate 1334 1335 ### RemoteResource 1336 1337 ### RequestEvent 1338 1339 - **`filterSerializedResponseHeaders`** 1340 - URL: /docs/kit/hooks#Server-hooks-handle 1341 1342 ### RequestHandler 1343 1344 ### RequestedEntry 1345 1346 ### RequestedResult 1347 1348 ### Reroute 1349 1350 ### ResolveOptions 1351 1352 ### RouteDefinition 1353 1354 ### SSRManifest 1355 1356 ### ServerInit 1357 1358 ### ServerInitOptions 1359 1360 ### ServerLoad 1361 1362 ### ServerLoadEvent 1363 1364 ### Snapshot 1365 1366 ### SubmitFunction 1367 1368 ### Transport 1369 1370 ### Transporter 1371 1372 ### ValidationError 1373 1374 ### Private types 1375 1376 ### AdapterEntry 1377 1378 ### Csp 1379 1380 ### CspDirectives 1381 1382 ### DeepPartial 1383 1384 ### HttpMethod 1385 1386 ### IsAny 1387 1388 ### Logger 1389 1390 ### MaybePromise 1391 1392 ### PrerenderEntryGeneratorMismatchHandler 1393 1394 ### PrerenderEntryGeneratorMismatchHandlerValue 1395 1396 ### PrerenderHttpErrorHandler 1397 1398 ### PrerenderHttpErrorHandlerValue 1399 1400 ### PrerenderInvalidUrlHandler 1401 1402 ### PrerenderInvalidUrlHandlerValue 1403 1404 ### PrerenderMap 1405 1406 ### PrerenderMissingIdHandler 1407 1408 ### PrerenderMissingIdHandlerValue 1409 1410 ### PrerenderOption 1411 1412 ### PrerenderUnseenRoutesHandler 1413 1414 ### PrerenderUnseenRoutesHandlerValue 1415 1416 ### Prerendered 1417 1418 ### RequestOptions 1419 1420 ### RouteSegment 1421 1422 ### TrailingSlash 1423 1424 ### defineEnvVars 1425 1426 ### sequence 1427 1428 ### installPolyfills 1429 1430 ### createReadableStream 1431 1432 ### getRequest 1433 1434 ### setResponse 1435 1436 ### sveltekit 1437 1438 ### browser 1439 1440 ### building 1441 1442 ### dev 1443 1444 ### version 1445 1446 ### browser 1447 1448 ### building 1449 1450 ### dev 1451 1452 ### version 1453 1454 ### applyAction 1455 1456 ### deserialize 1457 1458 ### enhance 1459 1460 ### afterNavigate 1461 1462 ### beforeNavigate 1463 1464 ### disableScrollHandling 1465 1466 ### goto 1467 1468 ### invalidate 1469 1470 ### invalidateAll 1471 1472 ### onNavigate 1473 1474 ### preloadCode 1475 1476 ### preloadData 1477 1478 ### pushState 1479 1480 ### refreshAll 1481 1482 ### replaceState 1483 1484 ### asset 1485 1486 ### assets 1487 1488 ### base 1489 1490 ### match 1491 1492 ### resolve 1493 1494 ### resolveRoute 1495 1496 ### command 1497 1498 ### form 1499 1500 ### getRequestEvent 1501 1502 ### prerender 1503 1504 ### query 1505 1506 ### read 1507 1508 ### requested 1509 1510 ### query 1511 1512 ### navigating 1513 1514 ### page 1515 1516 - **loading data** 1517 - URL: /docs/kit/load 1518 1519 - **form actions** 1520 - URL: /docs/kit/form-actions 1521 1522 - **goto** 1523 - URL: /docs/kit/$app-navigation#goto 1524 1525 ### updated 1526 1527 ### getStores 1528 1529 ### navigating 1530 1531 ### page 1532 1533 ### updated 1534 1535 ### Asset 1536 1537 ### RouteId 1538 1539 ### Pathname 1540 1541 ### ResolvedPathname 1542 1543 ### RouteParams 1544 1545 ### LayoutParams 1546 1547 - **`config.kit.env.publicPrefix`** 1548 - URL: /docs/kit/configuration#env 1549 1550 - **`config.kit.env.publicPrefix`** 1551 - URL: /docs/kit/configuration#env 1552 1553 - **`config.kit.env.publicPrefix`** 1554 - URL: /docs/kit/configuration#env 1555 1556 - **`config.kit.env.publicPrefix`** 1557 - URL: /docs/kit/configuration#env 1558 1559 ### base 1560 1561 ### build 1562 1563 ### files 1564 1565 ### prerendered 1566 1567 ### version 1568 1569 ### Config 1570 1571 ### KitConfig 1572 1573 ### adapter 1574 1575 ### alias 1576 1577 ### appDir 1578 1579 ### csp 1580 1581 ### csrf 1582 1583 ### embedded 1584 1585 ### env 1586 1587 ### experimental 1588 1589 ### files 1590 1591 - **monorepos** 1592 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1593 1594 - **monorepos** 1595 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1596 1597 - **monorepos** 1598 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1599 1600 - **monorepos** 1601 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1602 1603 - **monorepos** 1604 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1605 1606 - **monorepos** 1607 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1608 1609 - **monorepos** 1610 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1611 1612 - **monorepos** 1613 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1614 1615 - **monorepos** 1616 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1617 1618 - **monorepos** 1619 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1620 1621 - **monorepos** 1622 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1623 1624 - **monorepos** 1625 - URL: https://levelup.video/tutorials/monorepos-with-pnpm 1626 1627 ### inlineStyleThreshold 1628 1629 ### moduleExtensions 1630 1631 ### outDir 1632 1633 ### output 1634 1635 ### paths 1636 1637 ### prerender 1638 1639 - **Link**: <span class="tag">default</span> `" 1640 - URL: http://sveltekit-prerender"` 1641 1642 ### router 1643 1644 ### serviceWorker 1645 1646 ### typescript 1647 1648 ### version 1649 1650 ### svelte-kit sync 1651 1652 ### Generated types 1653 1654 ### $lib 1655 1656 ### app.d.ts 1657 1658 ### Error 1659 1660 ### Locals 1661 1662 ### PageData 1663 1664 ### PageState 1665 1666 ### Platform 1667 1668 ### Usage 1669 1670 ### Acknowledgements 1671 1672 ### How do I run the `sv` CLI? 1673 1674 ### `npx sv` is not working 1675 1676 - **`npx sv` create does nothing** 1677 - URL: https://github.com/sveltejs/cli/issues/472 1678 1679 - **`sv` command name collides with `runit`** 1680 - URL: https://github.com/sveltejs/cli/issues/259 1681 1682 - **`sv` in windows powershell conflicts with `Set-Variable`** 1683 - URL: https://github.com/sveltejs/cli/issues/317 1684 1685 ### Usage 1686 1687 ### Options 1688 1689 - **JSDoc syntax** 1690 - URL: https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html 1691 1692 ### Usage 1693 1694 ### Options 1695 1696 ### Official add-ons 1697 1698 - **`better-auth`** 1699 - URL: better-auth 1700 1701 - **`drizzle`** 1702 - URL: drizzle 1703 1704 - **`eslint`** 1705 - URL: eslint 1706 1707 - **`mcp`** 1708 - URL: mcp 1709 1710 - **`mdsvex`** 1711 - URL: mdsvex 1712 1713 - **`paraglide`** 1714 - URL: paraglide 1715 1716 - **`playwright`** 1717 - URL: playwright 1718 1719 - **`prettier`** 1720 - URL: prettier 1721 1722 - **`storybook`** 1723 - URL: storybook 1724 1725 - **`sveltekit-adapter`** 1726 - URL: sveltekit-adapter 1727 1728 - **`tailwindcss`** 1729 - URL: tailwind 1730 1731 - **`vitest`** 1732 - URL: vitest 1733 1734 ### Community add-ons 1735 1736 ### Installation 1737 1738 ### Usage 1739 1740 ### Options 1741 1742 ### Troubleshooting 1743 1744 ### Machine-readable output 1745 1746 ### Credits 1747 1748 - **VTI** 1749 - URL: https://github.com/vuejs/vetur/tree/master/vti 1750 1751 ### FAQ 1752 1753 ### Usage 1754 1755 ### Migrations 1756 1757 ### Usage 1758 1759 ### What you get 1760 1761 ### Options 1762 1763 ### Usage 1764 1765 ### What you get 1766 1767 ### Options 1768 1769 ### Usage 1770 1771 ### What you get 1772 1773 ### Usage 1774 1775 ### What you get 1776 1777 ### Options 1778 1779 ### Usage 1780 1781 ### What you get 1782 1783 - **local** 1784 - URL: https://svelte.dev/docs/ai/local-setup 1785 1786 - **README for agents** 1787 - URL: https://agents.md/ 1788 1789 ### Options 1790 1791 ### Usage 1792 1793 ### What you get 1794 1795 ### Usage 1796 1797 ### What you get 1798 1799 ### Options 1800 1801 ### Usage 1802 1803 ### What you get 1804 1805 ### Usage 1806 1807 ### What you get 1808 1809 ### Usage 1810 1811 ### What you get 1812 1813 - **Storybook for SvelteKit** 1814 - URL: https://storybook.js.org/docs/get-started/frameworks/sveltekit 1815 1816 ### Usage 1817 1818 ### What you get 1819 1820 ### Options 1821 1822 - **`@sveltejs/adapter-auto`** 1823 - URL: /docs/kit/adapter-auto 1824 1825 - **`@sveltejs/adapter-node`** 1826 - URL: /docs/kit/adapter-node 1827 1828 - **`@sveltejs/adapter-static`** 1829 - URL: /docs/kit/adapter-static 1830 1831 - **`@sveltejs/adapter-vercel`** 1832 - URL: /docs/kit/adapter-vercel 1833 1834 - **`@sveltejs/adapter-cloudflare`** 1835 - URL: /docs/kit/adapter-cloudflare 1836 1837 - **`@sveltejs/adapter-netlify`** 1838 - URL: /docs/kit/adapter-netlify 1839 1840 ### Usage 1841 1842 ### What you get 1843 1844 - **Tailwind for SvelteKit guide** 1845 - URL: https://tailwindcss.com/docs/installation/framework-guides/sveltekit 1846 1847 ### Options 1848 1849 - **`@tailwindcss/typography`** 1850 - URL: https://github.com/tailwindlabs/tailwindcss-typography 1851 1852 - **`@tailwindcss/forms`** 1853 - URL: https://github.com/tailwindlabs/tailwindcss-forms 1854 1855 ### Usage 1856 1857 ### What you get 1858 1859 ### Options 1860 1861 ### Quick start 1862 1863 ### Project structure 1864 1865 - ****`sv`**** 1866 - URL: sv 1867 1868 - ****`@sveltejs/sv-utils`**** 1869 - URL: sv-utils 1870 1871 ### Development 1872 1873 ### Testing 1874 1875 ### Publishing 1876 1877 ### Next steps 1878 1879 ### Version compatibility 1880 1881 ### Examples 1882 1883 ### `defineAddon` 1884 1885 ### `defineAddonOptions` 1886 1887 ### `create` 1888 1889 ### `add` 1890 1891 ### transforms 1892 1893 ### Parsers (low-level) 1894 1895 ### Language tooling 1896 1897 ### Svelte config 1898 1899 ### Package manager helpers 1900 1901 - **Instructions**: small prompt always injected into your session to make your agent more aware of the available tools 1902 - URL: instructions 1903 1904 - **MCP Server**: with tools, prompts and resources to give your agent more context, by pulling directly from the official Svelte documentation and using static analysis to correct common generative AI pitfalls 1905 - URL: mcp 1906 1907 - **Skills**: lazy-loaded descriptions that teach your agent Svelte best practices, and how to use the [`@sveltejs/mcp` cli](cli) 1908 - URL: skills 1909 1910 - **Subagents**: focused agents that can be invoked in parallel to execute atomic operations in a separate context window 1911 - URL: subagent 1912 1913 ### Setup 1914 1915 - **local setup** 1916 - URL: local-setup 1917 1918 - **remote setup** 1919 - URL: remote-setup 1920 1921 ### Usage 1922 1923 ### Claude Code 1924 1925 ### Claude Desktop 1926 1927 ### Codex CLI 1928 1929 ### Copilot CLI 1930 1931 ### Antigravity CLI 1932 1933 ### OpenCode 1934 1935 ### VS Code 1936 1937 ### Cursor 1938 1939 ### Zed 1940 1941 ### Other clients 1942 1943 ### Claude Code 1944 1945 ### Claude Desktop 1946 1947 - **Link**: Under the Remote MCP server URL input, use ` 1948 - URL: https://mcp.svelte.dev/mcp` 1949 1950 ### Codex CLI 1951 1952 ### Copilot CLI 1953 1954 ### Antigravity CLI 1955 1956 ### OpenCode 1957 1958 ### VS Code 1959 1960 - **Link**: Insert ` in the input and press `Enter` 1961 - URL: https://mcp.svelte.dev/mcp` 1962 1963 ### Cursor 1964 1965 ### GitHub Coding Agent 1966 1967 ### Other clients 1968 1969 ### list-sections 1970 1971 ### get-documentation 1972 1973 ### svelte-autofixer 1974 1975 ### playground-link 1976 1977 ### doc-section 1978 1979 ### svelte-task 1980 1981 ### Usage 1982 1983 ### `list-sections` 1984 1985 ### `get-documentation` 1986 1987 ### `svelte-autofixer` 1988 1989 ### `svelte-code-writer` 1990 1991 ### `svelte-core-bestpractices` 1992 1993 ### Installation 1994 1995 ### Installation 1996 1997 ### Configuration 1998 1999 ### Installation 2000 2001 ## Additional Resources (Optional) 2002 2003 ### Optional snippets 2004 2005 ### Optional parameters 2006 2007 ### HasNonOptionalBoolean 2008 2009 ## How to Use This Skill 2010 2011 Reference these resources when working with Cursor.
hk-vk/skills commit 547978871f
Frequently asked questions How do I install the Cursor skill? Run npx get-skill add hk-vk/cursor in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Cursor skill do? Cursor It is listed under Coding & Dev Tools on SkillMD.
Is Cursor safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Cursor? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Cursor free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Cursor? hk-vk (@hk-vk) published this skill. Their other Agent Skills are listed on their SkillMD profile.