by threed
Manage local-first Yuque-style knowledge bases with isolated sidebars, nested doc-as-folder hierarchy, manual ordering, and .lakebook import.
Yuque Knowledge Base
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.
- Uses an Inside-Folder layout (
- 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.
- 3-zone drag-and-drop (
- 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
.lakebookOffline Import & Image Localization:- Import exported
.lakebookarchives 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.
- Import exported
- 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.jsonandassets/in Obsidian's native File Explorer.
- Automatically archive pasted or dropped images into the active knowledge base's
- Dynamic
kb-tocBlocks & Optional Reading Navigation:- Embed live child table-of-contents blocks (
listorcardsview) inside any document. - Optional top breadcrumb bar and bottom previous/next navigation (off by default; enable in Settings).
- Embed live child table-of-contents blocks (
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)
- Open Settings → Community plugins → Browse.
- Search for Yuque Knowledge Base.
- Click Install, then Enable.
Via BRAT
- Install the BRAT plugin.
- Add this repository URL:
https://github.com/threed33/obsidian-yuque-kb. - Enable Yuque Knowledge Base in Settings → Community plugins.
Manual Installation
- Download
main.js,manifest.json, andstyles.cssfrom the latest GitHub Release. - Place
main.js,manifest.json, andstyles.cssinto<Vault>/.obsidian/plugins/yuque-kb/. - 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,
.lakebookextraction, 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.lakebookimport 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
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.