← 返回
效率工具 Key 中文

HackMD

Work with HackMD documents. Use when reading, creating, updating, or deleting notes on HackMD. Supports change tracking to detect document modifications since last check. Supports personal and team workspaces.
管理 HackMD 文档。用于在 HackMD 上读取、创建、更新或删除笔记。支持变更追踪以检测上次检查后的文档修改。支持个人和团队工作区。
nulltea
效率工具 clawhub v1.0.0 1 版本 99778.1 Key: 需要
★ 0
Stars
📥 1,349
下载
💾 26
安装
1
版本
#latest

概述

HackMD Integration

Requirements

npm install -g @hackmd/hackmd-cli

Quick Reference

Read Notes

# List all personal notes
hackmd-cli notes

# Get note metadata (includes lastChangedAt)
hackmd-cli notes --noteId=<id> --output json

# Get note content (markdown)
hackmd-cli export --noteId=<id>

# List teams
hackmd-cli teams

# List team notes
hackmd-cli team-notes --teamPath=<path>

Write Notes

# Create note
hackmd-cli notes create --content='# Title'

# Create from file
cat file.md | hackmd-cli notes create

# Update note
hackmd-cli notes update --noteId=<id> --content='# Updated'

# Delete note
hackmd-cli notes delete --noteId=<id>

Team Notes

hackmd-cli team-notes create --teamPath=<path> --content='# Team Note'
hackmd-cli team-notes update --teamPath=<path> --noteId=<id> --content='...'
hackmd-cli team-notes delete --teamPath=<path> --noteId=<id>

Change Tracking

Use hackmd-track.js (in scripts/) to detect document changes efficiently.

Track a Note

node scripts/hackmd-track.js add <noteId>

Check for Changes

# Single note - outputs content only if changed
node scripts/hackmd-track.js changes <noteId>

# All tracked notes
node scripts/hackmd-track.js changes --all

# JSON output for parsing
node scripts/hackmd-track.js changes <noteId> --json

Manage Tracking

node scripts/hackmd-track.js list              # Show tracked notes
node scripts/hackmd-track.js remove <noteId>   # Stop tracking
node scripts/hackmd-track.js reset <noteId>    # Reset (next check shows as changed)

How It Works

  1. hackmd-track.js add stores note's lastChangedAt timestamp
  2. hackmd-track.js changes compares current lastChangedAt with stored value
  3. If changed: outputs content and updates stored timestamp
  4. If unchanged: outputs nothing (use --verbose for status)

State stored in ./.hackmd/tracked-notes.json (current working directory)

Note Metadata Fields

When using --output json, notes include:

FieldDescription
--------------------------------------------------------
lastChangedAtUnix timestamp of last modification
lastChangeUser{name, userPath, photo} of last editor
titleUpdatedAtWhen title changed
tagsUpdatedAtWhen tags changed

Rate Limits

  • 100 calls per 5 minutes
  • 2000 calls/month (10k on Prime plan)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 00:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,797
productivity

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 431 📥 103,746
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,225