web-meta-framework-sveltekit
Installation
SKILL.md
SvelteKit Patterns
Quick Guide: Load functions fetch, form actions mutate,
+server.tsserves external clients, and hooks handle what applies to every request. Data reaches a component as thedataprop and an action's result as theformprop, both typed from the generated$types. Two facts change most answers below:+page.server.tsruns only on the server while+page.tsalso runs in the browser, andfail()returns whileerror()andredirect()throw.
Detailed Resources:
- examples/core.md — file conventions, dynamic routes, route groups, parameter matchers, error boundaries
- examples/load-functions.md — server and universal loads, layout data, streaming,
parent(), invalidation - examples/form-actions.md — default and named actions,
fail(),use:enhance, redirect ordering - examples/hooks.md —
handle,handleFetch,handleError,init,reroute,transport,sequence - examples/api-routes.md —
+server.tsverbs, streaming responses, uploads, content negotiation - reference.md — decision trees, load-function inputs, the import surface, page options