Yuque Knowledge Base

approvedunreviewed

by threed

Manage local-first Yuque-style knowledge bases with isolated sidebars, nested doc-as-folder hierarchy, manual ordering, and .lakebook import.

Updated todayMIT

Yuque Knowledge Base

English | 简体中文

Turn folders in your Obsidian vault into local-first, Yuque-style structured knowledge bases—with isolated per-book sidebars, unlimited doc-as-folder nesting, pure grouping folders, drag-and-drop manual ordering, and offline .lakebook import.

Every note stays 100% standard Markdown on disk, so your vault remains clean, portable, and readable even without the plugin.

Key Features

  • Isolated Knowledge Base Spaces: Focus on one knowledge base at a time in a dedicated sidebar with instant switching, single-click navigation (opening parent docs also expands their children), search filtering, and full context menus.
  • Doc-as-Folder Hierarchy & Pure Groups:
    • Uses an Inside-Folder layout (Parent/Parent.md + Parent/Child.md) so any document can hold nested child documents infinitely deep without cluttering sibling directories.
    • Folders without a same-name Markdown file are automatically treated as pure groups, and you can convert between groups and documents anytime.
  • Manual Ordering, Drag-and-Drop & Undo:
    • 3-zone drag-and-drop (before, inside, after) automatically promotes leaf notes to parent folders and optionally demotes empty parent folders back to single files.
    • Built-in Move to Parent fuzzy modal, sibling move up/down actions, multi-select batch operations, and a reversible 30-step undo stack.
  • Book Shelf & Knowledge Base Home:
    • Manage all knowledge bases from a visual Shelf view with custom covers, icons, pinning, and stats.
    • Use the Knowledge Base Home view as a full architecture workbench with tree/card switching, recent updates, hover quick actions, drag-and-drop reordering, and unified context menus.
  • Yuque .lakebook Offline Import & Image Localization:
    • Import exported .lakebook archives directly inside Obsidian (desktop & mobile) while preserving multi-level hierarchy and custom ordering.
    • Optionally download remote images referenced in imported or existing knowledge bases into each book's dedicated assets/ folder with relative links for full offline viewing.
  • Per-Book Asset Lifecycle:
    • Automatically archive pasted or dropped images into the active knowledge base's assets/ folder.
    • Scan and clean up orphaned images in assets/ using Obsidian's trash settings.
    • Optionally hide _kb.json and assets/ in Obsidian's native File Explorer.
  • Dynamic kb-toc Blocks & Optional Reading Navigation:
    • Embed live child table-of-contents blocks (list or cards view) inside any document.
    • Optional top breadcrumb bar and bottom previous/next navigation (off by default; enable in Settings).

Storage Format

Each knowledge base is a normal folder in your vault containing standard .md files plus a small, non-hidden _kb.json manifest (so it syncs seamlessly with Obsidian Sync and Git):

KnowledgeBases/
└── Engineering-Handbook/
    ├── _kb.json                 # Title, icon, cover, custom sibling ordering
    ├── assets/                  # Images belonging to this knowledge base
    ├── Getting-Started/
    │   ├── Getting-Started.md   # Parent document (Inside-Folder)
    │   └── Installation.md      # Child document
    └── Architecture/            # Pure group (no Architecture.md)
        └── State-Management.md

Dynamic Table of Contents (kb-toc)

Insert a kb-toc (or yuque-toc) code block in any knowledge base note to render live child navigation:

```kb-toc
view: cards        # list | cards
depth: 2           # Max nesting depth
showGroups: true   # Include pure groups
target: Guides     # Optional relative path inside the KB (defaults to current doc)
title: Contents    # Optional custom heading
```

Installation

From Obsidian Community Plugins (Once Listed)

  1. Open Settings → Community plugins → Browse.
  2. Search for Yuque Knowledge Base.
  3. Click Install, then Enable.

Via BRAT

  1. Install the BRAT plugin.
  2. Add this repository URL: https://github.com/threed33/obsidian-yuque-kb.
  3. Enable Yuque Knowledge Base in Settings → Community plugins.

Manual Installation

  1. Download main.js, manifest.json, and styles.css from the latest GitHub Release.
  2. Place main.js, manifest.json, and styles.css into <Vault>/.obsidian/plugins/yuque-kb/.
  3. Reload Obsidian and enable Yuque Knowledge Base under Settings → Community plugins.

Network Use & Privacy

  • Local-first & offline by default: All knowledge base management, tree indexing, .lakebook extraction, and asset auditing run locally on your device with zero telemetry, no account requirement, and no paywall.
  • Optional remote image downloads: Network requests (via Obsidian's requestUrl) are only triggered when you explicitly enable image localization during .lakebook import or run the "Download remote images in current knowledge base to local assets" command. In those cases, the plugin fetches only the external image URLs already present inside your own Markdown documents so they can be stored locally in <KB>/assets/.
  • Mobile compatible: Built with zero Node.js runtime dependencies (isDesktopOnly: false), compatible with both desktop and mobile Obsidian.

Development

npm install
npm run typecheck
npm run test
npm run build

License

MIT © 2026 threed33

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.