---
title: '@svartz/plugin-history'
description: >-
  Every page's history with diffs, and Recent changes for the whole wiki, read
  from the submissions plugin's GitHub mirror; or prerendered previous versions
  of a note, read from git
updated_at: '2026-11-20T00:40:56+01:00'
---

# @svartz/plugin-history

## Entry points

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

## Interfaces

- [BrowserOptions](https://svartz.dev/reference/api/plugin-history/browseroptions.md) — What the browser script receives: where history pages are, and which pages have one.

## Types

- [HistoryOptions](https://svartz.dev/reference/api/plugin-history/historyoptions.md) — How a vault's history is read.

## Functions

- [history](https://svartz.dev/reference/api/plugin-history/history.md) — Page history. By default, page history and Recent changes as plugin pages, and a History action on every published Markdown page. With `source: "git"`, prerendered previous versions of the notes that ask for them, on any target.

## Variables

- [VERSIONS_FIELD](https://svartz.dev/reference/api/plugin-history/versions_field.md) — The frontmatter field a note sets to `true` to publish its previous versions.
