using-remote-functions
Using Remote Functions
Remote Functions are a SvelteKit feature for type-safe client-server communication. They run on the server but can be called from any component.
Key Concepts
- Component-level: Unlike load functions, Remote Functions work in any component
- Type-safe: Full TypeScript support between client and server
- Progressive enhancement: Forms work without JavaScript
- Experimental: Requires config flags (see below)
Configuration
Add to svelte.config.js:
More from svelte-society/sveltesociety.dev
svelte-code-writer
CLI tools for Svelte 5 documentation lookup and code analysis. MUST be used whenever creating or editing any Svelte component (.svelte) or Svelte module (.svelte.ts/.svelte.js). If possible, this skill should be executed within the svelte-file-editor agent for optimal results.
15page builder
Patterns for building list and detail pages with forms, filters, and data fetching
10e2e test builder
Create Playwright E2E tests using Page Object Model pattern with database isolation
10component-builder
Create UI components using tailwind-variants for type-safe styling. Use when creating or editing components in src/lib/ui/.
9admin crud page
Create admin dashboard pages with tables, forms, and actions
7sample-basic
A minimal example skill demonstrating the required structure. Use this as a template when creating new skills.
1