{"id":29090447,"url":"https://github.com/m0hanrajp/jsonite-daemon","last_synced_at":"2026-04-22T23:35:07.573Z","repository":{"id":301337681,"uuid":"1008881167","full_name":"M0hanrajp/jsonite-daemon","owner":"M0hanrajp","description":"D-Bus service that exposes configurable widget and calculator interfaces. It uses GDBus and JSON-GLib to interact with UI applications through structured JSON payloads.","archived":false,"fork":false,"pushed_at":"2025-06-26T10:28:19.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T11:19:01.586Z","etag":null,"topics":["dbus","dbus-service","glib","json"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/M0hanrajp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2025-06-26T08:32:25.000Z","updated_at":"2025-06-26T10:30:58.000Z","dependencies_parsed_at":"2025-06-26T18:45:53.718Z","dependency_job_id":null,"html_url":"https://github.com/M0hanrajp/jsonite-daemon","commit_stats":null,"previous_names":["m0hanrajp/jsonite-daemon"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/M0hanrajp/jsonite-daemon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0hanrajp%2Fjsonite-daemon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0hanrajp%2Fjsonite-daemon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0hanrajp%2Fjsonite-daemon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0hanrajp%2Fjsonite-daemon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/M0hanrajp","download_url":"https://codeload.github.com/M0hanrajp/jsonite-daemon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0hanrajp%2Fjsonite-daemon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32159959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"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":["dbus","dbus-service","glib","json"],"created_at":"2025-06-28T05:04:49.886Z","updated_at":"2026-04-22T23:35:07.556Z","avatar_url":"https://github.com/M0hanrajp.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e Jsonite Daemon\u003c/h1\u003e\n\n**Jsonite Daemon** is a lightweight D-Bus service built with GDBus and JSON-GLib. It provides a modular interface for UI-driven configuration and control of widget-based components using a structured JSON payload format.\n\n- The daemon provides two examples, calculator \u0026 [Konfabulator Widget](https://json.org/example.html#:~:text=%3Cwidget%3E-,%3Cdebug%3Eon%3C/debug%3E,-%3Cwindow%20title%3D%22Sample), please use `gdbus introspect` to check the methods and properties offered by the daemon.\n- _Currently the repository does not come with a UI application that interacts with daemon, `gdbus call` is used to test methods \u0026 properties_\n- _Sqlite database will be used in future to improve persistence_\n\n```bash\n+----------------------+        D-Bus       +-----------------------+\n|                      | \u003c----------------\u003e |                       |\n|   UI Application     |                    |    jsonite-daemon     |\n|                      |                    |  (GDBus + JSON-GLib)  |\n|                      | -----------------\u003e |                       |\n+----------------------+  signals \u0026 calls   +-----------------------+\n                                                       |   ^\n                                                       v   |\n                                                +-----------------+\n                                                | Persistence DB  |\n                                                |  (e.g. SQLite)  |\n                                                +-----------------+\n```\n### Features\n\n- **Modular D-Bus Interfaces**: Designed using introspection XML and `gdbus-codegen`.\n- **Widget Configuration**: Exposes properties and methods to get/set widget attributes (e.g. window size, image source, text content).\n- **Calculator Service**: Offers basic computation via a separate D-Bus interface.\n- **JSON Integration**: Uses `json-glib` to serialize and store widget state from UI applications.\n\n### Build\n```bash\n$ git clone https://github.com/M0hanrajp/jsonite-daemon.git\n$ cd \u003cproject directory\u003e\n$ mkdir -p build \u0026\u0026 cd build\n$ cmake ..\n$ make\n```\n### Examples\n\nRunning the application\n```bash\n~/jsonite-daemon$ ./jsonite-daemon\n[main]: g_main_loop_run is invoked\n[on_bus_acquired_handler]: Bus acquisition complete\n[on_bus_acquired_handler]: Methods are registered with dbus interface\n[on_name_acquired_handler]: Name acquisition complete, daemon active..\n```\n`gdbus call` method `create window` over `com.jsoniteDaemon.Konfabulator.Widget` interface\n```bash\n$ gdbus call --session \n             --dest com.jsoniteDaemon \n             --object-path /com/jsoniteDaemon \n             --method com.jsoniteDaemon.Konfabulator.Widget.CreateWindow \n             \"Sample Konfabulator Widget\" \"main_window\" 500 400\n```\nreflected in `./jsonite-daemon`'s `stdout`\n```bash\n[handle_create_window] update data in DB\n{\n  \"window\" : {\n    \"title\" : \"Sample Konfabulator Widget\",\n    \"name\" : \"main_window\",\n    \"width\" : 500,\n    \"height\" : 400\n  }\n}\n```\n`gdbus call` to add two numbers over `com.jsoniteDaemon.Calculator` interface\n```bash\ngdbus call --session \n           --dest com.jsoniteDaemon \n           --object-path /com/jsoniteDaemon \n           --method com.jsoniteDaemon.Calculator.Subtract \n           '{\"a\":10, \"b\":20}'\n```\nresponse\n```bash\n('{\"[handle_add_method] result\":30}',)\n```\n---\nThanks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0hanrajp%2Fjsonite-daemon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm0hanrajp%2Fjsonite-daemon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0hanrajp%2Fjsonite-daemon/lists"}