{"id":13587178,"url":"https://github.com/quadrupleslap/scrap","last_synced_at":"2025-05-15T05:07:38.623Z","repository":{"id":39749059,"uuid":"93951272","full_name":"quadrupleslap/scrap","owner":"quadrupleslap","description":"📸 Screen capture made easy!","archived":false,"fork":false,"pushed_at":"2021-05-16T14:20:52.000Z","size":53,"stargazers_count":620,"open_issues_count":29,"forks_count":70,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-05T07:55:25.110Z","etag":null,"topics":["capture","cross-platform","nonblocking","rust","screen"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/scrap","language":"Rust","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/quadrupleslap.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}},"created_at":"2017-06-10T16:21:13.000Z","updated_at":"2025-05-04T12:40:40.000Z","dependencies_parsed_at":"2022-09-20T10:15:25.700Z","dependency_job_id":null,"html_url":"https://github.com/quadrupleslap/scrap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadrupleslap%2Fscrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadrupleslap%2Fscrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadrupleslap%2Fscrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quadrupleslap%2Fscrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quadrupleslap","download_url":"https://codeload.github.com/quadrupleslap/scrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276447,"owners_count":22043867,"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":["capture","cross-platform","nonblocking","rust","screen"],"created_at":"2024-08-01T15:06:04.164Z","updated_at":"2025-05-15T05:07:33.612Z","avatar_url":"https://github.com/quadrupleslap.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# scrap\n\nScrap records your screen! At least it does if you're on Windows, macOS, or Linux.\n\n## Usage\n\n```toml\n[dependencies]\nscrap = \"0.5\"\n```\n\nIts API is as simple as it gets!\n\n```rust\nstruct Display; /// A screen.\nstruct Frame; /// An array of the pixels that were on-screen.\nstruct Capturer; /// A recording instance.\n\nimpl Capturer {\n    /// Begin recording.\n    pub fn new(display: Display) -\u003e io::Result\u003cCapturer\u003e;\n\n    /// Try to get a frame.\n    /// Returns WouldBlock if it's not ready yet.\n    pub fn frame\u003c'a\u003e(\u0026'a mut self) -\u003e io::Result\u003cFrame\u003c'a\u003e\u003e;\n\n    pub fn width(\u0026self) -\u003e usize;\n    pub fn height(\u0026self) -\u003e usize;\n}\n\nimpl Display {\n    /// The primary screen.\n    pub fn primary() -\u003e io::Result\u003cDisplay\u003e;\n\n    /// All the screens.\n    pub fn all() -\u003e io::Result\u003cVec\u003cDisplay\u003e\u003e;\n\n    pub fn width(\u0026self) -\u003e usize;\n    pub fn height(\u0026self) -\u003e usize;\n}\n\nimpl\u003c'a\u003e ops::Deref for Frame\u003c'a\u003e {\n    /// A frame is just an array of bytes.\n    type Target = [u8];\n}\n```\n\n## The Frame Format\n\n- The frame format is guaranteed to be **packed BGRA**.\n- The width and height are guaranteed to remain constant.\n- The stride might be greater than the width, and it may also vary between frames.\n\n## System Requirements\n\nOS      | Minimum Requirements\n--------|---------------------\nmacOS   | macOS 10.8\nLinux   | XCB + SHM + RandR\nWindows | DirectX 11.1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquadrupleslap%2Fscrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquadrupleslap%2Fscrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquadrupleslap%2Fscrap/lists"}