{"id":25678224,"url":"https://github.com/xupea/stateful-electron-window","last_synced_at":"2026-05-13T22:37:39.089Z","repository":{"id":216890193,"uuid":"742448126","full_name":"xupea/stateful-electron-window","owner":"xupea","description":"A library to store and restore window sizes and positions for your Electron app","archived":false,"fork":false,"pushed_at":"2024-03-14T03:18:29.000Z","size":146,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T15:48:25.013Z","etag":null,"topics":["electron","electron-window"],"latest_commit_sha":null,"homepage":"https://www.xupea.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xupea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-01-12T13:58:16.000Z","updated_at":"2024-09-02T15:45:45.000Z","dependencies_parsed_at":"2024-03-14T04:27:35.126Z","dependency_job_id":"9fa6d72e-2805-4d34-b5cc-37c38ad43f0a","html_url":"https://github.com/xupea/stateful-electron-window","commit_stats":null,"previous_names":["xupea/stateful-electron-window"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xupea/stateful-electron-window","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xupea%2Fstateful-electron-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xupea%2Fstateful-electron-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xupea%2Fstateful-electron-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xupea%2Fstateful-electron-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xupea","download_url":"https://codeload.github.com/xupea/stateful-electron-window/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xupea%2Fstateful-electron-window/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33003135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["electron","electron-window"],"created_at":"2025-02-24T15:38:49.802Z","updated_at":"2026-05-13T22:37:39.069Z","avatar_url":"https://github.com/xupea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stateful-electron-window\n\n[![Tests](https://github.com/xupea/stateful-electron-window/actions/workflows/tests.yml/badge.svg)](https://github.com/xupea/stateful-electron-window/actions/workflows/tests.yml)\n[![NPM version](https://badge.fury.io/js/stateful-electron-window.svg)](https://badge.fury.io/js/stateful-electron-window)\n[![Downloads](https://img.shields.io/npm/dw/stateful-electron-window)](https://img.shields.io/npm/dw/stateful-electron-window)\n\nA library to store and restore window sizes and positions for your Electron app\n\n## Installation\n\nInstall with [npm](https://npmjs.org/package/stateful-electron-window):\n\n    npm install stateful-electron-window\n\n## Usage\n\n```\nimport { StatefullBrowserWindow } from 'stateful-electron-window'\nconst mainWindow = new StatefullBrowserWindow({\n    width: 800,\n    height: 600,\n    webPreferences: {\n        preload: path.join(__dirname, 'preload.js')\n    },\n    supportMaximize: true\n})\n```\n\n## API\n\n#### new StatefullBrowserWindow(options)\n\nStatefullBrowserWindow extends BrowserWindow.\n\n##### options\n\n`configFilePath` - _String_\n\nThe path where the state file should be written to. Defaults to\n`app.getPath('userData')`\n\n`configFileName` - _String_\n\nThe name of file. Defaults to `window-state.json`. This is usefull if you want to support multiple windows.\n\n`supportMaximize` - _Boolean_\n\nShould we automatically maximize the window, if it was last closed\nmaximized. Defaults to `false`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxupea%2Fstateful-electron-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxupea%2Fstateful-electron-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxupea%2Fstateful-electron-window/lists"}