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