How musheer360/swiftslate-desktop works
SwiftSlate Desktop is a Windows-wide inline text transformation app. The main workflow is typing a trigger in another application, processing the preceding text through an AI or local command, and replacing the text in place. The README also documents key rotation, clipboard commands, undo, and hot reload. Source excerpts were unavailable, so relationships below rely on the README; the single runtime file is assigned to the documented runtime responsibilities without claiming its internal structure was inspected.
Main entry points: SwiftSlate.pyw Trigger dispatch · commands.json Command definitions
Components 18
Input and replacement
- System input capture
SwiftSlate.pyw - Preceding text
SwiftSlate.pyw - Spinner feedback
SwiftSlate.pyw - Inline replacement
SwiftSlate.pyw
Command processing
- Trigger dispatch
SwiftSlate.pyw - Command definitions
commands.json - AI transformation
SwiftSlate.pyw - Local replacers
SwiftSlate.pyw - Clipboard commands
SwiftSlate.pyw - Undo replacement
SwiftSlate.pyw
Providers and state
- API key rotation
SwiftSlate.pyw - Runtime configuration
- Hot reload
SwiftSlate.pyw
Other components
- User
- Target app
- AI provider endpoint
- Public IP service
- System clipboard
Connections 24
- User → Target app: types into
README.md - Target app → System input capture: provides system input
README.md - System input capture → Trigger dispatch: detects trigger
README.md - Trigger dispatch → Preceding text: selects preceding text
README.md - Trigger dispatch → Command definitions: resolves commands
README.md - Trigger dispatch → Spinner feedback: shows progress
README.md - Trigger dispatch → AI transformation: dispatches AI command
README.md - Trigger dispatch → Local replacers: dispatches replacer
README.md - Trigger dispatch → Clipboard commands: dispatches clipboard command
README.md - Trigger dispatch → Undo replacement: dispatches undo
README.md - AI transformation → API key rotation: obtains API key
README.md - API key rotation → Runtime configuration: reads configured keys
README.md - AI transformation → AI provider endpoint: sends text for transformation
README.md - AI provider endpoint → AI transformation: returns transformed text
README.md - Local replacers → Public IP service: looks up public IP
README.md - Clipboard commands → System clipboard: uses fallback clipboard
README.md - AI transformation → Inline replacement: returns transformed text
README.md - Local replacers → Inline replacement: returns replacement text
README.md - Inline replacement → Target app: replaces inline text
README.md - Undo replacement → Inline replacement: restores prior text
README.md - User → Runtime configuration: edits settings
README.md - User → Command definitions: edits commands
README.md - Hot reload → Runtime configuration: watches for changes
README.md - Hot reload → Command definitions: watches for changes
README.md