{"id":13728252,"url":"https://github.com/can-lehmann/owlkettle","last_synced_at":"2025-05-16T01:05:11.037Z","repository":{"id":41886463,"uuid":"467682278","full_name":"can-lehmann/owlkettle","owner":"can-lehmann","description":"A declarative user interface framework based on GTK 4","archived":false,"fork":false,"pushed_at":"2024-12-27T19:38:41.000Z","size":6126,"stargazers_count":397,"open_issues_count":18,"forks_count":13,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-08T12:04:36.194Z","etag":null,"topics":["declarative","declarative-ui","framework","gtk","gtk4","gui","nim","ui","user-interface"],"latest_commit_sha":null,"homepage":"https://can-lehmann.github.io/owlkettle/README","language":"Nim","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/can-lehmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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":"2022-03-08T21:32:09.000Z","updated_at":"2025-04-04T23:02:36.000Z","dependencies_parsed_at":"2023-02-19T13:15:45.894Z","dependency_job_id":"410d9dde-11e8-475f-b555-b95fd934aa83","html_url":"https://github.com/can-lehmann/owlkettle","commit_stats":{"total_commits":418,"total_committers":16,"mean_commits":26.125,"dds":"0.29425837320574166","last_synced_commit":"8028418f8e5d0b9fbd90def62b11a3810ddf4565"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-lehmann%2Fowlkettle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-lehmann%2Fowlkettle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-lehmann%2Fowlkettle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-lehmann%2Fowlkettle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/can-lehmann","download_url":"https://codeload.github.com/can-lehmann/owlkettle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254448579,"owners_count":22072764,"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":["declarative","declarative-ui","framework","gtk","gtk4","gui","nim","ui","user-interface"],"created_at":"2024-08-03T02:00:39.294Z","updated_at":"2025-05-16T01:05:06.027Z","avatar_url":"https://github.com/can-lehmann.png","language":"Nim","funding_links":[],"categories":["👓 Alternatives to the [Electron.js](https://electronjs.org) ⚛","User Interface","Libraries And Frameworks"],"sub_categories":["Nim","GUI"],"readme":"# Owlkettle\n*Freshly brewed user interfaces.*\n\nOwlkettle is a declarative user interface framework based on GTK.\nIt is written in Nim.\n\nHere is an example for a simple counter app. When you click on the \"+\" Button, the counter increments.\n\n```nim\nimport owlkettle\n\nviewable App:\n  counter: int\n\nmethod view(app: AppState): Widget =\n  result = gui:\n    Window:\n      title = \"Counter\"\n      defaultSize = (200, 60)\n\n      Box(orient = OrientX, margin = 12, spacing = 6):\n        Label(text = $app.counter)\n        Button {.expand: false.}:\n          text = \"+\"\n          style = [ButtonSuggested]\n          proc clicked() =\n            app.counter += 1\n\nbrew(gui(App()))\n```\n\nThe code above will result in the following application:\n\n\u003cimg alt=\"Counter Application\" src=\"docs/assets/introduction.png\" width=\"228px\"\u003e\n\nOwlkettle also supports building libadwaita apps.\nTo enable libadwaita, import `owlkettle/adw` and change the last line to `adw.brew(gui(App()))`.\n\n\u003cimg alt=\"Counter Application using Adwaita Stylesheet\" src=\"docs/assets/introduction_adwaita.png\" width=\"322px\"\u003e\n\n## Installation\n\nOwlkettle requires GTK 4 to be installed on your system.\nYou can install it by running:\n- `dnf install gtk4-devel libadwaita-devel` on Fedora\n- `apt install libgtk-4-dev libadwaita-1-dev` on Ubuntu\n- `pacman -S mingw-w64-x86_64-gtk4 mingw-w64-x86_64-libadwaita` on Windows' MSYS2\n  - [Checkout the installation docs](https://can-lehmann.github.io/owlkettle/docs/installation.html) for more information about the MSYS2 setup\n\n```bash\n$ nimble install owlkettle\n```\n\nCheck out [the installation guide](https://can-lehmann.github.io/owlkettle/docs/installation.html) for further instructions.\n\n## Documentation\n\nYou can find a reference of all widgets in [docs/widgets.md](https://github.com/can-lehmann/owlkettle/blob/main/docs/widgets.md).\n\nA tutorial for building a simple Todo application can be found [here](https://can-lehmann.github.io/owlkettle/docs/tutorial.html).\n\nAdditional examples can be found [here](https://can-lehmann.github.io/owlkettle/examples/README.html).\n\nA reference of all supported libadwaita widgets can be found in [docs/widgets_adwaita.md](https://github.com/can-lehmann/owlkettle/blob/main/docs/widgets_adwaita.md).\n\n\u003c!--\nIf you want to cross compile checkout [docs/cross_compiling.md](docs/cross_compiling.md).\n\nA guide for migrating from owlkettle 1.x.x to 2.0.0 [is available here](docs/migrating_1_to_2.md).\n--\u003e\n\n## License\n\nOwlkettle is licensed under the MIT license.\nSee `LICENSE.txt` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan-lehmann%2Fowlkettle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcan-lehmann%2Fowlkettle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan-lehmann%2Fowlkettle/lists"}