Typrism is a standalone AI writing assistant for Typora.
This project is not a generic chat page embedded in Typora. It is a writing-focused assistant built around:
- multi-turn chat
- selection rewrite
- document Q&A
- cited web search
- writing workflows for structure analysis, AI comments, writing checks, and note organization
- right-side AI panel
- one-click writing workflows: document structure, cited search, AI comments, writing check, note organization
- selection floating toolbar
- Chinese / English runtime switching
- conversation history bound to the current document
- provider cards, model suggestions, and connection testing
- replacement preview, optional auto-apply rewrite actions, and undo
- regenerate / retry actions
- copyable search sources
- slash commands for workflows:
/outline,/cite,/comment,/check,/organize - Typora shell adapter
- Windows installer, uninstaller, and GUI installer
OpenAI-compatibleproviders use a live HTTPchat/completionstransportGeminiuses the live Google Generative Language API transport- web search uses the live Tavily Search API adapter
The settings panel includes provider credentials, common model suggestions, connection testing, and Tavily search credentials. If a model is configured, the test button sends a lightweight generation request instead of only listing models.
src/: runtime, UI, provider layer, Typora adapterbin/: Windows install / uninstall scripts and GUI installerdemo/: browser-side preview demodocs/: product and architecture notesscripts/: local checks
Recommended:
.\bin\install_windows_gui.batThe GUI installer lets you:
- choose the Typora folder
- choose where plugin files should be stored
- install, uninstall, or restore the original
window.htmlbackup without typing command-line arguments
CLI alternatives:
.\bin\install_windows.bat.\bin\install_windows.bat -TyporaPath "C:\Program Files\Typora".\bin\install_windows.bat -TyporaPath "C:\Program Files\Typora" -PluginHome "D:\TyporaPlugins\Typrism"Parameters:
-TyporaPath: Typora install folder, the folder that containswindow.html, or the fullwindow.htmlpath-PluginHome: custom folder for plugin runtime files
If you use a custom -PluginHome, pass the same value to uninstall_windows.bat when removing the plugin.
If you still want the temporary development flow, open Typora DevTools and run:
import("file:///C:/path/to/typrism/src/entry-typora.js")This only affects the current Typora window and disappears after restart.
Install nothing extra for the current lightweight checks, then run:
npm run check- Provider configuration is currently stored in local browser storage, not the system credential store.
- System credential storage still requires a native helper; the Typora page cannot safely read Windows Credential Manager directly.
- Tavily search requires its own API key in Settings.
- This repository is intended to be used as an independent project, not as a subdirectory of another plugin platform.
- Before publishing, review your local runtime storage separately; API keys are not meant to live in tracked files.