GitShow/sindresorhus/get-windows
sindresorhus

get-windows

Get metadata about the active window and open windows (title, id, bounds, owner, etc)

by sindresorhus
active-windowjavascriptnode-modulenodejsnpm-package
Star on GitHubForknpm

JavaScript

917 stars194 forks36 contributorsQuiet · 5mo agoSince 2016v9.3.0MIT

Meet the team

See all 36 on GitHub →
sindresorhus
sindresorhus103 contributions
keheliya
keheliya6 contributions
wrgoto
wrgoto6 contributions
miniben-90
miniben-904 contributions
tiangolo
tiangolo3 contributions
kentbetita
kentbetita2 contributions
albinekb
albinekb1 contribution
ahallicks
ahallicks1 contribution

Languages

View on GitHub →
JavaScript44.6%
C++28.6%
Swift19.3%
TypeScript4.6%
Python2.9%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · Last activity 5mo ago
See all on GitHub →
enzon19
Not working on Windows?OpenIssue

Everything I try returns I'm on Windows 11 and node v24.12.0

enzon19 · 2mo ago
sumit3001
High battery usage and multiple threads on macOS 15+ when polling window informationOpenIssue

I’m experiencing high battery usage on macOS 15+ when retrieving window information at regular intervals. In Activity Monitor, I see multiple main threads, which might be causing the issue. Has anyone else encountered this? If so, did you find a workaround or solution? Thanks!

sumit3001 · 4mo ago
braaar
Accessibility Access prompt shows every time I use `active-win`on Mac OS in electron appOpenIssue

This is perhaps related to but not identical to https://github.com/sindresorhus/active-win/issues/88. I don't want to opt out of access dialogs altogether, I just want it to show up once and then recognise the access. The problem Every time (or ) is called, this prompt shows up, even though I have added the permissions in system preferences: !Screenshot 2022-03-01 at 9 21 53 What I'm doing I am calling in a in an electron app built for MacOS with . Here's my app: This runs fine in the terminal in VSCode (which asked for the permission once, and from there on it was fine). Attempts to figure it out I've also tried using electron's , like so: When I run this, the app asks for permission (for screen recording) once and when it has been granted in the system preferences the prompt does not show up again. So it seem to me that macOS is able to identify my app and give it permissions in that case, at least. I've tried: Fiddling around with various build parameters to make sure all the fields such as bundle ID are set up to uniquely ID the app correctly (no effect) Asking for accessibility permission up front using https://github.com/karaggeorge/macos-accessibility-permissions setting up entitlements.mac.plist I have not tried: Setting up code signing for my app forking and modifying the swift-code to bypass the prompt (as seen in #67) Additional info Here's my build config: entitlements.mac.plist:

braaar · 5mo ago

Recent fixes

View closed PRs →
adityahackerrank
chore: fix memory leak opened as traceMergedPR

Issue : On longer running process for getting the windows specifically for Windows 10 . I haven't tried on other systems, but it was filling up the kernel object storage leaving the logs writers behind which it leads to crashing with an error unhandled and error. Fix : closing out has fixed the unhandled processes window, which clears up the storage a the kernel object storage.

adityahackerrank · 5mo ago
RedSparr0w
`getOpenWindows` does not return fullscreen windowsClosedIssue

When running the method, any fullscreen windows are excluded from the returned list.

RedSparr0w · 5mo ago
mrcolak
fix: Improve window filtering logic to include fullscreen applicationsMergedPR

Fix for the the issue #161 Cause Fullscreen apps often do not have a caption/title bar () and are implemented as popup windows (). The old filter dropped these windows from results even though they are valid top-level visible windows. What changed now includes fullscreen apps that were previously missing, while preserving existing filters for tool windows and child windows. Updated in main.cc. Added style checks: Replaced the strict caption requirement with:

mrcolak · 5mo ago
Structured data for AI agents

Repository: sindresorhus/get-windows. Description: Get metadata about the active window and open windows (title, id, bounds, owner, etc) Stars: 917, Forks: 194. Primary language: JavaScript. Languages: JavaScript (44.6%), C++ (28.6%), Swift (19.3%), TypeScript (4.6%), Python (2.9%). License: MIT. Topics: active-window, javascript, node-module, nodejs, npm-package. Latest release: v9.3.0 (5mo ago). Open PRs: 0, open issues: 44. Last activity: 5mo ago. Community health: 71%. Top contributors: sindresorhus, keheliya, wrgoto, miniben-90, tiangolo, kentbetita, albinekb, ahallicks, ambarvm, binyamin and others.

·@ofershap

Replace github.com with gitshow.dev