|
| 1 | +# BookStack Plugin for Dify |
| 2 | + |
| 3 | +BookStack Plugin for Dify connects Dify workflows and agents to self-hosted BookStack knowledge bases. The plugin provides BookStack foundation capabilities inside Dify; higher-level business composition, approval, and orchestration belong to your workflow or adapter layer. Today this plugin covers content lookup, search, export, non-destructive CRUD support, publishing, and related support flows. |
| 4 | + |
| 5 | +## Current implemented features |
| 6 | + |
| 7 | +Implemented Dify Tool plugin features: |
| 8 | + |
| 9 | +- `validate_credentials` |
| 10 | +- `search_pages` |
| 11 | +- `search_content` |
| 12 | +- `get_page` |
| 13 | +- `export_page_markdown` |
| 14 | +- `export_chapter_markdown` |
| 15 | +- `export_book_markdown` |
| 16 | +- `create_page` |
| 17 | +- `update_page` |
| 18 | +- `publish_page` |
| 19 | +- `list_books` |
| 20 | +- `find_books` |
| 21 | +- `get_book` |
| 22 | +- `create_book` |
| 23 | +- `update_book` |
| 24 | +- `list_chapters` |
| 25 | +- `find_chapters` |
| 26 | +- `get_chapter` |
| 27 | +- `create_chapter` |
| 28 | +- `update_chapter` |
| 29 | +- `list_shelves` |
| 30 | +- `find_shelves` |
| 31 | +- `get_shelf` |
| 32 | +- `create_shelf` |
| 33 | +- `update_shelf` |
| 34 | +- `list_pages` |
| 35 | +- `find_pages` |
| 36 | +- `list_tag_names` |
| 37 | +- `list_tag_values` |
| 38 | + |
| 39 | +Current tool-surface notes: |
| 40 | + |
| 41 | +- No delete or archive tools are implemented. |
| 42 | +- Tag support in this slice is discovery-only via `list_tag_names` and `list_tag_values`. |
| 43 | +- `search_pages` is page-only search. |
| 44 | +- `search_content` is broader global search with optional supported type filtering. |
| 45 | +- `export_page_markdown` exports one page; `export_chapter_markdown` and `export_book_markdown` return both aggregate Markdown and a structured `pages` list for the exported hierarchy. |
| 46 | +- `find_*` tools are structured name lookups; `list_*` tools support destination and content discovery. |
| 47 | +- `list_books`, `list_chapters`, `list_pages`, and `list_shelves` support optional bounded `sort` and JSON `filters`; `list_pages` also keeps optional `book_id` and `chapter_id` filtering. |
| 48 | +- `publish_page` is the writing/publishing path after you choose or confirm the destination with search, find, or list tools. |
| 49 | +- Tool plugin remains the primary path; Datasource work is separate and still broader follow-up scope. |
| 50 | + |
| 51 | +Current repository direction: |
| 52 | + |
| 53 | +- Tool plugin first |
| 54 | +- A separate Datasource package track exists in this repository, but it is not the primary Marketplace-facing path |
| 55 | +- Broader Datasource work remains planned |
| 56 | + |
| 57 | +## Setup |
| 58 | + |
| 59 | +1. Build or obtain the plugin package from this repository. |
| 60 | +2. Import it into a Dify environment that supports plugin installation. |
| 61 | +3. Open the BookStack provider settings in Dify. |
| 62 | +4. Enter your BookStack `base_url`, `token_id`, and `token_secret` in the Dify UI. |
| 63 | + |
| 64 | +See the consolidated guides: |
| 65 | + |
| 66 | +- [English usage guide](https://github.com/pandaria75/dify-plugin-bookstack/blob/main/docs/user/en/usage.md) |
| 67 | +- [Chinese usage guide](https://github.com/pandaria75/dify-plugin-bookstack/blob/main/docs/user/zh/usage.md) |
| 68 | + |
| 69 | +## Usage |
| 70 | + |
| 71 | +Recommended first step: |
| 72 | + |
| 73 | +1. Save provider credentials. |
| 74 | +2. Run `validate_credentials`. |
| 75 | +3. Confirm the provider can reach the target BookStack instance. |
| 76 | +4. Use search, find, and list tools to inspect or choose destinations, then use export or non-delete create/update/publish tools as needed. |
| 77 | + |
| 78 | +More information is covered in the usage guides above. |
| 79 | + |
| 80 | +## Privacy |
| 81 | + |
| 82 | +The plugin uses credentials provided by the user and connects only to the configured BookStack instance through the Dify runtime. Privacy and credential handling guidance is covered in the usage guides and [PRIVACY.md](PRIVACY.md). |
| 83 | + |
| 84 | +## Repository and support |
| 85 | + |
| 86 | +- Repository: <https://github.com/pandaria75/dify-plugin-bookstack> |
| 87 | +- Issues / support: <https://github.com/pandaria75/dify-plugin-bookstack/issues> |
| 88 | +- Architecture intent: [docs/target/architecture-intent.md](https://github.com/pandaria75/dify-plugin-bookstack/blob/main/docs/target/architecture-intent.md) |
| 89 | + |
| 90 | +## License |
| 91 | + |
| 92 | +MIT. See [LICENSE](LICENSE). |
0 commit comments