> ## Documentation Index
> Fetch the complete documentation index at: https://superdoc-nick-sd-2070-add-content-controls-namespace-to-doc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Modules

Modules are opt-in features configured through the SuperDoc `modules` option. Enable only what you need.

```javascript theme={null}
const superdoc = new SuperDoc({
  selector: '#editor',
  document: 'contract.docx',
  modules: {
    toolbar: { selector: '#toolbar' },
    comments: { allowResolve: true },
    collaboration: { ydoc, provider },
    contextMenu: { includeDefaultItems: true },
    links: { popoverResolver: (ctx) => ({ type: 'default' }) }
  }
});
```

## Available modules

<CardGroup cols={2}>
  <Card title="Collaboration" icon="users" href="/modules/collaboration/overview">
    Real-time multi-user editing with Yjs
  </Card>

  <Card title="Comments" icon="message-square" href="/modules/comments">
    Threaded discussions and annotations
  </Card>

  <Card title="Toolbar" icon="palette" href="/modules/toolbar">
    Customizable formatting controls
  </Card>

  <Card title="Links" icon="link" href="/modules/links">
    Customize the link click popover or bring your own UI
  </Card>

  <Card title="Context Menu" icon="menu" href="/modules/context-menu">
    Right-click actions and custom commands
  </Card>

  <Card title="PDF" icon="file-text" href="/modules/pdf">
    PDF viewer setup and configuration
  </Card>

  <Card title="Whiteboard" icon="pencil" href="/modules/whiteboard">
    Annotation layer for documents
  </Card>
</CardGroup>

Each module is configured via `modules.<name>` in the [SuperDoc configuration](/core/superdoc/configuration). See individual module pages for all available options.

## Related features

These features are configured at the top level rather than through `modules`, but are commonly used alongside modules.

<CardGroup cols={2}>
  <Card title="Track Changes" icon="git-compare" href="/extensions/track-changes">
    Accept/reject workflow with `documentMode: 'suggesting'`
  </Card>

  <Card title="AI Agents" icon="sparkles" href="/getting-started/ai-agents">
    Headless mode for server-side document processing and LLM workflows
  </Card>
</CardGroup>
