penn6 downloadsPublish Markdown notes, folders, and PDFs to Feishu/Lark Docs and keep them in sync through the local lark-cli.
English · 简体中文
Write in Obsidian and share a Feishu or Lark Docs link with your team. Larkdoc-sync uses the local lark-cli to publish a note once and update the same document when the note changes.
One-way sync: Obsidian → Feishu/Lark. Changes made in the remote document do not come back to Obsidian. Bring any remote edits you want to keep into the local note before you sync again.
Originally derived from: wanghuan9/obsidian-feishu-lark-cli-sync. This edition is directly based on totok22/feishu-docs-publisher and maintained by jipengju-GitHub.
You need Obsidian 1.13.0 or later on desktop, a Feishu or Lark account, and Node.js with npm for building the plugin and installing the CLI.
npm ci and npm run build from the source checkout. Copy main.js, manifest.json, and styles.css into <vault>/.obsidian/plugins/larkdoc-sync/, restart Obsidian, and enable larkdoc-sync under Community plugins. Alternatively, use the included install.sh to copy a build into your vault.lark-cli. If the CLI app is not yet configured, choose Feishu or Lark, follow the app setup prompts, then sign in or reauthorize. If detection fails, enter the executable's absolute path in the plugin settings.pre-push does not upload these attachments; if only the attachment changes, sync the note manually.pre-push hook. The default is to sync a bound note about 15 seconds after saving while Obsidian is open. To publish a PDF as a separate cloud file, sync the PDF itself or its folder; an attachment card in a note does not require this step.publish-log.json; unchanged skips and Git hook runs are not recorded there.| Situation | What to do |
|---|---|
| A PDF should be downloadable as an attachment | Use a plain PDF link in the note. ![[file.pdf#page=2]] still creates a page preview instead of a native attachment card. |
| Drafts should stay local | Right-click the folder and choose Choose files to ignore. The .feishuignore rules apply to folder sync, save-triggered sync, and the Git hook, but not to a manual single-note sync. |
| Remote block comments or deep links must survive | Prefer regular sync. The default strategy may rewrite the document when a change cannot be applied incrementally. Use Safe precise sync if overwriting is not acceptable. First-time native Callout conversion can also rebuild the body. |
| Saving does not trigger sync | Check that the note is bound, save-triggered sync is enabled, Obsidian is open, and the file is not ignored. |
| A note is publishing to the wrong place | Check its saved binding. The default target only applies to new publications. |
The sync hook blocks git push |
Fix the reported sync error or switch to a different automatic sync mode. Git hook setup and network proxy options are under Advanced settings, collapsed by default. |
Use Document settings to adjust the title source, control whether a successful sync opens the document, or write lark_doc_url into note frontmatter. By default, bindings are only stored in local plugin data. See native export details for Callouts, PDF page embeds, and region crops.
The plugin calls official Feishu or Lark APIs through the local lark-cli. When you publish or sync, the selected content and its relevant attachments are sent to your authorized destination. Installing or updating the CLI contacts the npm package registry. Credentials stay in the CLI's local auth store, not in notes, plugin settings, or the publish log. There is no separate telemetry channel.
Run npm run build to bundle the plugin, npm test to run tests, and npm run release:check to validate release metadata. See the changelog and release-notes/ for version history.
Thanks to the upstream contributors. Native Callouts, PDF crops, and research label colors include work from HeShiLie's fork. This project is distributed under the MIT license; the original notices are preserved in LICENSE.