{"id":13753696,"url":"https://github.com/bilelmoussaoui/ashpd","last_synced_at":"2026-02-13T18:08:16.219Z","repository":{"id":37591704,"uuid":"289478027","full_name":"bilelmoussaoui/ashpd","owner":"bilelmoussaoui","description":"A Rust wrapper around XDG portals DBus interfaces","archived":false,"fork":false,"pushed_at":"2026-01-18T17:13:49.000Z","size":2652,"stargazers_count":316,"open_issues_count":11,"forks_count":60,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-19T01:16:49.950Z","etag":null,"topics":["flatpak","libportal","portals","rust","wrapper","xdg","zbus"],"latest_commit_sha":null,"homepage":"https://bilelmoussaoui.github.io/ashpd/ashpd/","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/bilelmoussaoui.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-22T11:49:15.000Z","updated_at":"2026-01-18T17:13:53.000Z","dependencies_parsed_at":"2026-01-18T19:04:11.715Z","dependency_job_id":null,"html_url":"https://github.com/bilelmoussaoui/ashpd","commit_stats":{"total_commits":741,"total_committers":22,"mean_commits":33.68181818181818,"dds":0.368421052631579,"last_synced_commit":"5ca58b633a9882995089d7a74e631d410e1e92b2"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/bilelmoussaoui/ashpd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilelmoussaoui%2Fashpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilelmoussaoui%2Fashpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilelmoussaoui%2Fashpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilelmoussaoui%2Fashpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bilelmoussaoui","download_url":"https://codeload.github.com/bilelmoussaoui/ashpd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilelmoussaoui%2Fashpd/sbom","scorecard":{"id":237962,"data":{"date":"2025-08-11","repo":{"name":"github.com/bilelmoussaoui/ashpd","commit":"3f9ccfc7488eadc87c1d58b1694c51b5d8aee440"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Maintained","score":10,"reason":"19 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":4,"reason":"Found 8/19 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CI.yml:1","Warn: no topLevel permission defined: .github/workflows/backend-demo-ci.yml:1","Warn: no topLevel permission defined: .github/workflows/demo-ci.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/docs.yml:10","Warn: no topLevel permission defined: .github/workflows/typos.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/backend-demo-ci.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/backend-demo-ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/demo-ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/demo-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/demo-ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/demo-ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/docs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/docs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/typos.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/typos.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/typos.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/bilelmoussaoui/ashpd/typos.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: ashpd-demo/hooks/pre-commit.hook:6","Info:   0 out of  14 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  21 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.5.0-demo not signed: https://api.github.com/repos/bilelmoussaoui/ashpd/releases/213463384","Warn: release artifact 0.5.0-demo does not have provenance: https://api.github.com/repos/bilelmoussaoui/ashpd/releases/213463384"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-rr8g-9fpq-6wmg","Warn: Project is vulnerable to: RUSTSEC-2025-0023","Warn: Project is vulnerable to: RUSTSEC-2024-0436"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T06:06:47.211Z","repository_id":37591704,"created_at":"2025-08-17T06:06:47.211Z","updated_at":"2025-08-17T06:06:47.211Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28630940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["flatpak","libportal","portals","rust","wrapper","xdg","zbus"],"created_at":"2024-08-03T09:01:27.644Z","updated_at":"2026-01-21T09:09:46.447Z","avatar_url":"https://github.com/bilelmoussaoui.png","language":"Rust","funding_links":[],"categories":["Rust","Libraries And Frameworks"],"sub_categories":["Rust"],"readme":"# ASHPD\n\n[![docs](https://docs.rs/ashpd/badge.svg)](https://docs.rs/ashpd/) [![crates.io](https://img.shields.io/crates/v/ashpd)](https://crates.io/crates/ashpd) ![CI](https://github.com/bilelmoussaoui/ashpd/workflows/CI/badge.svg)\n\nASHPD, acronym of Aperture Science Handheld Portal Device is a Rust \u0026 [zbus](https://github.com/z-galaxy/zbus) wrapper of\nthe XDG portals DBus interfaces. The library aims to provide an easy way to\ninteract with the various portals defined per the [specifications](https://flatpak.github.io/xdg-desktop-portal/docs/).\nIt provides an alternative to the C library [https://github.com/flatpak/libportal](https://github.com/flatpak/libportal)\n\n## Examples\n\nAsk the compositor to pick a color\n\n```rust,no_run\nuse ashpd::desktop::Color;\n\nasync fn run() -\u003e ashpd::Result\u003c()\u003e {\n    let color = Color::pick().send().await?.response()?;\n    println!(\"({}, {}, {})\", color.red(), color.green(), color.blue());\n    Ok(())\n}\n```\n\nStart a PipeWire stream from the user's camera\n\n```rust,no_run\nuse ashpd::desktop::camera::Camera;\n\npub async fn run() -\u003e ashpd::Result\u003c()\u003e {\n    let camera = Camera::new().await?;\n    if camera.is_present().await? {\n        camera.request_access().await?;\n        let remote_fd = camera.open_pipe_wire_remote().await?;\n        // pass the remote fd to GStreamer for example\n    }\n    Ok(())\n}\n```\n\n## Optional features\n\n| Feature | Description | Default |\n| ---     | ----------- | ------- |\n| tracing | Record various debug information using the `tracing` library | No |\n| tokio | Enable tokio runtime on zbus dependency | Yes |\n| async-io | Enable the use of the async-io crates, compatible with runtimes such smol or glib | No |\n| backend | *unstable* Enables APIs useful for writing portals implementations | No |\n| glib | Make all the enums derive `glib::Enum`. Flags are not supported yet | No |\n| gtk4 | Implement `From\u003cColor\u003e` for [`gdk4::RGBA`](https://gtk-rs.org/gtk4-rs/stable/latest/docs/gdk4/struct.RGBA.html) Provides `WindowIdentifier::from_native` that takes a [`IsA\u003cgtk4::Native\u003e`](https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/struct.Native.html) | No |\n| gtk4_wayland |Provides `WindowIdentifier::from_native` that takes a [`IsA\u003cgtk4::Native\u003e`](https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/struct.Native.html) with Wayland backend support only | No |\n| gtk4_x11 |Provides `WindowIdentifier::from_native` that takes a [`IsA\u003cgtk4::Native\u003e`](https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/struct.Native.html) with X11 backend support only | No |\n| pipewire | Provides `ashpd::desktop::camera::pipewire_streams` that helps you retrieve the various camera streams associated with the retrieved file descriptor| No |\n| raw_handle | Provides `WindowIdentifier::from_raw_handle` and `WindowIdentifier::as_raw_handle` for [raw-window-handle](https://lib.rs/crates/raw-window-handle) crate | No |\n| wayland | Provides `WindowIdentifier::from_wayland` for [wayland-client](https://lib.rs/crates/wayland-client) crate | No |\n| backend | Enables portal backend implementation supoport | No |\n\n## Demo\n\nThe library comes with a [demo](./demo/client) built using the [GTK 4 Rust bindings](https://gtk-rs.org/gtk4-rs) and previews most of the portals. It is meant as a test case for the portals (from a distributor perspective) and as a way for the developers to see which portals exists and how to integrate them into their application using ASHPD.\n\n\u003ca href=\"https://flathub.org/apps/details/com.belmoussaoui.ashpd.demo\"\u003e\n\u003cimg src=\"https://flathub.org/api/badge?svg\u0026locale=en\u0026light\" width=\"190px\" /\u003e\n\u003c/a\u003e\n\n## Backend demo\n\nThe library also comes with a [backend demo](./demo/backend/README.md) that exemplifies how to implement [a portal backend](https://flatpak.github.io/xdg-desktop-portal/docs/impl-dbus-interfaces.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilelmoussaoui%2Fashpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilelmoussaoui%2Fashpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilelmoussaoui%2Fashpd/lists"}