Show HN: Orange intelligence, an open source alternative to Apple Intelligence (github.com)
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!
19 comments
[ 25.8 ms ] story [ 1135 ms ] threadSpeaking of the tool, would be great to be able to trigger the action immediately by pressing a keyboard shortcut.
Here’s how it currently works:
Which part of this flow would you change?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.
Is that part still WIP?
I don't really see anything that substantiates your statements here, but maybe I missed something.
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.
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/...
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.
Thank you for clarifying. Good luck with this project! I'll keep an eye on it and see how it evolves.
I've just introduced a super simple integration that uses OpenAI to generate jokes based on the <selected text> topic!
Of course, it can also be used to create more meaningful content.
I’d love to hear your suggestions or feedback on how to make this even more helpful!
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.
https://security.apple.com/blog/private-cloud-compute/
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
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.
https://www.bloomberg.com/news/features/2018-10-04/the-big-h...
https://www.bloomberg.com/features/2021-supermicro/