---
title: '@svartz/plugin-submissions/server'
description: The `@svartz/plugin-submissions/server` entry point.
updated_at: '2026-11-19T13:44:02+01:00'
---

# @svartz/plugin-submissions/server

## Interfaces

- [BuildData](https://svartz.dev/reference/api/plugin-submissions/server/builddata.md) — What the build records for the server: never sent to the browser.
- [RouteHolder](https://svartz.dev/reference/api/plugin-submissions/server/routeholder.md) — The page holding a route: its slug, which permissions are checked on, and its URL below the deployment base, `null` when hidden.
- [SavedEdits](https://svartz.dev/reference/api/plugin-submissions/server/savededits-interface.md) — The edits a vault's site saved among those asked about, each with the id of the account that saved it, or `null`.
- [VaultRecords](https://svartz.dev/reference/api/plugin-submissions/server/vaultrecords.md) — Where a vault's sync keeps its records: the D1 binding, the repository, and the vault's folder in it.

## Types

- [Credentials](https://svartz.dev/reference/api/plugin-submissions/server/credentials.md) — Exactly one kind of GitHub credentials: a token, or a GitHub App.
- [ServerOptions](https://svartz.dev/reference/api/plugin-submissions/server/serveroptions.md) — The plugin's server options, as written into the server bundle.

## Functions

- [changedFiles](https://svartz.dev/reference/api/plugin-submissions/server/changedfiles.md) — The vault files each of `commits` (SHAs) changed, as vault paths, for those the mirror of the vault `records` describes holds with their files. In one query; none when the binding is missing.
- [isVaultSubmission](https://svartz.dev/reference/api/plugin-submissions/server/isvaultsubmission.md) — Whether pull request `number` is a submission the site saved for the vault `records` describes: what that vault's `POST close/` accepts. `false` when the binding is missing. The moderation plugin asks before it offers Close.
- [savedEdits](https://svartz.dev/reference/api/plugin-submissions/server/savededits-function.md) — Which of `commits` (SHAs) and `pulls` (numbers) the site saved for the vault `records` describes, and the account behind each: whoever made the commit, or opened the pull request with its first save. `null` for a save by someone without an account. In one query; none are saved when the binding is missing.

## Variables

- [default](https://svartz.dev/reference/api/plugin-submissions/server/default.md)

## Re-exports

- [Mode](https://svartz.dev/reference/api/plugin-submissions/mode.md)
