---
title: '@svartz/plugin-annotations'
description: 'Readers'' comments beside the passage they respond to, stored in Cloudflare D1'
updated_at: '2026-11-19T21:17:45+01:00'
---

# @svartz/plugin-annotations

## Entry points

- [@svartz/plugin-annotations/server](https://svartz.dev/reference/api/plugin-annotations/server.md)
- [@svartz/plugin-annotations/browser](https://svartz.dev/reference/api/plugin-annotations/browser.md)

## Interfaces

- [Agreement](https://svartz.dev/reference/api/plugin-annotations/agreement.md) — Someone who agreed with a comment with **+1**.
- [Anchor](https://svartz.dev/reference/api/plugin-annotations/anchor.md) — How a passage is found again: its quote, the text around it, and where it last was.
- [AnnotationsOptions](https://svartz.dev/reference/api/plugin-annotations/annotationsoptions.md) — The `annotations` plugin's options.
- [Reaction](https://svartz.dev/reference/api/plugin-annotations/reaction.md) — One of the site's drawn reactions.

## Types

- [Annotation](https://svartz.dev/reference/api/plugin-annotations/annotation.md) — A comment or reaction on a passage, as `GET <mount>/_svartz/annotations/?page=` lists it.

## Functions

- [annotations](https://svartz.dev/reference/api/plugin-annotations/annotations.md) — The `annotations` plugin: its routes on the server, and in the browser a script that attaches to every note body a theme marks with `data-svartz-note`, as theme-minimal and every theme extending it do.

## Variables

- [ANNOTATIONS_PLUGIN_ID](https://svartz.dev/reference/api/plugin-annotations/annotations_plugin_id.md) — The plugin id, and so the path segment its routes answer under: `<mount>/_svartz/annotations/`.
- [DEFAULT_WRITES_PER_HOUR](https://svartz.dev/reference/api/plugin-annotations/default_writes_per_hour.md) — Writes each signed-in reader may make per hour unless `limits.writesPerHour` says otherwise.
