{"id":20461916,"url":"https://github.com/obedm503/solid-nodegui","last_synced_at":"2025-07-17T07:06:49.254Z","repository":{"id":232857114,"uuid":"785002048","full_name":"obedm503/solid-nodegui","owner":"obedm503","description":"An experimental Solidjs nodegui renderer for Qt desktop applications","archived":false,"fork":false,"pushed_at":"2024-04-11T02:36:13.000Z","size":192,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T06:29:41.242Z","etag":null,"topics":["desktop-application","electron","native","node","nodegui","qt","qt6","solid","solidjs","tauri"],"latest_commit_sha":null,"homepage":"https://x.com/obed__miranda/status/1777773612084166738","language":"TypeScript","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/obedm503.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}},"created_at":"2024-04-11T01:45:00.000Z","updated_at":"2024-12-25T20:44:19.000Z","dependencies_parsed_at":"2024-04-11T23:05:00.453Z","dependency_job_id":"25eee35a-2bf1-4052-9898-7c39ca5f7417","html_url":"https://github.com/obedm503/solid-nodegui","commit_stats":null,"previous_names":["obedm503/solid-nodegui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/obedm503/solid-nodegui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obedm503%2Fsolid-nodegui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obedm503%2Fsolid-nodegui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obedm503%2Fsolid-nodegui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obedm503%2Fsolid-nodegui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obedm503","download_url":"https://codeload.github.com/obedm503/solid-nodegui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obedm503%2Fsolid-nodegui/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265575509,"owners_count":23790780,"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":["desktop-application","electron","native","node","nodegui","qt","qt6","solid","solidjs","tauri"],"created_at":"2024-11-15T12:29:02.069Z","updated_at":"2025-07-17T07:06:49.214Z","avatar_url":"https://github.com/obedm503.png","language":"TypeScript","readme":"# solid-nodegui\n\nA solidjs renderer for [NodeGui](https://nodegui.org/).\n\nThis is just a proof-of-concept with just some Qt widgets implemented and flex layout powered by facebook's [Yoga](https://github.com/facebook/yoga) layout engine (the same one used by `react-native`).\n\nThis shows just how simple it would be to create a `solid-native` renderer. That runs right on top of a native renderer like Qt.\n\n---\n\nMost nodegui renderers implement `react-native`-style components like `view`, `text`, and `button`. `solid-nodegui` stays close to Qt and nodegui and simply wraps existing widgets in solid components.\n\nThere is no event delegation and events are attached to the specific widget, `solid-nodegui` follows solid's style with `on:*` prop style. `QPushButton`'s click event is `clicked` so `solid-nodegui`'s is `on:clicked`.\n\nWidgets and their solid wrappers are registered in the `WidgetRegistry`. `solid-nodegui` delegates widget-specific work to the registry making it easily extensible. See below.\n\n## Set up\n\nRun `npm install` to download and install the dependencies.\n\n## Building\n\n### Build `solid-nodegui`\n\n```\ncd packages/solid-nodegui \u0026\u0026 npm run build\n```\n\n### Build the calculator app\n\n`npm run build` will build the code in `src` and produce a bundle file in `dist`.\n\n```\ncd packages/calculator \u0026\u0026 npm run build\n```\n\n### Running the calculator app\n\n`npm run run` will run the bundled application. Note, you will have to build it first.\n\n### Packaging the calculator app\n\n`npm run package` will run [Jam Pack NodeGui](https://github.com/sedwards2009/jam-pack-nodegui) with a configuration file to create the relevant packages for the current operating system this is running on. The output appears in `tmp-jam-pack-nodegui/jam-pack-nodegui-work/`.\n\n## Configured Scripts\n\n- `build` - Runs all of the build steps.\n- `run` - Runs the application from the `dist` folder.\n- `package` - Build packages for the application. The output appears in `tmp-jam-pack-nodegui/jam-pack-nodegui-work/`\n\n## Widget wrappers\n\n```ts\nimport * as gui from \"@nodegui/nodegui\";\nimport {\n  EventProps,\n  WidgetEventProps,\n  handleEvents,\n  WidgetRegistry,\n} from \"solid-nodegui\";\n\n// make the wrapper\nfunction QDateTimeEdit(\n  props: {\n    id?: string;\n    dateTime: gui.QDateTime;\n  } \u0026 EventProps\u003cgui.QDateTimeEditSignals\u003e \u0026\n    WidgetEventProps\n) {\n  let node: gui.QDateTimeEdit;\n  // events are automatically handled\n  const local = handleEvents(() =\u003e node, props);\n  return \u003cq-date-time-edit ref={node} {...local} /\u003e;\n}\n\n// register the widget\nWidgetRegistry.registerWidget(\"q-date-time-edit\", {\n  widget: gui.QDateTimeEdit,\n  setProperty(node, name, value, prev) {\n    if (name === \"dateTime\") {\n      node.setDateTime(value as gui.QDateTime);\n      return true;\n    }\n  },\n});\n\n// render it\nconst dateTime = new gui.QDateTime();\n\u003cQDateTimeEdit\n  dateTime={dateTime}\n  on:dateTimeChanged={(qDateTime) =\u003e {\n    console.log(\n      qDateTime.date().year(),\n      qDateTime.date().month(),\n      qDateTime.date().day(),\n      qDateTime.time().hour(),\n      qDateTime.time().minute(),\n      qDateTime.time().second()\n    );\n  }}\n/\u003e;\n```\n\nFinal result here rendered under the calculator\n\n![custom widget](./custom-widget.png)\n\n---\n\nRepository based on https://github.com/sedwards2009/nodegui-simple-starter\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobedm503%2Fsolid-nodegui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobedm503%2Fsolid-nodegui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobedm503%2Fsolid-nodegui/lists"}