5 ms·
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 https://github.com/sharingan-no-kakashi/orange-intelligence.
I’m looking forward to your thoughts, ideas, and contributions. Thanks!
- Mystery-Machine 2y agoCareful 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 2y ago[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?
- jdougan 2y agopress a third time to perform a default action or replay last action
- whartung 2y agoHow does this capture all of the keyboard events?
- MexicanYoda 2y agoUsing pynput (https://pypi.org/project/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 2y agoPoking around in the code, I don't see how this can be used with OpenAI or other SaaS LLMs... Is that part still WIP?
- MacsHeadroom 2y agoThey aren't Open Source, so I would not expect them to be supported. The point of this project appears to be to keep full control of your intelligence pipeline.
- deleted 2y ago[deleted]
- sbarre 2y agoI mean they claim to be in the write-up on this article. I don't really see anything that substantiates your statements here, but maybe I missed something.
- MacsHeadroom 2y agoOpenAI and SaaS LLMs aren't open source.* So they aren't supported because this project is to replace closed-source AI solutions. Apple Intelligence already uses OpenAI. If you want closed-source AI then just use Apple Intelligence.
- MexicanYoda 2y agoHi, thank you for checking out the project! The floating windows function processes all callable objects defined in the extensions package as text-handling functions. This repository provides the backbone structure that makes it all possible. Users only need to add their custom logic as a Python callable in the format (input_text: str, *kwargs) -> str anywhere within the extensions package! For example, implementing an OpenAI call is as simple as defining a function like this: https://github.com/sharingan-no-kakashi/orange-intelligence/blob/main/extensions/openai/init.py https://github.com/sharingan-no-kakashi/orange-intelligence/... The function should accept a string as input and return a string as output, containing the proper implementation (e.g., HTTP calls, prompts, etc.). It's straightforward and intentionally left minimal. Everyone is welcome to contribute, add their requirements, and customize the code to fit their specific needs with Orange Intelligence.
- rl3 2y agoNeat product. AI provided by the OS always creeps me out. No offense to oranges (they're indeed one of my favorite fruits), however I can't help but feel that the name constitutes some kind of oxymoron. I know oranges are technically inanimate objects, yet I'm still at a loss to explain such a feeling. Oh well.
- daveguy 2y agoMaybe because the phrase "comparing apples to oranges" is generally a defensive stance of the person making the argument? i.e. you can't imply that! It's like comparing apples to oranges! If Orange Computer, Inc created the Macintosh (okay, created the Cutie) in the 80s would you have the same reaction to "Apple Intelligence"?
- rl3 2y agoPotentially. I never thought of it like that; it's certainly a clever name.
- Terretta 2y agoIt's worth reading about the expense and effort Apple goes to to ensure your privacy, whether you're creeped out or not: https://security.apple.com/blog/private-cloud-compute/ https://security.apple.com/blog/private-cloud-compute/
- rl3 2y agoI have and actually find it very impressive. Herein lies the rub, however: Non-targetability. An attacker should not be able to attempt to compromise personal data that belongs to specific, targeted Private Cloud Compute users without attempting a broad compromise of the entire PCC system. The thing is, there's long been precedent for broad compromise: https://news.ycombinator.com/item?id=6641378 https://news.ycombinator.com/item?id=6641378 Further consider that a likely part of any broad compromise strategy is utilizing assets who may work at Apple. There's precedent for that one, too—at least in terms of unspecified US tech companies.