{"id":29190043,"url":"https://github.com/allyourcodebase/box2d","last_synced_at":"2025-07-01T23:33:06.964Z","repository":{"id":271341713,"uuid":"913122543","full_name":"allyourcodebase/box2d","owner":"allyourcodebase","description":"Box2D packaged for the Zig build system","archived":false,"fork":false,"pushed_at":"2025-01-07T06:07:33.000Z","size":5,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T00:54:45.807Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","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/allyourcodebase.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,"publiccode":null,"codemeta":null}},"created_at":"2025-01-07T04:36:32.000Z","updated_at":"2025-05-31T02:57:24.000Z","dependencies_parsed_at":"2025-01-07T06:20:33.762Z","dependency_job_id":"17c54413-7272-4ff6-954c-1267be74e831","html_url":"https://github.com/allyourcodebase/box2d","commit_stats":null,"previous_names":["allyourcodebase/box2d"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/allyourcodebase/box2d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Fbox2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Fbox2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Fbox2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Fbox2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allyourcodebase","download_url":"https://codeload.github.com/allyourcodebase/box2d/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Fbox2d/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263049938,"owners_count":23405737,"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":"2025-07-01T23:31:41.629Z","updated_at":"2025-07-01T23:33:06.956Z","avatar_url":"https://github.com/allyourcodebase.png","language":"Zig","readme":"# Box2D\n\nThis is the [Box2D](https://box2d.org/) physics engine packaged for the Zig build system.\n\n## Usage\n\nAdd the dependency to your build.zig.zon:\n\n```shell\nzig fetch --save git+https://github.com/allyourcodebase/box2d#main\n```\n\nUse the dependency in your build.zig:\n\n```zig\npub fn build(b: *std.Build) void {\n    const target = b.standardTargetOptions(.{});\n    const optimize = b.standardOptimizeOption(.{});\n\n    const box2d = b.dependency(\"box2d\", .{\n        .target = target,\n        .optimize = optimize,\n    });\n\n    const exe = b.addExecutable(.{\n        // ...\n    });\n    exe.addIncludePath(box2d.path(\".\"));\n    exe.linkLibrary(box2d.artifact(\"box2d\"));\n\n    // ...\n}\n```\n\nImport and use the C library:\n\n```zig\nconst c = @cImport({\n    @cInclude(\"box2d/box2d.h\");\n});\n\npub fn main() void {\n    const world_def = c.b2DefaultWorldDef();\n    const world = c.b2CreateWorld(\u0026world_def);\n    // ...\n}\n```\n\n## Examples\n\nThis build script can also run the official examples. From this repository run:\n\n```shell\nzig build -Dtest run\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallyourcodebase%2Fbox2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallyourcodebase%2Fbox2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallyourcodebase%2Fbox2d/lists"}