{"id":13800874,"url":"https://github.com/pevers/tauri-plugin-nosleep","last_synced_at":"2025-03-23T01:32:37.361Z","repository":{"id":57677576,"uuid":"489465369","full_name":"pevers/tauri-plugin-nosleep","owner":"pevers","description":"Tauri plugin to block the power save functionality in the OS","archived":false,"fork":false,"pushed_at":"2024-03-17T17:48:11.000Z","size":1752,"stargazers_count":11,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-19T05:01:43.705Z","etag":null,"topics":["caffeine","nosleep","powersaving","prevent-screen-lock","tauri-plugin"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/pevers.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}},"created_at":"2022-05-06T19:04:36.000Z","updated_at":"2024-06-18T09:12:43.598Z","dependencies_parsed_at":"2024-06-18T09:12:38.316Z","dependency_job_id":"f6c076b7-106d-4e01-84e1-83af6126de74","html_url":"https://github.com/pevers/tauri-plugin-nosleep","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"8a457abde96ddf7bb6f02c44355bac20fdba99be"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Ftauri-plugin-nosleep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Ftauri-plugin-nosleep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Ftauri-plugin-nosleep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Ftauri-plugin-nosleep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pevers","download_url":"https://codeload.github.com/pevers/tauri-plugin-nosleep/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221842135,"owners_count":16890114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["caffeine","nosleep","powersaving","prevent-screen-lock","tauri-plugin"],"created_at":"2024-08-04T00:01:17.204Z","updated_at":"2024-10-28T14:44:30.051Z","avatar_url":"https://github.com/pevers.png","language":"Rust","funding_links":[],"categories":["Development"],"sub_categories":["Plugins"],"readme":"# tauri-plugin-nosleep\n\n![Test](https://github.com/pevers/tauri-plugin-nosleep/workflows/Test/badge.svg)\n\nTauri plugin to block the power save functionality in the OS\n\n```rust\nfn main() {\n  tauri::Builder::default()\n    .plugin(tauri_plugin_nosleep::init())\n    .run(tauri::generate_context!())\n    .expect(\"failed to run app\");\n}\n```\n\nAdd the NPM package.\n\n```console\nnpm install tauri-plugin-nosleep-api\n# or\nyarn add tauri-plugin-nosleep-api\n```\n\nUse this within TS/JS.\n\n```js\nimport { block, NoSleepType, unblock } from 'tauri-plugin-nosleep-api'\nblock(NoSleepType.PreventUserIdleDisplaySleep);\n// To unblock whenever you are done\nunblock();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpevers%2Ftauri-plugin-nosleep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpevers%2Ftauri-plugin-nosleep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpevers%2Ftauri-plugin-nosleep/lists"}