{"id":21309650,"url":"https://github.com/ahonn/logseq-plugin-ai-assistant","last_synced_at":"2025-10-05T03:26:35.252Z","repository":{"id":150165044,"uuid":"615146963","full_name":"ahonn/logseq-plugin-ai-assistant","owner":"ahonn","description":"A powerful tool that enhances your Logseq experience by allowing you to interact with AI models like OpenAI's gpt-3.5-turbo.","archived":false,"fork":false,"pushed_at":"2025-02-27T01:11:23.000Z","size":270,"stargazers_count":52,"open_issues_count":3,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-11T23:37:15.444Z","etag":null,"topics":["chatgpt","langchain-js","logseq-plugin","notion-ai","openai"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahonn.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-17T03:37:48.000Z","updated_at":"2025-06-12T15:21:47.000Z","dependencies_parsed_at":"2024-01-09T12:31:29.431Z","dependency_job_id":"f661b1a1-fa45-4f94-a9f6-7d8cad60c143","html_url":"https://github.com/ahonn/logseq-plugin-ai-assistant","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":"pengx17/logseq-plugin-template-react","purl":"pkg:github/ahonn/logseq-plugin-ai-assistant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahonn%2Flogseq-plugin-ai-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahonn%2Flogseq-plugin-ai-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahonn%2Flogseq-plugin-ai-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahonn%2Flogseq-plugin-ai-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahonn","download_url":"https://codeload.github.com/ahonn/logseq-plugin-ai-assistant/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahonn%2Flogseq-plugin-ai-assistant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278403782,"owners_count":25981133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","langchain-js","logseq-plugin","notion-ai","openai"],"created_at":"2024-11-21T17:09:43.737Z","updated_at":"2025-10-05T03:26:35.200Z","avatar_url":"https://github.com/ahonn.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/yuexunjiang","https://img.buymeacoffee.com/button-api/?text=Buy"],"categories":[],"sub_categories":[],"readme":"# Logseq AI Assistant\n\nA powerful tool that enhances your Logseq experience by allowing you to interact with AI models like OpenAI's `gpt-3.5-turbo`.\n\n\u003ca href=\"https://www.buymeacoffee.com/yuexunjiang\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=Buy me a coffee\u0026emoji=\u0026slug=yuexunjiang\u0026button_colour=FFDD00\u0026font_colour=000000\u0026font_family=Comic\u0026outline_colour=000000\u0026coffee_colour=ffffff\" /\u003e\u003c/a\u003e\n\nWith this plugin, you can effortlessly generate or transform text using custom prompts,\nenabling you to achieve more efficient and creative workflows within Logseq.\n\n![](https://user-images.githubusercontent.com/9718515/226260897-d5e39c09-4714-4d23-b004-28a2391512c4.gif)\n\n\u003e Inspired by [Notion AI](https://www.notion.so/product/ai) and [Raycast AI](https://www.raycast.com/ai)\n\n## Features\n- Seamless integration with Logseq\n- Customizable prompt support\n- Easy-to-use built-in prompts \n- Using a custom Open AI basePath\n\n## Install\n\n### Option 1: directly install via Marketplace\n\n### Option 2: manually load\n\n- turn on Logseq developer mode\n- [download the prebuilt package here](https://github.com/ahonn/logseq-plugin-ai-assistant/releases)\n- unzip the zip file and load from Logseq plugins page\n\n## Configuration\nBefore using the plugin, you need to configure it according to your preferences.\n\n- **API Key**: Enter your OpenAI API key in this field. If you don't have an API key yet, visit the [OpenAI](https://platform.openai.com/account/api-keys) to obtain one.\n- **Model**: Choose the OpenAI model you want to use, such as \"gpt-3.5-turbo\". Different models may offer varying levels of performance and text generation capabilities.\n- **Custom Prompts**: Enable this option if you want to use custom prompts for generating or transforming text. You can add, edit, or remove prompts in the prompts array.\n\n## Built-in Prompts\n\nThe plugin comes with several built-in prompts to enhance your text editing experience\n\n- **Ask AI**: Ask a question, and the AI will provide a helpful answer.\n- **Summarize**: Provide a concise summary of the text.\n- **Make Shorter**: Shorten the text while maintaining its key points.\n- **Make Longer**: Expand the text, providing more details and depth.\n- **Change Tone to Friendly**: Rewrite the text with a friendly tone.\n- **Change Tone to Confident**: Rewrite the text with a confident tone.\n- **Change Tone to Casual**: Rewrite the text with a casual tone.\n- **Change Tone to Professional**: Rewrite the text with a more professional tone.\n- **Explain This**: Provide a clear explanation for the text or code snippet.\n- **Generate Ideas**: Generate creative ideas related to the selected topic.\n\nSee all built-in prompts [here](https://github.com/ahonn/logseq-plugin-ai-assistant/tree/master/src/prompts)\n\n## How to Use a Custom Prompt\n\n- Open the plugin settings and locate \"customPrompts\" field.\n\n- Add the following JSON object to the \"prompts\" array:\n\n```json\n{\n  \"apiKey\": \"\u003cyour-api-key\u003e\",\n  \"model\": \"gpt-3.5-turbo\",\n  \"customPrompts\": {\n    \"enable\": true, // \u003c- Make sure to enable this.\n    \"prompts\": [\n      {\n        \"name\": \"Markdown Table\",\n        \"prompt\": \"Please generate a {{text}} Markdown table\",\n        \"output\": \"replace\" // \"property\", \"replace\" or \"insert\"\n      }\n    ]\n  },\n  \"disabled\": false\n}\n```\n\n- In the Logseq editor, focus the cursor on the place where you want to generate the table and do the following.\n![](https://user-images.githubusercontent.com/9718515/226259576-a1193b51-8a57-4cad-9270-f5bc30a5ba29.gif)\n\n## Contribution\nIssues and PRs are welcome!\n\n## Licence\nMIT\n\n## How to Specify a Model for Individual Custom Prompts\n\n- Open the plugin settings and locate the \"customPrompts\" field.\n\n- Add the following JSON object to the \"prompts\" array, specifying a model for an individual prompt:\n\n```json\n{\n  \"apiKey\": \"\u003cyour-api-key\u003e\",\n  \"model\": \"gpt-3.5-turbo\",\n  \"customPrompts\": {\n    \"enable\": true, // \u003c- Make sure to enable this.\n    \"prompts\": [\n      {\n        \"name\": \"Markdown Table\",\n        \"prompt\": \"Please generate a {{text}} Markdown table\",\n        \"output\": \"replace\", // \"property\", \"replace\" or \"insert\"\n        \"model\": \"gpt-4\" // Specify the model for this prompt\n      }\n    ]\n  },\n  \"disabled\": false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahonn%2Flogseq-plugin-ai-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahonn%2Flogseq-plugin-ai-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahonn%2Flogseq-plugin-ai-assistant/lists"}