[HN Gopher] Show HN: Orange intelligence, an open source alterna...
       ___________________________________________________________________
        
       Show HN: Orange intelligence, an open source alternative to Apple
       Intelligence
        
       Hi HN! I'm excited to share Orange Intelligence, an open-source
       alternative to Apple Intelligence for macOS.  Orange Intelligence
       allows you to interact with any text on your macOS system in a more
       powerful and customizable way. It brings a floating text processor
       that integrates seamlessly with your workflow. Whether you're a
       developer, writer, or productivity enthusiast, this tool can boost
       your efficiency. Key Features:                   Floating Text
       Processor: Trigger a floating window by double-tapping the Option
       key to process selected text.         Run Any Python Function: From
       basic text manipulations to running large language models (LLM)
       like OpenAI or local LLaMA, you can execute any Python function on
       the fly.         Full Customization: Want to add your own functions
       or logic? Just write them in Python, and they'll appear in the
       floating window.       How does it work?                   Capture:
       Uses AppleScript to simulate a global Cmd+C and capture selected
       text from any active macOS app.         Process: A floating window
       pops up, letting you choose what to do with the text (run a
       function, format it, or apply an LLM).         Replace: After
       processing, the app returns focus to the original application and
       pastes the processed text back with a global Cmd+V.       Why open
       source?  I built this to overcome the limitations of Apple's
       proprietary tools, and I wanted to make it fully customizable and
       extendable. Orange Intelligence is built with Python and PyQt6, so
       it's easy to adapt, extend, and contribute to.  It's not just a
       text processor--it's a platform for building custom workflows,
       whether you want to automate simple tasks or integrate with complex
       AI systems.  If you're on macOS and you're interested in boosting
       your productivity with Python and AI, I'd love for you to try it
       out and give feedback: https://github.com/sharingan-no-
       kakashi/orange-intelligence.  I'm looking forward to your thoughts,
       ideas, and contributions. Thanks!
        
       Author : MexicanYoda
       Score  : 33 points
       Date   : 2025-01-26 11:02 UTC (11 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | Mystery-Machine wrote:
       | Careful before installing OS-wide application with a single git
       | commit, from someone with no public GitHub activity.
       | 
       | Speaking of the tool, would be great to be able to trigger the
       | action immediately by pressing a keyboard shortcut.
        
         | MexicanYoda wrote:
         | [Disclaimer: I am the author] I completely agree--I wouldn't
         | install it either without reviewing the code first! Thank you
         | for being the first person to provide feedback on my tool; I
         | really appreciate it.
         | 
         | Here's how it currently works:                   Press the
         | Option key twice.         A floating window appears.
         | Select the action you want to perform.         Press Enter--the
         | window closes, and the text is replaced.
         | 
         | Which part of this flow would you change?
        
       | whartung wrote:
       | How does this capture all of the keyboard events?
        
         | MexicanYoda wrote:
         | Using pynput (https://pypi.org/project/pynput/), it listens for
         | the option key being pressed twice, which triggers the opening
         | of a floating window.
         | 
         | This serves as a signal that the user wants to process the
         | highlighted text, prompting the floating window to open.
         | 
         | Once the floating window appears, the already-typed text in the
         | focused application is captured and processed.
        
       | sbarre wrote:
       | Poking around in the code, I don't see how this can be used with
       | OpenAI or other SaaS LLMs...
       | 
       | Is that part still WIP?
        
       ___________________________________________________________________
       (page generated 2025-01-26 23:00 UTC)