Svelte port of Agentation: a floating annotation toolbar for AI coding workflows.
bun add @svelteui/agentation
bun add -D sass-embedded
# or npm i @svelteui/agentation
# or npm i -D sass-embedded
The package currently ships SCSS assets, so the consuming SvelteKit app needs sass-embedded available at the app level.
<script lang="ts">
import { Agentation } from '@svelteui/agentation';
</script>
<main>Your app</main>
<Agentation />
Current releases should be rendered in the browser only. If you mount the component during SSR, you can hit document is not defined errors.
<script lang="ts">
import { browser } from '$app/environment';
import { Agentation } from '@svelteui/agentation';
</script>
{#if browser}
<Agentation />
{/if}
onAnnotationAdd(annotation)onAnnotationDelete(annotation)onAnnotationUpdate(annotation)onAnnotationsClear(annotations)onCopy(markdown)onSubmit(output, annotations)copyToClipboard (default true)endpoint (Agentation MCP HTTP URL)sessionIdonSessionCreated(sessionId)webhookUrlenableDemoModedemoAnnotationsdemoDelayAgentationPageFeedbackToolbarCSSAnnotationPopupCSS./icons./element-identification./storage./sync./typestype AnnotationAgentation behind a browser guard until SSR-safe mounting lands.reactComponents metadata is intentionally removed in this Svelte package.AnnotationPopupCSS uses Svelte 5 callback props (onSubmit, onCancel, onDelete) instead of component events.