{"id":16138278,"url":"https://github.com/ziqi-yang/greetd_ipc","last_synced_at":"2026-01-22T13:48:04.930Z","repository":{"id":253627337,"uuid":"776644899","full_name":"Ziqi-Yang/greetd_ipc","owner":"Ziqi-Yang","description":"[mirror] Zig library for interacting with [greetd](https://sr.ht/~kennylevinsen/greetd/) ipc.","archived":false,"fork":false,"pushed_at":"2024-08-18T09:22:14.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T08:46:37.964Z","etag":null,"topics":["greetd","ipc","zig"],"latest_commit_sha":null,"homepage":"https://codeberg.org/meow_king/greetd_ipc","language":"Zig","has_issues":false,"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/Ziqi-Yang.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-03-24T04:20:05.000Z","updated_at":"2024-09-14T16:14:58.000Z","dependencies_parsed_at":"2024-08-18T10:26:35.434Z","dependency_job_id":"29232cbf-c57b-440b-9c36-d960e9fd4a72","html_url":"https://github.com/Ziqi-Yang/greetd_ipc","commit_stats":null,"previous_names":["ziqi-yang/greetd_ipc"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Ziqi-Yang/greetd_ipc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziqi-Yang%2Fgreetd_ipc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziqi-Yang%2Fgreetd_ipc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziqi-Yang%2Fgreetd_ipc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziqi-Yang%2Fgreetd_ipc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ziqi-Yang","download_url":"https://codeload.github.com/Ziqi-Yang/greetd_ipc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ziqi-Yang%2Fgreetd_ipc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["greetd","ipc","zig"],"created_at":"2024-10-09T23:33:29.334Z","updated_at":"2026-01-22T13:48:04.910Z","avatar_url":"https://github.com/Ziqi-Yang.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Greetd_IPC\n\n## Installation\n\nSupported Zig Version: `0.13`.\n\n``` bash\nzig fetch 'https://codeberg.org/meow_king/greetd_ipc/archive/v0.1.1.tar.gz' --save\n```\n\nThen you can add this dependency into `build.zig` file:\n\n``` zig\nconst dep = b.dependency(\"greetd_ipc\", .{ .target = target, .optimize = optimize });\nconst module = dep.module(\"greetd_ipc\");\nexe.root_module.addImport(\"greetd_ipc\", module);\n```\n\nFor other version of Zig, you can include `greetd-ipc.zig` file into\nyour source directory.\n\n## Usage\n\n``` zig\nconst std = @import(\"std\");\n\npub fn main() !void {\n    var gpa_impl = std.heap.GeneralPurposeAllocator(.{}){};\n    defer if (gpa_impl.deinit() == .leak) @panic(\"MEMORY LEAK\");\n    const gpa = gpa_impl.allocator();\n\n    const gipc: GreetdIPC = try GreetdIPC.new(null, gpa);\n    defer gipc.deinit();\n    const request: Request = .{ .create_session = .{ .username = \"user\"}};\n    try gipc.sendMsg(request);\n    const response = try gipc.readMsg();\n    std.debug.print(\"{s}\\n\", .{std.json.fmt(response, .{})});\n}\n```\n\n## Run Example\n\nBuild `fakegreet` from [greetd](https://git.sr.ht/~kennylevinsen/greetd)\nrepo.\n\n``` bash\nzig build -Dexample=examples/demo.zig run-example\nfakegreet ./zig-out/bin/demo\n```\n\nOr you can run the following command if you have\n[just](https://github.com/casey/just) installed.\n\n``` bash\njust run\n```\n\nNote `fakegreet` is a testing tool inside greetd's repo. see\n[source](https://git.sr.ht/~kennylevinsen/greetd/tree/master/item/fakegreet/src/main.rs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziqi-yang%2Fgreetd_ipc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziqi-yang%2Fgreetd_ipc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziqi-yang%2Fgreetd_ipc/lists"}