{"id":13712938,"url":"https://github.com/ziglibs/positron","last_synced_at":"2025-04-13T00:44:31.306Z","repository":{"id":50111724,"uuid":"391855638","full_name":"ziglibs/positron","owner":"ziglibs","description":"A web renderer frontend for zig applications","archived":false,"fork":false,"pushed_at":"2024-07-20T19:45:50.000Z","size":3474,"stargazers_count":120,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T00:44:23.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ziglibs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-08-02T07:36:52.000Z","updated_at":"2025-04-09T09:07:06.000Z","dependencies_parsed_at":"2024-12-16T15:40:29.194Z","dependency_job_id":"33b9b6a8-7d29-435f-ba79-c3a3fa7a336f","html_url":"https://github.com/ziglibs/positron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fpositron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fpositron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fpositron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziglibs%2Fpositron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziglibs","download_url":"https://codeload.github.com/ziglibs/positron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650419,"owners_count":21139672,"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":[],"created_at":"2024-08-02T23:01:24.878Z","updated_at":"2025-04-13T00:44:31.278Z","avatar_url":"https://github.com/ziglibs.png","language":"C++","readme":"# ⚛️ Positron\n\n![project logo](design/icon.svg)\n\nA Zig binding to the [webview](https://github.com/webview/webview) library. Make Zig applications with a nice HTML5 frontend a reality!\n\n![](screenshots/i3-login.png) ![](screenshots/windows-chat.png)\n\n## Usage\n\n```zig\n//! src/minimal.zig\n\nconst std = @import(\"std\");\nconst wv = @import(\"positron\");\n\npub fn main() !void {\n    const view = try wv.View.create(false, null);\n    defer view.destroy();\n\n    view.setTitle(\"Webview Example\");\n    view.setSize(480, 320, .none);\n\n    view.navigate(\"https://ziglang.org\");\n    view.run();\n}\n```\n\n```zig\n//! build.zig\n\nconst std = @import(\"std\");\nconst pkgs = @import(\".zpm/pkgs.zig\");\nconst Sdk = @import(\"Sdk.zig\");\n\npub fn build(b: *std.build.Builder) void {\n    const target = b.standardTargetOptions(.{});\n    const mode = b.standardReleaseOptions();\n\n    const exe = b.addExecutable(\"demo\", \"src/minimal.zig\");\n    exe.setTarget(target);\n    exe.setBuildMode(mode);\n\n    // Add and link the package.\n    exe.addPackage(Sdk.getPackage(\"positron\"));\n    Sdk.linkPositron(exe, null);\n\n    exe.install();\n}\n```\n\n## Example\n\nThe example is a small, two-view chat application that transfers data bidirectionally between backend and frontend.\n\nLog in with `ziggy`/`love` and you can send messages, no real server there though!\n\nYou can build the example with `zig build` and run it with `zig build run`.\n\n## Building\n\n### Linux\n\nInstall `gtk-3` and `webkit2gtk`, then invoke `zig build`.\n\n### Windows\n\nDownload [Edge Dev Channel](https://www.microsoftedgeinsider.com/download), then invoke `zig build`.\n\n### MacOS\n\nNo research was done for the support on MacOS. Try with `zig build`.\n\n## Contributing\n\nThis library is in a early state and is very WIP. Still, feel free to contribute with PRs, or use it. Just don't assume a stable API.","funding_links":[],"categories":["Libraries","Multimedia \u0026 Graphics"],"sub_categories":["GUI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglibs%2Fpositron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziglibs%2Fpositron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziglibs%2Fpositron/lists"}