API and export support for comments and reactions
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- git, github
調査の方向性
Issue では、実装ファイルやテストは特定されていません。まず API v1、hackmd-cli export、GitHub sync のエントリーポイントを確認し、コメント、返信、リアクション、範囲がどのように表現されているかを調べてください。完了とみなすには、合意されたスコープと、提案された API およびエクスポートまたは同期の動作をカバーする実装が必要です。
索引モデルが issue の本文から書いたものです。
説明
Problem
Comments and reactions are first-class collaboration features in HackMD — the new commenting system introduced in 2024 added emoji reactions, a dedicated side panel, and expanded character limits. However, none of this data is accessible through the API, CLI, GitHub sync, or any export format.
Teams that use HackMD as part of a GitHub-centered documentation workflow lose all review context (feedback, questions, decisions captured in comment threads) when syncing notes to their repository. The comments are effectively trapped on the HackMD platform with no way to extract them.
Use Case
Our team recently migrated from Google Docs to a stack of HackMD + GitHub + Obsidian for collaborative documentation. HackMD replaced Google Docs as the real-time collaboration layer, with GitHub as the source of truth.
On Google Docs, comments traveled with the document — they could be exported, and the full discussion history was preserved. On HackMD, comments and reactions are silently dropped the moment a note is synced to GitHub. This is the single biggest gap in our workflow, and the main reason we can't fully move off Google Docs.
Current State
- API v1: No endpoints for retrieving comment or reaction data. The only comment-related field is
commentPermission(who can comment), but actual comment content is inaccessible. - CLI (
hackmd-cli export): Outputsnote.contentonly — raw markdown, no comments. - GitHub sync: Pushes markdown content as commits. Comments and reactions are not included.
- All export formats (PDF, Dropbox, Google Drive, Arweave): Omit comments entirely.
Proposed Solution
Tier 1: API endpoints (highest priority)
New REST endpoints to retrieve comment and reaction data:
GET /v1/notes/:noteId/comments
GET /v1/notes/:noteId/reactions
Suggested comment response schema:
[
{
"id": "comment-id",
"author": {
"id": "user-id",
"name": "Display Name"
},
"body": "Comment text content",
"createdAt": "2025-01-15T10:30:00Z",
"updatedAt": "2025-01-15T10:30:00Z",
"resolved": false,
"range": {
"startLine": 42,
"endLine": 44
},
"replies": [
{
"id": "reply-id",
"author": { "id": "user-id", "name": "Display Name" },
"body": "Reply text",
"createdAt": "2025-01-15T11:00:00Z"
}
],
"reactions": [
{
"emoji": "👍",
"users": ["user-id-1", "user-id-2"]
}
]
}
]
Tier 2: CLI export flag
hackmd-cli export --noteId=<id> --include-comments
This would output a sidecar .comments.json file alongside the markdown content, enabling scripted workflows and backups.
Tier 3: GitHub sync enrichment
Option to sync comments alongside note content, either as:
- A sidecar
.comments.jsoncommitted to the repo, or - Mapped to GitHub PR review comments (for notes synced via PR workflow)
Prior Art
- Google Docs: Export includes comments; Google Docs API provides full comment/reply access
- Notion API:
GET /v1/commentsendpoint exposes all comments on a page - GitHub: Issues and PR APIs expose all comments and reactions
Impact
This is a blocker for teams that want to use HackMD's collaboration features while maintaining durable records of discussion. Without it, the collaboration context that makes HackMD valuable over a plain text editor is ephemeral and lost.
Related: #207
- 主要言語
- 言語のデータがありません
- スター
- 40
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hackmdio/hackmd-io-issues のほかの issue
-
bug
難易度 1/5 1〜3時間 初心者へのやさしさ 62/100
hackmdio/hackmd-io-issues#121 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
hackmdio/hackmd-io-issues#448 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
hackmdio/hackmd-io-issues#447 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
hackmdio/hackmd-io-issues#446 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
hackmdio/hackmd-io-issues#445 · コメント 3 件 ·
hackmdio/hackmd-io-issues の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
OpenPrinting/cups#1833 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothing対応中かも @chaitanya0305 が今日担当しました。 オープンbug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
BaaRai/ARTEX#652 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug effort:S P3
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
nightscout/nocturne#4563 ·
メンテナーはふだん 1 日以内に返信