{"id":14990783,"url":"https://github.com/superauguste/zig-patterns","last_synced_at":"2025-05-08T21:21:50.286Z","repository":{"id":211171292,"uuid":"728397963","full_name":"SuperAuguste/zig-patterns","owner":"SuperAuguste","description":"Common Zig patterns for you and your friends :)","archived":false,"fork":false,"pushed_at":"2024-04-15T12:25:29.000Z","size":37,"stargazers_count":179,"open_issues_count":1,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-04T16:08:21.377Z","etag":null,"topics":["learning","zig","ziglang"],"latest_commit_sha":null,"homepage":"","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/SuperAuguste.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":"2023-12-06T21:22:02.000Z","updated_at":"2025-01-19T21:42:44.000Z","dependencies_parsed_at":"2023-12-16T09:42:44.781Z","dependency_job_id":"f7a1520f-defb-4ef4-bf6a-64cd92a7951b","html_url":"https://github.com/SuperAuguste/zig-patterns","commit_stats":null,"previous_names":["superauguste/zig-design-patterns","superauguste/zig-patterns"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperAuguste%2Fzig-patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperAuguste%2Fzig-patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperAuguste%2Fzig-patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuperAuguste%2Fzig-patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuperAuguste","download_url":"https://codeload.github.com/SuperAuguste/zig-patterns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238044093,"owners_count":19407128,"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":["learning","zig","ziglang"],"created_at":"2024-09-24T14:20:50.134Z","updated_at":"2025-02-10T02:08:33.693Z","avatar_url":"https://github.com/SuperAuguste.png","language":"Zig","readme":"# Zig Patterns\n\n- [Zig Patterns](#zig-patterns)\n  - [About](#about)\n  - [The Patterns](#the-patterns)\n  - [License](#license)\n\n## About\n\nThis repository contains examples of common patterns found in Zig's standard library and many community projects.\n\nNote that copying (one of) these patterns verbatim into your project may not be useful; it's important to weigh the pros and cons of different patterns. If you come from another language, especially a non-systems one, you'll often find that the more unfamiliar ideas featured here may be more useful.\n\nFor example, I've seldom used interface-like patterns when designing systems in Zig, despite using such patterns dozens of times a day at my old job writing TypeScript or Go.\n\n## The Patterns\n\nAll examples are annotated with comments including recommendations regarding when to use the patterns shown.\n\nExample tests can be run with `zig build [name_of_pattern]`. For example, to run the tests in `typing/type_function.zig`, run `zig build type_function`.\n\nPatterns are grouped into the following categories:\n- `data` - data layout and organization techniques\n- `typing` - `comptime`, runtime, or mixed `type` or type safety techniques\n\nSome patterns may belong in multiple categories; I've selected the most fitting one in my opinion.\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperauguste%2Fzig-patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperauguste%2Fzig-patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperauguste%2Fzig-patterns/lists"}