
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
sv-agentation
Advanced tools
Dev-mode Svelte inspector for annotating elements, text selections, groups, and areas in the browser.

Live Preview: Svelte Agentation
Dev-mode Svelte inspector for source-aware element inspection and browser annotations.
sv-agentation helps developers inspect rendered DOM, jump to source, annotate UI directly in the browser, and copy structured output for developer or AI-assisted workflows.
npm install sv-agentation
pnpm add sv-agentation
yarn add sv-agentation
bun add sv-agentation
<script lang="ts">
import { browser, dev } from '$app/environment';
import { Agentation } from 'sv-agentation';
const workspaceRoot = '/absolute/path/to/your/repo';
</script>
{#if browser && dev}
<Agentation {workspaceRoot} />
{/if}
Mount the inspector only in development and only in the browser.
Agentation
-> element-source-inspector.svelte
-> CopyOpenController
-> internal/controller-state.svelte.ts
-> internal/controller-selection.ts
-> internal/controller-composer.ts
-> internal/controller-browser.ts
-> components/*
-> utils/note-*.ts + utils/selection.ts + utils/source.ts
inspect / select
-> open composer
-> save note
-> persist to localStorage
-> render markers
src/lib/element-source-inspector.svelte: public mount shell that syncs props into the controller.src/lib/copy-open.svelte.ts: main orchestration class for runtime state and browser events.src/lib/internal/*: controller-private helpers for state, selection flow, composer flow, and browser side effects.src/lib/components/*: visible inspector UI.src/lib/utils/note-*.ts: note storage, formatting, rendering, and layout helpers.src/lib/utils/selection.ts: text/group/area anchor serialization and recovery.compact, standard, detailed, or forensic output modes.browser && dev.| Prop | Type | Description |
|---|---|---|
workspaceRoot | string | null | Absolute project root for source lookup and editor links. |
selector | string | null | Optional selector to scope inspectable elements. |
vscodeScheme | 'vscode' | 'vscode-insiders' | Choose the VS Code URL scheme for open-in-editor actions. |
openSourceOnClick | boolean | Open source directly on click instead of only showing metadata. |
deleteAllDelayMs | number | Confirmation delay for delete-all notes. |
toolbarPosition | 'top-left' | 'top-center' | 'top-right' | 'mid-right' | 'mid-left' | 'bottom-left' | 'bottom-center' | 'bottom-right' | When provided, syncs the floating toolbar to this preset and stores it as the latest saved placement. |
outputMode | 'compact' | 'standard' | 'detailed' | 'forensic' | When provided, syncs the copy/export mode and stores it for later sessions. |
pauseAnimations | boolean | When provided, syncs animation pausing while the inspector is active and stores it for later sessions. |
clearOnCopy | boolean | When provided, syncs whether copied notes are cleared and stores it for later sessions. |
includeComponentContext | boolean | When provided, syncs component-context capture and stores it for later sessions. |
includeComputedStyles | boolean | When provided, syncs computed-style capture and stores it for later sessions. |
copyToClipboard | boolean | Disable direct clipboard writes and use callbacks only. |
onAnnotationAdd | (annotation) => void | Called after a note is created. |
onAnnotationUpdate | (annotation) => void | Called after a note is updated. |
onAnnotationDelete | (annotation) => void | Called after a note is deleted. |
onAnnotationsClear | (annotations) => void | Called after all notes are cleared. |
onCopy | (markdown, payload) => void | Called after note export is prepared. |
| Shortcut | Action | Description |
|---|---|---|
i | Toggle inspector | Open or close the inspector toolbar and annotation mode. |
c | Copy all notes | Copy notes as Markdown when at least one note exists. |
r | Reset toolbar position | Move the floating toolbar back to the latest explicit prop value, saved placement, or default. |
o | Open source | Open the currently hovered source location when the inspector is active. |
esc | Cancel current action | Clear transient selections, close the composer, or close settings/delete state. |
shift + ctrl/cmd + click | Build a group selection | Add or remove elements from a grouped annotation target before releasing the modifiers. |
AgentationAgentationInspectorElementSourceInspectorAGENTATION_ACTIVE_CHANGE_EVENTAGENTATION_BLOCKED_INTERACTION_EVENTCOPY_OPEN_ACTIVE_CHANGE_EVENTCOPY_OPEN_BLOCKED_INTERACTION_EVENTINSPECTOR_ACTIVE_CHANGE_EVENTINSPECTOR_BLOCKED_INTERACTION_EVENTAgentationPropsInspectorPropsInspector* public typeselement-source metadata and your workspaceRoot plus editor setup.*.svelte.ts for stateful controller helpers and plain .ts for pure transforms.This project is highly inspired by Agentation.com.
FAQs
Dev-mode Svelte inspector for annotating elements, text selections, groups, and areas in the browser.
The npm package sv-agentation receives a total of 377 weekly downloads. As such, sv-agentation popularity was classified as not popular.
We found that sv-agentation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.