# @univerjs/docs-thread-comment

- Human documentation: [https://docs.univer.ai/reference/packages/plugins/univerjs/docs-thread-comment](https://docs.univer.ai/reference/packages/plugins/univerjs/docs-thread-comment)

- Agent Markdown: [https://docs.univer.ai/reference/packages/plugins/univerjs/docs-thread-comment.md](https://docs.univer.ai/reference/packages/plugins/univerjs/docs-thread-comment.md)

- Requested language: `en-US`

- Content language: `en-US`

- Documentation version: `1.0.0-rc.0`

- Source: [packages/plugins/univerjs/docs-thread-comment.mdx](https://github.com/dream-num/documentation/blob/dev/content/reference/packages/plugins/univerjs/docs-thread-comment.mdx)

---

Model commands and Facade APIs for comments anchored to fixed document text ranges. This package has no UI dependency and can run in Node.js.

```typescript
import { UniverDocsThreadCommentPlugin } from '@univerjs/docs-thread-comment'

import '@univerjs/docs-thread-comment/facade'

univer.registerPlugin(UniverDocsThreadCommentPlugin)

const range = univerAPI.getActiveDocument()?.getTextRange(0, 12)
await range?.createCommentAsync('Verify this introduction.', { id: 'review-intro' })
```

The Facade entry adds `createCommentAsync()`, `getComments()`, and `listCommentsAsync()` to `FDocumentTextRange`. Add `@univerjs/docs-thread-comment-ui` when menus, decorations, and the shared comment panel are required.

## Entry Points

* Facade: `@univerjs/docs-thread-comment/facade`
