{"id":15099902,"url":"https://github.com/dgv/clipboard","last_synced_at":"2026-01-06T23:05:21.918Z","repository":{"id":253700254,"uuid":"816043639","full_name":"dgv/clipboard","owner":"dgv","description":"multiplatform clipboard for zig","archived":false,"fork":false,"pushed_at":"2024-11-08T02:58:21.000Z","size":2366,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T11:18:41.559Z","etag":null,"topics":["clipboard","linux","macos","multiplatform","windows","zig","zig-package","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/dgv.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":"2024-06-16T22:46:36.000Z","updated_at":"2024-12-31T05:48:57.000Z","dependencies_parsed_at":"2024-09-10T06:26:25.577Z","dependency_job_id":"37b335d1-a3fa-47a7-aada-6b55290d9671","html_url":"https://github.com/dgv/clipboard","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"1bd729259b2218d7b8d313f8005027c418b93122"},"previous_names":["dgv/clipboard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgv%2Fclipboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgv%2Fclipboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgv%2Fclipboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgv%2Fclipboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgv","download_url":"https://codeload.github.com/dgv/clipboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245858879,"owners_count":20684057,"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":["clipboard","linux","macos","multiplatform","windows","zig","zig-package","ziglang"],"created_at":"2024-09-25T17:40:37.032Z","updated_at":"2026-01-06T23:05:21.912Z","avatar_url":"https://github.com/dgv.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clipboard\n[![zig version](https://img.shields.io/badge/0.15.1-orange?style=flat\u0026logo=zig\u0026label=Zig\u0026color=%23eba742)](https://ziglang.org/download/)\n[![zig doc](https://img.shields.io/badge/zigdoc%20-pages-orange?color=%23eba742)](https://dgv.dev.br/clipboard/)\n[![reference Zig](https://img.shields.io/badge/deps%20-0-orange?color=%23eba742)](https://github.com/dgv/clipboard/blob/main/build.zig.zon)\n[![0 dependencies!](https://0dependencies.dev/0dependencies.svg)](https://0dependencies.dev)\n[![build](https://github.com/dgv/clipboard/actions/workflows/build.yml/badge.svg)](https://github.com/dgv/clipboard/actions/workflows/build.yml)\n[![License: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nProvide copying and pasting text (UTF-8) to the clipboard for Zig.\n\n### platform support\n- MacOS\n- Linux, Unix (requires 'xclip' or 'xsel' command to be installed)\n- Windows\n\n### usage\n#### install\n```\nzig fetch --save https://github.com/dgv/clipboard/archive/refs/heads/main.zip\n```\nor specific version\n```\nzig fetch --save \"git+https://github.com/dgv/clipboard?ref=v0.14.1\"\n```\n\n#### import (build.zig)\n```zig\n...\nexe.root_module.addImport(\"clipboard\", b.dependency(\"clipboard\", .{}).module(\"clipboard\"));\nb.installArtifact(exe);\n```\n\n#### sample\n```zig\nconst clipboard = @import(\"clipboard\");\nconst std = @import(\"std\");\n\npub fn main() !void {\n    try clipboard.write(\"Zig ⚡\");\n    std.debug.print(\"{s}\\n\", .{clipboard.read() catch \"\"});\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgv%2Fclipboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgv%2Fclipboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgv%2Fclipboard/lists"}