Skip to content

haru-gitdev/safetype

Repository files navigation

Safetype

Ever accidentally sent an unfinished message while typing in a chat app or AI prompt?

Safetype puts an end to that frustration.

A floating text editor you can summon from anywhere with a global hotkey. Write your message in peace, then paste it into the previous app with a single keystroke. No more "Enter accidents."

Perfect for

  • Slack / Teams / Discord - Compose longer messages without pressure
  • ChatGPT / Claude - Refine your prompts before sending
  • Tiny input fields - Get a proper writing space for forms and comments

Features

  • ⌨️ Global Hotkey - Press Cmd+Ctrl+Space to summon from any app (customizable)
  • 📋 One-Action Paste - Cmd+Enter copies and pastes to the previous app
  • 📌 Always on Top - Never loses focus to other windows
  • Esc to Cancel - Changed your mind? Just close it
  • ⚙️ Background Mode - Closing the window hides it; the app keeps running in the background

Installation

macOS

  1. Download the latest .dmg from Releases
  2. Open the DMG and drag Safetype.app to your Applications folder
  3. If macOS shows "this app is damaged" or blocks the app, run this in Terminal:
    xattr -cr /Applications/Safetype.app
    This is normal for apps distributed outside the App Store without code signing.
  4. On first launch, grant Accessibility permission:
    • Go to System Settings > Privacy & Security > Accessibility
    • Add and enable Safetype.app

Build from Source

Prerequisites:

# Clone the repository
git clone https://github.com/haru-gitdev/safetype.git
cd safetype

# Install dependencies
bun install

# Run in development mode
bun run tauri dev

# Build for production
bun run tauri build

Usage

  1. Press Cmd+Ctrl+Space to open the editor
  2. Type your text
  3. Press Cmd+Enter or click "Paste" to send text to the previous app
  4. Press Esc to cancel

Keyboard Shortcuts

Shortcut Action
Cmd+Ctrl+Space Open/close the editor
Cmd+Enter Copy and paste to previous app
Esc Cancel and close

Tech Stack

Accessibility Permission (macOS)

This app requires Accessibility permission to:

  • Register global hotkeys
  • Simulate Cmd+Tab and Cmd+V keystrokes

Without this permission, the app cannot paste text into other applications.

Roadmap

  • Settings UI with customizable hotkeys
  • Windows support
  • Code signing and notarization
  • Homebrew Cask distribution

License

MIT License - see LICENSE for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A floating text editor triggered by global hotkey that automatically pastes into the previous app

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors