# @keystone-6/fields-document

> KeystoneJS Document Field Type

Latest version **11.0.5** (published 2026-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @keystone-6/fields-document
pnpm add @keystone-6/fields-document
yarn add @keystone-6/fields-document
bun add @keystone-6/fields-document
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 11.0.5 |
| Published | 2026-08-31 |
| First published | 2021-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 20 |
| Unpacked size | 592.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 9975 |
| Maintainers | emmatown, dcousens |

## Links

- npm: https://www.npmjs.com/package/@keystone-6/fields-document
- Repository: https://github.com/keystonejs/keystone/tree/main/packages/fields-document
- npm.io page: https://npm.io/package/@keystone-6/fields-document

## Dependencies (20)

- [zod](https://npm.io/package/zod.md) ^4.4.3
- [slate](https://npm.io/package/slate.md) ^0.120.0
- [graphql](https://npm.io/package/graphql.md) ^16.14.2
- [is-hotkey](https://npm.io/package/is-hotkey.md) ^0.2.0
- [slate-dom](https://npm.io/package/slate-dom.md) ^0.119.0
- [react-aria](https://npm.io/package/react-aria.md) 3.50.0
- [@keystar/ui](https://npm.io/package/@keystar/ui.md) ~0.10.0
- [slate-react](https://npm.io/package/slate-react.md) ^0.120.0
- [match-sorter](https://npm.io/package/match-sorter.md) ^8.0.0
- [react-stately](https://npm.io/package/react-stately.md) 3.48.0
- [slate-history](https://npm.io/package/slate-history.md) ^0.113.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.24.7
- [@emotion/weak-memoize](https://npm.io/package/@emotion/weak-memoize.md) ^0.4.0
- [@braintree/sanitize-url](https://npm.io/package/@braintree/sanitize-url.md) 7.1.2
- [mdast-util-from-markdown](https://npm.io/package/mdast-util-from-markdown.md) ^2.0.3
- [scroll-into-view-if-needed](https://npm.io/package/scroll-into-view-if-needed.md) ^3.0.0
- [mdast-util-gfm-strikethrough](https://npm.io/package/mdast-util-gfm-strikethrough.md) ^2.0.0
- [mdast-util-gfm-autolink-literal](https://npm.io/package/mdast-util-gfm-autolink-literal.md) ^2.0.1
- [micromark-extension-gfm-strikethrough](https://npm.io/package/micromark-extension-gfm-strikethrough.md) ^2.1.0
- [micromark-extension-gfm-autolink-literal](https://npm.io/package/micromark-extension-gfm-autolink-literal.md) ^2.1.0

## Recent versions

- 11.0.5 (latest) — 2026-08-31
- 0.0.0-rc-20260724060115 (rc) — 2026-07-24
- 11.0.4 — 2026-08-20
- 11.0.3 — 2026-08-18
- 11.0.2 — 2026-08-11
- 11.0.1 — 2026-08-03
- 11.0.0 — 2026-07-28
- 0.0.0-rc-20260724052901 — 2026-07-24
- 0.0.0-rc-20260724034235 — 2026-07-24
- 0.0.0-rc-20260724023829 — 2026-07-24
- 0.0.0-rc-20260724010741 — 2026-07-24
- 0.0.0-rc-20260722064806 — 2026-07-22
- 0.0.0-rc-20260721052844 — 2026-07-21
- 10.0.0 — 2026-07-21
- 0.0.0-rc-20260721030804 — 2026-07-21
- … 106 more at https://npm.io/package/@keystone-6/fields-document/versions

## README

<a href="https://keystonejs.com/">
  <img src=".github/assets/banner.svg" alt="Keystone: The superpowered CMS for developers">
  </br>
  </br>
</a>
<p>
  <a aria-label="NPM version" href="https://www.npmjs.com/package/@keystone-6/core">
    <img alt="" src="https://img.shields.io/npm/v/@keystone-6/core.svg?style=for-the-badge&labelColor=0869B8">
  </a>
  <a aria-label="Twitter Logo" href="https://twitter.com/keystonejs">
    <img src="https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white&labelColor=007BCE">
  </a>
  <a aria-label="Slack Logo" href="https://community.keystonejs.com/">
    <img src="https://img.shields.io/badge/Slack-8C0789?style=for-the-badge&logo=slack&logoColor=white&labelColor=4A154B">
  </a>
  <a aria-label="Website" href="https://keystonejs.com/">
    <img src="https://img.shields.io/badge/Website-2F6BFF.svg?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0iZmVhdGhlciBmZWF0aGVyLWdsb2JlIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCI+PC9jaXJjbGU+PGxpbmUgeDE9IjIiIHkxPSIxMiIgeDI9IjIyIiB5Mj0iMTIiPjwvbGluZT48cGF0aCBkPSJNMTIgMmExNS4zIDE1LjMgMCAwIDEgNCAxMCAxNS4zIDE1LjMgMCAwIDEtNCAxMCAxNS4zIDE1LjMgMCAwIDEtNC0xMCAxNS4zIDE1LjMgMCAwIDEgNC0xMHoiPjwvcGF0aD48L3N2Zz4=&labelColor=0737ad&locoColor=white&logoWidth=0">
  </a>
  <a aria-label="Thinkmill Logo" href="https://www.thinkmill.com.au/open-source?utm_campaign=keystone-github">
    <img src="https://img.shields.io/badge/A%20Thinkmill%20Project-ed0000.svg?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTg2IiBoZWlnaHQ9IjU4NiIgdmlld0JveD0iMCAwIDU4NiA1ODYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTk2XzQwNikiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTU4NiAyOTNDNTg2IDQ1NC44MTkgNDU0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jEwNCA0MjQuNjU2IDI5Ny4wMjRWMzg0SDQ1Ny40ODhWMjkzLjg1NkM0NTcuNDg4IDI1NC40IDQzOC40OCAyMzQuMjQgNDA3LjM3NiAyMzQuMjRaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzE5OTZfNDA2Ij4KPHJlY3Qgd2lkdGg9IjU4NiIgaGVpZ2h0PSI1ODYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==&labelColor=C60200&locoColor=white&logoWidth=0">
  </a>
</p>

---

<br>
<p>Keystone helps you build faster and scale further than any other CMS or App Framework. Describe your schema, and get a powerful GraphQL API & beautiful Management UI for your content and data.</p>
<p>No boilerplate or bootstrapping – just elegant APIs to help you ship the code that matters without sacrificing the flexibility or power of a bespoke back-end.
</p>

## Contents

- [Usage & Documentation](#usage--documentation)
- [Versioning](#versioning)
- [Code of Conduct](#code-of-conduct)
- [Security](#security)
- [License](#license)

## Usage & Documentation

Keystone 6 is published to npm under the `@keystone-6/*` namespace.

You can find our extended documentation on our [website](https://keystonejs.com/docs), but some quick links that might be helpful:

- Read [Why Keystone](https://keystonejs.com/why-keystone) to learn about our vision and what's in the box.
- [Getting Started](https://keystonejs.com/docs/getting-started) walks you through first steps with the `create-keystone-app` CLI.
- Our [Examples](./examples) contain a growing collection of projects you can run locally to learn more about a [Keystone feature](https://keystonejs.com/why-keystone#features).
- An [API Reference](https://keystonejs.com/docs/apis) contains the details on Keystone's foundational building blocks.
- Some [Guides](https://keystonejs.com/docs/guides/overview) offer practical walkthroughs on how to build with those blocks.

> 💡 While our `API Reference` is generally complete, we are are still working hard on increasing the fidelity of our `guides` and `examples`. If you have an example you'd like see, please [open a GitHub discussion](https://github.com/keystonejs/keystone/discussions/new)!

Our `@keystone-6/*` packages are written for the [Node Maintenance and Active LTS](https://github.com/nodejs/Release) versions of Node; and our continuous integration seamlessly tracks that.
You may have success with Node versions that are Pending or End-of-Life, but you may have problems too.

### Looking for Keystone 5?

The [Keystone 5](https://github.com/keystonejs/keystone-5) codebase is now in maintenance mode and lives at [keystonejs/keystone-5](https://github.com/keystonejs/keystone-5). For more information read [Keystone 5 and beyond](https://github.com/keystonejs/keystone-5/issues/21).

## Enjoying Keystone?

- Star this repo 🌟 ☝️
- Follow Keystone on [Twitter](https://twitter.com/KeystoneJS)
- Join the conversation in [Keystone community Slack](http://community.keystonejs.com/).

### Interested in what's new?

For a birds-eye view of what the Keystone project is working towards, check out our [Roadmap](https://keystonejs.com/updates/roadmap).

### Feedback

Share your thoughts and feature requests on Slack (preferred) or Twitter. [Bugfixes and issues always welcome](https://github.com/keystonejs/keystone/issues/new/choose).

## Versioning

Keystone follows [semver](https://semver.org/).

## Code of Conduct

Keystone adheres to the [Contributor Covenant Code of Conduct](/CODE-OF-CONDUCT.md).

## Security

For vulnerability reporting, please refer to our [security policy](/SECURITY.md).

## License

<a href="https://thinkmill.com.au" target="_blank"><img height="48" alt="Thinkmill" src="https://thinkmill.github.io/badge/brandmark.svg"></a>

Copyright (c) 2024 [Thinkmill Labs](https://www.thinkmill.com.au/labs?utm_campaign=keystone-github) Pty Ltd. Licensed under the MIT License.

---
_Source: https://npm.io/package/@keystone-6/fields-document · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
