---
title: '@svartz/plugin-annotations/browser'
description: The `@svartz/plugin-annotations/browser` entry point.
updated_at: '2026-11-19T21:19:47+01:00'
---

# @svartz/plugin-annotations/browser

## Interfaces

- [AttachOptions](https://svartz.dev/reference/api/plugin-annotations/browser/attachoptions.md)
- [HostNoteOptions](https://svartz.dev/reference/api/plugin-annotations/browser/hostnoteoptions.md) — A note in a host app's vault, which locates its annotations without spelling out the route or key.
- [MountOptions](https://svartz.dev/reference/api/plugin-annotations/browser/mountoptions.md) — What the plugin's browser resource receives from the build.

## Functions

- [attach](https://svartz.dev/reference/api/plugin-annotations/browser/attach.md) — Show the annotations stored for `page` beside `content`, the note's body element. Returns `detach`, which removes every marker, card, highlight and list it added. Comments whose passage is no longer in the note are listed after it.
- [mount](https://svartz.dev/reference/api/plugin-annotations/browser/mount.md) — Browser resource entry, which Svartz calls after every navigation: attach to the note body marked with `data-svartz-note="<slug>"`, keyed by that slug. On a host page that is the `SvartzNoteContent` body the mount is for, so each of several notes gets its own; on a theme page, the document's. A page without one gets nothing.

## Variables

- [ACTIVE_HIGHLIGHT](https://svartz.dev/reference/api/plugin-annotations/browser/active_highlight.md)
- [HIGHLIGHT](https://svartz.dev/reference/api/plugin-annotations/browser/highlight.md) — Highlight names, for `::highlight(…)` in a host's own CSS.
