Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
svelte-runes - Skill - OpenSmartRoute
Skillv1.0.0
svelte-runes
Svelte runes guidance. Use for reactive state, props, effects, or migration. Covers $state, $derived, $effect, $props, $bindable. Prevents reactivity mistakes.
Imported from spences10/svelte-skills-kit (plugins/svelte-skills/skills/svelte-runes/SKILL.md) via skills.sh. Install upstream with npx skills add spences10/svelte-skills-kit --skill svelte-runes. Copyright stays with the author.
Svelte Runes
Quick Start
Which rune? Props: $props() | Bindable: $bindable() |
Computed: $derived() | Side effect: $effect() | State: $state()
Key rules: Runes are top-level only. $derived can be overridden
(use const for read-only). Don't mix Svelte 4/5 syntax.
Objects/arrays are deeply reactive by default.
Example
<script> let count = $state(0); // Mutable state const doubled = $derived(count * 2); // Computed (const = read-only) $effect(() => { console.log(`Count is ${count}`); // Side effect });</script><button onclick={() => count++}> {count} (doubled: {doubled})</button>
For @attach and other template directives, see the
svelte-template-directives skill.
Notes
Use onclick not on:click, {@render children()} in layouts
$derived can be reassigned (5.25+) - use const for read-only
Use createContext over setContext/getContext for type safety
Use $inspect.trace to debug reactivity issues
Last verified: 2026-03-12
Installed into a catalogue, chosen by a router
Install svelte-runes and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.