frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: SpinWin – A macOS menu bar app to visually rotate or spin any window

https://github.com/alokdhir/spinwin
2•dbm5•5h ago
Hi HN! I built SpinWin, a native macOS menu bar utility that visually rotates any target app window by any angle, or puts it into a continuous rotation loop.

The Origin Story:

The impetus for this came when I was scrolling on my Mac and hit a video that asked the viewer to turn their screen upside down to see an optical illusion. Since I was on a desktop display rather than a phone, I couldn't just flip my device. When I went looking for a quick utility to rotate a single window, I was surprised to find nothing out there actually did it—so I decided to build one.

The Technical Challenge & Workaround:

macOS doesn't provide a public API to rotate another application’s window. Doing it "for real" requires private SkyLight calls (CGSSetWindowTransform) and turning off System Integrity Protection (SIP)—definitely not worth it.

To make it work safely on standard macOS, SpinWin "fakes" the effect:

Moves the target window off-screen via the Accessibility API so it keeps rendering without taking up desk space.

Captures its frame feed live using ScreenCaptureKit (SCStream + desktopIndependentWindow filter).

Renders the live stream inside a transparent, borderless overlay window at the original location using a CALayer transform for smooth rotation.

Current Tech Stack:

Built natively with Swift / SwiftUI using ScreenCaptureKit and Accessibility APIs.

Limitations:

The overlay is a live, non-interactive visual proxy (clicks aren't passed through to the real window underneath), and Exposé/Mission Control will still briefly show the unrotated hidden window off-screen.

The app is open-source, signed, and notarized.

Comments

dbm5•1h ago
SpinWin is an open source menu bar app to visually rotate any individual window. You can rotate / spin as many as you want one by one.

I was scrolling reels when one came on where the content creator suggested "turning the phone upside down" for a portion. I was sitting at my mac, and decided to see if I could find something that did this. To my surprise, nothing exists, so I decided to build it.

Turns out macOS doesn't provide any public API to do anything like this, so I wound up using the Accessibility API to move the target window offscreen, where it keeps rendering. Then we capture it's contents with ScreenCaptureKit, and display that on a transparent, borderless overlay window which has a CALayer to rotate it.

It's written in Swift, open source, MIT license, and signed/notarized.

Have fun - would love to hear your comments.

Show HN: I made some transistor animations

https://brandonli.net/semisim/animations
99•stunningllama•1d ago•10 comments

Show HN: Brolly, a plain-text weather forecast site

https://brolly.sh/forecast/RWFP2qW8
100•jsax•5h ago•32 comments

Show HN: Writemark, a dependency free web component for inline Markdown editing

14•_boffin_•2h ago•5 comments

Show HN: Minesweeper Raycasted

https://claude.ai/public/artifacts/725f961b-09dc-4a66-8dac-8fefeeb69a1f
12•franze•3h ago•9 comments

Show HN: GeoChess – open-source geography strategy game

https://geochess.org
4•spider-hand•5d ago•9 comments

Show HN: Yorishiro – a macOS terminal where AI agents live

https://github.com/sktkkoo/Yorishiro
25•hakumei•3d ago•6 comments

Show HN: Rudoc – a 4.5MB Rust document converter

https://github.com/asong56/rudoc
2•sideras56•1h ago•0 comments

Show HN: Awsmux – Multi-account AWS CLI, up to 5.4x faster, 7.4x fewer tokens

https://github.com/0hardik1/awsmux
6•0hardik1•3h ago•0 comments

Show HN: PeerTree an Biological Inspired Network

https://github.com/bitmonky/PeerTree
2•BorgIOS•2h ago•0 comments

Show HN: Working Async – The new wave of remote work is async-first

https://workingasync.io
5•Log007•5h ago•0 comments

Show HN: Open-source AI bookmark manager for busy people

https://github.com/rortan134/cache-app
2•gsmt•3h ago•2 comments

Show HN: I created a way to turn your GitHub contribution graph into a game

https://ykdojo.github.io/gh-commit-history/
2•ykev•3h ago•1 comments

Show HN: Tasku. Manage Tasks from the Terminal

https://github.com/tomdringer/tasku
2•nerimasoft•3h ago•0 comments

Show HN: Echo – Fable-level results at 1/3 the cost using open-weight models

467•adam_rida•2d ago•218 comments

Show HN: HN Glance – a visual way to read Hacker News

https://hnglance.com
3•valentinvieriu•3h ago•0 comments

Show HN: Pastport – Your iPhone Left an Airbnb

https://github.com/anupamchugh/pastport
3•anupamchugh•4h ago•0 comments

Show HN: Nore – Write in Notion, publish a production-ready blog

https://nore.sh/
2•heywitt•4h ago•0 comments

Show HN: I simulated closing the Strait of Hormuz on real oil trade data

https://globaloilnetwork.staffinganalytics.io/
241•eliotho•2d ago•120 comments

Show HN: I built a blind taste test for Claude and Codex designs

https://taste.rubenflamshepherd.com/
4•rubenflamshep•5h ago•0 comments

Show HN: Jargo, a Go port of Pipecat for building realtime voice agents

https://github.com/gojargo/jargo
10•fallais•10h ago•2 comments

Show HN: SpinWin – A macOS menu bar app to visually rotate or spin any window

https://github.com/alokdhir/spinwin
2•dbm5•5h ago•1 comments

Show HN: Palmier Pro – Open-source macOS video editor built for AI

https://github.com/palmier-io/palmier-pro
187•harrisontin•2d ago•37 comments

Show HN: Free mentor for learning programming languages, fast and efficient

https://github.com/KubiKDB/AI-Tools-For-Learning
3•superquizonline•6h ago•0 comments

Show HN: Less-pager-mini: What a cross-platform pager would be like

https://github.com/dawsonhuang0/Less-Pager-Mini
2•dawson0•7h ago•1 comments

Show HN: I built remembered checkout for Voice calls

https://ringup.dev/
5•atifnayeem•7h ago•2 comments

Show HN: Max Studio Tools – C++ DSP Modules for Max and Ableton Live

https://github.com/apresta/max-studio-tools
32•apresta•1d ago•0 comments

Show HN: Cygnus – A fast, lightweight self-hostable serverless runtime and PaaS

https://cygnus.run
7•ccheshirecat•10h ago•2 comments

Show HN: ActionRail, Runtime value/action grounding framework for AI agents

https://github.com/ToolJet/ActionRail/
2•oss-dev•2h ago•0 comments

Show HN: A CLI that spends a whole stage arguing your startup idea is wrong

https://github.com/jintukumardas/opportunity-engine
2•jintukumardas•8h ago•0 comments

Show HN: OneCLI – OSS credential gateway that keeps secrets out of AI agents

https://github.com/onecli/onecli
105•Jonathanfishner•2d ago•32 comments