{"id":23699476,"url":"https://github.com/braheezy/ada-zig","last_synced_at":"2026-01-27T11:30:20.070Z","repository":{"id":270301018,"uuid":"909938903","full_name":"braheezy/ada-zig","owner":"braheezy","description":"Zig bindings for Ada URL library.","archived":false,"fork":false,"pushed_at":"2025-02-12T05:26:50.000Z","size":2931,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T06:40:07.447Z","etag":null,"topics":["zig"],"latest_commit_sha":null,"homepage":"https://braheezy.github.io/ada-zig/","language":"Zig","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/braheezy.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":"2024-12-30T05:30:29.000Z","updated_at":"2025-02-12T05:26:54.000Z","dependencies_parsed_at":"2024-12-30T06:37:03.216Z","dependency_job_id":"88ace721-4c74-4396-b8c0-9ced1d54fb07","html_url":"https://github.com/braheezy/ada-zig","commit_stats":null,"previous_names":["braheezy/ada-zig"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/braheezy%2Fada-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/braheezy%2Fada-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/braheezy%2Fada-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/braheezy%2Fada-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/braheezy","download_url":"https://codeload.github.com/braheezy/ada-zig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239774329,"owners_count":19694699,"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":["zig"],"created_at":"2024-12-30T08:11:22.836Z","updated_at":"2026-01-27T11:30:19.999Z","avatar_url":"https://github.com/braheezy.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ada-Zig\n[![docs](/assets/zig.svg)](https://braheezy.github.io/ada-zig)\n\n[Ada](https://github.com/ada-url/ada) is a fast and spec-compliant URL parser written in C++. Specification for URL parser can be found from the WHATWG website.\n\nThis project contains Zig language bindings. That means instead of linking the C library directly in your project and interacting with the C API, `zig-ada` does it for you, providing a thin wrapper for familiar Zig use.\n\n## Usage\nFirst, add to your `build.zig.zon`:\n```bash\nzig fetch --save git+https://github.com/braheezy/ada-zig#2.9.2\n```\n\nThen update your `build.zig`:\n\n```zig\nconst ada_dep = b.dependency(\"ada-zig\", .{});\nexe.root_module.addImport(\"ada\", ada_dep.module(\"ada\"));\n```\n\nFinally, in your source code:\n\n```zig\nconst ada = @import(\"ada\");\n\npub fn main() void {\n    const ada_url = try ada.Url.init(\"https://ziglang.org/\");\n\n    std.debug.print(ada_url.getProtocol());\n    // prints 'https'\n}\n```\n\n## Examples\n\nThe [Usage docs](https://github.com/ada-url/ada/tree/main?tab=readme-ov-file#usage) from the Ada library are applicable.\n\n```zig\nconst std = @import(\"std\");\n\nconst ada = @import(\"ada\");\n\npub fn main() !void {\n    const input_url = \"https://user:pass@127.0.0.1:8080/path?query=1#frag\";\n\n    const url = try ada.Url.init(input_url);\n    defer url.free();\n\n    std.debug.print(\"url.host type: {any}\\n\", .{url.getHostType()});\n}\n```\n\n## Development\nSee `zig build --list`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbraheezy%2Fada-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbraheezy%2Fada-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbraheezy%2Fada-zig/lists"}