{"id":24773082,"url":"https://github.com/zewenn/fyr","last_synced_at":"2025-10-24T00:02:48.275Z","repository":{"id":270768315,"uuid":"896415194","full_name":"zewenn/fyr","owner":"zewenn","description":"A wrapper/helper to work with raylib-zig (by Not-Nik)","archived":false,"fork":false,"pushed_at":"2025-03-14T09:37:53.000Z","size":2732,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T10:34:23.427Z","etag":null,"topics":["framework","game-engine","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zewenn.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":"2024-11-30T09:54:50.000Z","updated_at":"2025-03-14T09:37:57.000Z","dependencies_parsed_at":"2025-01-03T21:30:53.152Z","dependency_job_id":"e7285b30-6c19-4e80-8287-fea761762876","html_url":"https://github.com/zewenn/fyr","commit_stats":null,"previous_names":["zewenn/zap","zewenn/fyr"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewenn%2Ffyr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewenn%2Ffyr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewenn%2Ffyr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewenn%2Ffyr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zewenn","download_url":"https://codeload.github.com/zewenn/fyr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245168902,"owners_count":20571804,"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":["framework","game-engine","zig"],"created_at":"2025-01-29T04:37:47.102Z","updated_at":"2025-10-24T00:02:48.270Z","avatar_url":"https://github.com/zewenn.png","language":"Zig","readme":"\u003cp align=\"center\"\u003e\u003cimg src=\".readme/logo_large.png\" width=\"400\"/\u003e\u003cp\u003e\n\u003cp align=\"center\"\u003ev0.4 | \u003ca href=\"./docs/\"\u003eDocs\u003c/a\u003e | \u003ca href=\"./src/demo/\"\u003eDemo Project\u003c/a\u003e\u003c/p\u003e\n\n**fyr** is a wrapper of [Not-Nik](https://github.com/Not-Nik)'s [raylib-zig](https://github.com/Not-Nik/raylib-zig) using [johan0A](https://github.com/johan0A)'s [clay-zig-bindings](https://github.com/johan0A/clay-zig-bindings). **fyr** also contains a fully functional ECS (Entity Component System) and a caching asset handling solution.\n\n\u003e [!IMPORTANT]\n\u003e The project uses zig version `0.14.0` and the latest version of the bindings. \u003cbr\u003e\n\u003e Still in **beta**, some docs may be missing or incomplete! Contributions are welcome. \u003cbr\u003e\n\n## Add the `fyr` library\n\nYou are only a couple of easy steps away fromm building your dream project:\n\n1. Run the following command to save the dependency:\n   ```bash\n   zig fetch --save git+https://github.com/zewenn/fyr#stable\n   ```\n2. Add the following to your `build.zig`:\n\n   ```zig\n   const fyr_module = b.dependency(\"fyr\", .{\n       .target = target,\n       .optimize = optimize,\n   });\n\n   const fyr = fyr_module.module(\"fyr\");\n\n   exe.root_module.addImport(\"fyr\", fyr);\n   ```\n\n3. You are ready to go! Now you can import fyr with a regular zig `@import()`:\n   ```zig\n   const fyr = @import(\"fyr\");\n   ```\n\n## Project Setup\n\nSetting up a project with `fyr` is so easy, even your grandma could do it :smile:\n\n\u003e [!NOTE]\n\u003e You can follow the documentation, or take a look at the [demo project](./src/demo/main.zig)\n\n```zig\nconst window = fyr.window;\n\npub fn main() !void {\n    fyr.project({\n        window.title(\"fyr-demo\");\n        window.size.set(fyr.Vec2(1280, 720));\n        window.fps.setTarget(256);\n        window.resizing.enable();\n\n        // Paths for the assets directory\n        fyr.useAssetPaths(.{\n            .debug = \"./src/demo/assets/\",\n        });\n    })({\n        // The default scene will be automatically loaded.\n        fyr.scene(\"default\")({\n            fyr.entities(.{\n                // Add entities here\n            });\n\n            fyr.scripts(.{\n                // Add scripts here\n            });\n        });\n    });\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzewenn%2Ffyr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzewenn%2Ffyr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzewenn%2Ffyr/lists"}