Skip to content

Repository files navigation

GPT Rewriter - Raycast Extension

A powerful AI-powered text rewriting and transformation tool for Raycast, featuring customizable prompts and support for multiple AI providers.

🚀 Quick Install

  1. Clone the repository:

    git clone https://github.com/alshimo/GPTRewriter.git
    cd GPTRewriter
  2. Install dependencies:

    npm install

    Or use the setup script: ./setup.sh (auto-installs Node.js if needed)

  3. Start development mode:

    npm run dev

    This automatically loads the extension in Raycast.

  4. Configure API keys:

    • Open Raycast → Type "Settings" (from GPT Rewriter)
    • Add your OpenAI API Key
    • Configure your preferred settings

Note: Keep npm run dev running while using the extension.

See INSTALL.md for detailed installation instructions.

Configuration

  1. Open Settings in the extension
  2. Add API keys:
  3. Choose your preferred AI provider and model

🎯 Features

  • Text Rewriting: Improve grammar and clarity
  • Workplace Rewriting: Optimize for Slack/tech chat
  • Translation: English, Turkish, Persian, and Spanish, including mixed Persian/English input
  • Formal Spanish: Use respectful “usted” language for elders and unfamiliar people
  • Summarization: Create concise summaries
  • Bullet Points: Convert text to organized lists
  • Custom Prompts: Create your own transformations
  • Multiple AI Providers: OpenAI and OpenRouter support
  • Current Models: GPT-5.6, GPT-5.4, DeepSeek V4, Qwen 3.7, Gemini 3.6, Claude 5, GLM 5.2, and Grok 4.5
  • Voice to Text: Transcribe common audio-file formats with OpenAI

📁 Project Structure

├── src/
│   ├── lib/
│   │   ├── ai.ts              # Prompts and provider clients
│   │   ├── run-command.ts     # Shared shortcut command flow
│   │   └── translation-display.tsx
│   ├── rewrite.tsx            # Text rewriting command
│   ├── workplace.tsx          # Workplace rewriting command
│   ├── translate-*.tsx        # Translation commands and displays
│   ├── summarize.tsx          # Summarization command
│   ├── bullets.tsx            # Bullet points command
│   ├── custom.tsx             # Custom prompts command
│   └── settings.tsx           # Settings command
├── package.json               # Extension configuration
├── tsconfig.json              # TypeScript config
├── setup.sh                   # Development setup script
└── EXTENSION_README.md        # Detailed documentation

🔧 Development

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Run linter
npm run lint

# Run typecheck, lint, and production build
npm run check

# Reapply the shared model catalog to every command selector
npm run sync-models

# Publish to Raycast store
npm run publish

📖 Documentation

🤝 Contributing

Contributions are welcome! This repository uses a fork-based workflow.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Commit your changes (git commit -m 'Add some amazing feature')
  5. Push to your fork (git push origin feature/amazing-feature)
  6. Open a Pull Request

See CONTRIBUTING.md for detailed guidelines.

📄 License

MIT License

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages