MCPcopy Index your code
hub / github.com/nhaouari/obsidian-textgenerator-plugin

github.com/nhaouari/obsidian-textgenerator-plugin @0.8.7 sqlite

repository ↗ · DeepWiki ↗ · release 0.8.7 ↗
1,190 symbols 3,006 edges 232 files 28 documented · 2% 32 cross-repo links
README

obsidian-textgenerator-plugin

Documentation   •   Discord   •   Twitter

What is Text Generator?

Text Generator is an open-source AI Assistant Tool that brings the power of Generative Artificial Intelligence to the power of knowledge creation and organization in Obsidian.

For example, use Text Generator to generate ideas, attractive titles, summaries, outlines, and whole paragraphs based on your knowledge database.

The possibilities are endless!

If you're looking for a place to discuss the use cases of this plugin and share your experiences, head over to our Discord Server (Updated) or the Discussion. There, you'll find a community of like-minded users who are eager to help you make the most of this powerful tool.

Features

There are many benefits to using a Text Generator Plugin, including the following:

  • Free and Open Source: The Text Generator Plugin is free and open source, so you can use it without worrying about licensing fees.

  • Beside Obsidian: Obsidian is very powerful and extensible Personal Knowledge Management software so you can use Text Generator Plugin alongside Obsidian to create a more powerful Personal Knowledge Management system.

  • Flexible Prompts: The context of the prompt is straightforward using all the available options in the Considered Context which gives you a higher flexibility.

  • Template Engine: You can create templates to make repetitive tasks more manageable.

  • Community Templates: Through this option you can discover new use cases of Generative Artificial Intelligence using the shared templates and you can share your use cases easier.

  • Highly Flexible Configuration: Using Frontmatter Configuration, it is possible to use different services such as Google Generative AI(contains Gemini-Pro), OpenAI, HuggingFace ...etc.

Demonstration

Youtube Demonstration

Installation

Method 1: From Obsidian Community Plugins

  1. Open Obsidian
  2. Go to Settings > Community plugins
  3. Turn off Safe mode if it's on
  4. Click on "Browse" and search for "Text Generator"
  5. Click Install and then Enable

Method 2: Manual Installation

If you prefer to install the plugin manually or want to use the latest development version:

  1. Clone this repository to your Obsidian vault's plugins folder: bash git clone https://github.com/nhaouari/obsidian-textgenerator-plugin.git

  2. Navigate to the plugin directory: bash cd obsidian-textgenerator-plugin

  3. Install dependencies: bash pnpm install

  4. Build the plugin: bash pnpm run build

Alternatively, for development: bash pnpm run dev

  1. Restart Obsidian and enable the plugin in Settings > Community plugins

Alternatively, You can use the Hot-Reload plugin to reload plugins without restarting Obsidian

Troubleshooting

If you encounter any issues during installation, please: - Check our documentation - Join our Discord server for community support - Open an issue on our GitHub repository

Contributors

Made with contrib.rocks.

Extension points exported contracts — how you extend this code

LLMProviderInterface (Interface)
(no doc) [20 implementers]
src/LLMProviders/interface.ts
ContentManager (Interface)
(no doc) [5 implementers]
src/scope/content-manager/types.ts
PackageJsonInfo (Interface)
(no doc)
src/lib/live-plugin-manager/PackageInfo.ts
Completion (Interface)
(no doc)
src/services/auto-suggest/index.ts
TranscriptConfig (Interface)
(no doc)
src/extractors/youtube-extractor/youtube-transcript.ts
OverlayToolbarProps (Interface)
(no doc)
src/ui/components/OverlayToolbar.tsx
LLMConfig (Interface)
(no doc)
src/LLMProviders/interface.ts
SearchDetails (Interface)
(no doc)
src/scope/embeddings.ts

Core symbols most depended-on inside this repo

saveSettings
called by 135
src/main.ts
compile
called by 59
src/scope/content-manager/index.ts
handelError
called by 56
src/main.ts
useGlobal
called by 35
src/ui/context/global/index.tsx
open
called by 29
src/services/auto-suggest/listSuggest.ts
cleanConfig
called by 28
src/LLMProviders/base.tsx
end
called by 27
src/lib/utils.ts
start
called by 26
src/lib/utils.ts

Shape

Method 653
Function 325
Class 166
Interface 45
Enum 1

Languages

TypeScript100%

Modules by API surface

src/lib/live-plugin-manager/PluginManager.ts52 symbols
src/scope/context-manager.ts49 symbols
src/scope/package-manager/package-manager.ts42 symbols
src/main.ts32 symbols
src/utils/index.ts29 symbols
src/helpers/handlebars-helpers.ts29 symbols
src/scope/content-manager/md.ts28 symbols
src/services/text-generator.ts27 symbols
src/scope/content-manager/canvas.d.ts27 symbols
src/lib/live-plugin-manager/PluginVm.ts25 symbols
src/services/auto-suggest/inlineSuggest.ts24 symbols
src/scope/content-manager/canvas.ts23 symbols

Dependencies from manifests, versioned

@anthropic-ai/sdk0.27.3 · 1×
@codemirror/state6.5.4 · 1×
@codemirror/view6.39.12 · 1×
@dqbd/tiktoken1.0.22 · 1×
@google-ai/generativelanguage1.1.0 · 1×
@koa/cors5.0.0 · 1×
@langchain/anthropic1.3.26 · 1×
@langchain/core1.1.39 · 1×
@langchain/google-genai2.1.26 · 1×

For agents

$ claude mcp add obsidian-textgenerator-plugin \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact