{"id":47046891,"url":"https://github.com/nim-windowing/ybus","last_synced_at":"2026-04-04T14:11:11.042Z","repository":{"id":342946408,"uuid":"1171353931","full_name":"nim-windowing/ybus","owner":"nim-windowing","description":"A pure-Nim implementation of the D-Bus protocol, and some other goodies","archived":false,"fork":false,"pushed_at":"2026-03-08T05:10:25.000Z","size":257,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-27T00:40:05.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nim-windowing.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":"2026-03-03T06:14:38.000Z","updated_at":"2026-03-08T20:27:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nim-windowing/ybus","commit_stats":null,"previous_names":["nim-windowing/ybus"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nim-windowing/ybus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-windowing%2Fybus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-windowing%2Fybus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-windowing%2Fybus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-windowing%2Fybus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nim-windowing","download_url":"https://codeload.github.com/nim-windowing/ybus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nim-windowing%2Fybus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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":[],"created_at":"2026-03-12T02:00:21.062Z","updated_at":"2026-04-04T14:11:11.034Z","avatar_url":"https://github.com/nim-windowing.png","language":"Nim","funding_links":[],"categories":["D-Bus"],"sub_categories":[],"readme":"# ybus\nybus is an implementation of the D-Bus protocol in pure Nim. It is currently not suitable for real-world usage, but it's slowly getting there.\n\nAs expected, it relies on no external non-Nim dependencies.\n\n# roadmap\n- [X] System bus socket resolution\n- [X] Authentication machine\n- [X] Basic sync client with handshake\n- [X] Call methods on the bus\n- [ ] Programmer-friendly API to create interfaces and services on the bus\n- [X] **Writer**: Support for emitting all remaining header types\n- [ ] **Writer**: Support for emitting variants besides strings and object paths\n- [ ] **Reader**: Support for parsing some remaining header types\n- [ ] **Reader**: Support for parsing all remaining variant types\n- [X] Tool to convert protocol XML files to Nim wrappers\n- [ ] UNIX file descriptors support (for sharing of a FD between services)\n- [ ] `asyncdispatch` and `chronos` based asynchronous clients\n- [ ] Benchmarking ybus against implementations in other languages (`zbus` for Rust, `godbus` for Go, etc.)\n- [ ] More error-proofing (Possibly fuzzing the reader and variant parser? They don't use any pointer math so this will only catch logic bugs and OOB reads that'd cause defects)\n\n# distant / low-priority goals\n- [ ] Proper, tested big endian support\n- [ ] Abstract keys in system bus socket resolution. Most systems do not use this.\n\n# basic example\nybus' core (wire protocol reader and writer) is mostly written as pure, side-effect-free functions. The `unix_sync` client, as the name suggests, is a synchronous D-Bus client that uses UNIX sockets.\n\nHere is a basic example which connects to the system bus and queries the version of systemd running on the machine.\n```nim\nimport std/options\nimport pkg/ybus/client/unix_sync\n\nlet client = newBusClient()\nclient.connect()\n\ndebugEcho \"serial: \" \u0026 $client.serial\ndebugEcho \"unique name: \" \u0026 client.uniqueName\n\nlet resp = client.call(\n  path = \"/org/freedesktop/systemd1\",\n  iface = \"org.freedesktop.DBus.Properties\",\n  destination = \"org.freedesktop.systemd1\",\n  member = \"Get\",\n  arguments =\n    @[\n      Variant(kind: VariantKind.String, str: \"org.freedesktop.systemd1.Manager\"),\n      Variant(kind: VariantKind.String, str: \"Version\"),\n    ],\n  signature = \"ss\",\n)\necho \"systemd version \" \u0026 resp.get().body[0].str\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnim-windowing%2Fybus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnim-windowing%2Fybus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnim-windowing%2Fybus/lists"}