{"id":16192206,"url":"https://github.com/cretz/go-scrap","last_synced_at":"2025-03-19T04:30:21.851Z","repository":{"id":139465567,"uuid":"169681429","full_name":"cretz/go-scrap","owner":"cretz","description":"Go library to capture screen pixels for screenshots or screen recording","archived":false,"fork":false,"pushed_at":"2020-03-12T19:42:26.000Z","size":19,"stargazers_count":86,"open_issues_count":2,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T03:21:47.287Z","etag":null,"topics":["golang","screen-capture","screenshot"],"latest_commit_sha":null,"homepage":"","language":"Go","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/cretz.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":"2019-02-08T03:49:19.000Z","updated_at":"2025-01-15T22:57:58.000Z","dependencies_parsed_at":"2024-06-19T00:24:06.723Z","dependency_job_id":"23c1e0b0-e21d-442e-b4ac-52812facbda2","html_url":"https://github.com/cretz/go-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/cretz%2Fgo-scrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cretz%2Fgo-scrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cretz%2Fgo-scrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cretz%2Fgo-scrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cretz","download_url":"https://codeload.github.com/cretz/go-scrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244357207,"owners_count":20440292,"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":["golang","screen-capture","screenshot"],"created_at":"2024-10-10T08:09:18.457Z","updated_at":"2025-03-19T04:30:21.336Z","avatar_url":"https://github.com/cretz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-scrap [![GoDoc](https://godoc.org/github.com/cretz/go-scrap?status.svg)](https://godoc.org/github.com/cretz/go-scrap)\n\ngo-scrap is a Go wrapper around the Rust [scrap](https://github.com/quadrupleslap/scrap) library. It supports reasonably\nfast capturing of raw screen pixels. The library dependency is only at compile time and statically compiled into the\nbinary. It works on Windows, Linux, and macOS.\n\n## Building\n\nObtain the library, e.g. use `go get` with `-d` to not install yet:\n\n    go get -d github.com/cretz/go-scrap\n\nNow, the Rust subproject `scrap-sys` must be compiled which is glue between the Go library and the Rust library. With\nRust installed, this can is done by running the following in the `scrap-sys/` subdirectory:\n\n    cargo build --release\n\nNote: On Windows this must use the same `gcc` that Cgo would. Go does not support MSVC-compiled libraries\n[yet](https://github.com/golang/go/issues/20982). The easiest way to ensure this is with `rustup` by running\n`rustup default stable-x86_64-pc-windows-gnu` before building.\n\nNote: On Linux this needs the X11 XCB libraries with the Shm and RandR extensions. On Ubuntu (18.04+ since RandR must\nbe \u003e= 1.12) they are packages named `libx11-xcb-dev`, `libxcb-shm0-dev`, and `libxcb-randr0-dev` respectively.\n\nNow that the dependency is built, the library can be built. For example, take a screenshot:\n\n    go run ./example/screenshot\n\nSee the [Godoc](https://godoc.org/github.com/cretz/go-scrap) for more documentation and examples.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcretz%2Fgo-scrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcretz%2Fgo-scrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcretz%2Fgo-scrap/lists"}