{"id":30207622,"url":"https://github.com/nstechbytes/wingeometery","last_synced_at":"2026-02-28T08:10:11.038Z","repository":{"id":300782569,"uuid":"984500994","full_name":"NSTechBytes/WinGeometery","owner":"NSTechBytes","description":"Get window geometry for a window title","archived":false,"fork":false,"pushed_at":"2025-05-16T03:30:08.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T18:20:38.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NSTechBytes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-16T03:19:47.000Z","updated_at":"2025-05-16T03:29:43.000Z","dependencies_parsed_at":"2025-06-23T15:53:48.730Z","dependency_job_id":"71bb97b7-199e-4092-bc8d-83f4d188bc00","html_url":"https://github.com/NSTechBytes/WinGeometery","commit_stats":null,"previous_names":["nstechbytes/wingeometery"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/NSTechBytes/WinGeometery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2FWinGeometery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2FWinGeometery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2FWinGeometery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2FWinGeometery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NSTechBytes","download_url":"https://codeload.github.com/NSTechBytes/WinGeometery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSTechBytes%2FWinGeometery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29928270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-13T16:11:55.666Z","updated_at":"2026-02-28T08:10:11.029Z","avatar_url":"https://github.com/NSTechBytes.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WinGeometry\n\n**WinGeometry** is a lightweight Node.js module that retrieves the screen position and size of a window based on its title (INI path or window name), using a native Windows executable.\n\n\u003e ⚠️ Works only on **Windows** systems.\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install win-geometry\n````\n\n---\n\n## 🛠️ Usage\n\n```js\nconst { getWindowGeometry } = require('win-geometry');\n\ngetWindowGeometry('window-title')\n  .then(({ x, y, width, height }) =\u003e {\n    console.log('Window Geometry:', { x, y, width, height });\n  })\n  .catch(err =\u003e {\n    console.error('Error:', err.message);\n  });\n```\n\n---\n\n## 📋 Output Format\n\nIf the window is found, the function returns a Promise that resolves to an object:\n\n```js\n{\n  x: Number,\n  y: Number,\n  width: Number,\n  height: Number\n}\n```\n\nIf the window is not found or an error occurs, the Promise is rejected with an appropriate error message.\n\n---\n\n## 🧱 Native Dependency\n\nThis module depends on a native executable called `WinGeometry.exe`, located in the `bin/` folder. This executable performs the actual window geometry retrieval using Windows API calls.\n\nMake sure `WinGeometry.exe` is included when packaging or publishing.\n\n---\n\n## 🧪 Example Output\n\n```bash\nGeometry: { x: 123, y: 456, width: 800, height: 600 }\n```\n\n---\n\n## 🚫 Limitations\n\n* Windows-only (due to native `.exe` dependency)\n* Requires the exact window title.\n\n---\n\n## 📃 License\n\nMIT © [nstechbytes](https://github.com/NSTechBytes)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstechbytes%2Fwingeometery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstechbytes%2Fwingeometery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstechbytes%2Fwingeometery/lists"}