@martypara/runemark
v0.0.1
Published
In-page visual feedback overlay for Svelte apps.
Maintainers
Readme
runemark
In-page visual feedback overlay for Svelte apps.
@martypara/runemark lets you annotate elements directly in the browser and copy structured markdown feedback with source, DOM, and layout context.
Install
pnpm add -D @martypara/runemarkUsage
<script lang="ts">
import { Runemark } from "@martypara/runemark";
</script>
<Runemark />Runemark only runs in development by default.
Features
- Click-to-annotate overlay with anchored markers
- Multi-select annotations with
Shift+Click - Inline draft/edit popup with keyboard submit
- Markdown export optimized for coding-agent workflows
- Optional detailed export mode (accessibility + computed style snapshot)
- Page freeze toggle for stable UI capture
- Persistent annotations via
localStorage
Keyboard shortcuts
Cmd+Shift+V/Ctrl+Shift+V: toggle RunemarkShift+Click: multi-select elementsEnter: save annotation draftShift+Enter: newline in draft textareaC: copy annotations markdownX: clear annotationsF: freeze/unfreeze page interactionsEsc: close current draft (or close Runemark)
Component options
Runemark accepts these props:
enabled?: booleanstorageKey?: string(default:__runemark_annotations__)accentColor?: string(default:#42b883)zIndex?: number(default:2147483000)copyDepth?: "standard" | "detailed"(default:"standard")clearOnCopy?: boolean(default:false)cursor?: string(default:"crosshair")
Types are exported from:
src/lib/types.ts
Source capture behavior
Runemark source mapping uses Svelte dev metadata (__svelte_meta.loc) when available.
It also supports explicit location attributes (data-runemark-loc="path:line:column") for advanced integrations.
Development
pnpm install
pnpm devQuality checks:
pnpm check
pnpm buildLicense
MIT. See LICENSE.
