{"id":20333329,"url":"https://github.com/daneelsan/zig-wasm-logger","last_synced_at":"2025-04-11T21:33:31.178Z","repository":{"id":133849007,"uuid":"513694291","full_name":"daneelsan/zig-wasm-logger","owner":"daneelsan","description":"A simple implementation of console.log() in Zig + JS + Wasm","archived":false,"fork":false,"pushed_at":"2025-03-09T16:42:25.000Z","size":302,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T17:46:57.919Z","etag":null,"topics":["javascript","wasm","zig"],"latest_commit_sha":null,"homepage":"","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/daneelsan.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":"2022-07-13T23:00:28.000Z","updated_at":"2025-03-09T16:42:29.000Z","dependencies_parsed_at":"2024-02-06T00:25:06.237Z","dependency_job_id":"23956f4a-1f6e-4313-882d-bc3348ba788e","html_url":"https://github.com/daneelsan/zig-wasm-logger","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/daneelsan%2Fzig-wasm-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fzig-wasm-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fzig-wasm-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daneelsan%2Fzig-wasm-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daneelsan","download_url":"https://codeload.github.com/daneelsan/zig-wasm-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248483451,"owners_count":21111454,"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":["javascript","wasm","zig"],"created_at":"2024-11-14T20:30:49.630Z","updated_at":"2025-04-11T21:33:31.169Z","avatar_url":"https://github.com/daneelsan.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zig-wasm-logger\n\nA simple implementation of `console.log()` in Zig + JS + Wasm.\n\nhttps://daneelsan.github.io/zig-wasm-logger/\n\n![example](./example.gif)\n\n## Usage\n\n```zig\nconst JS = @import(\"JS.zig\");\n\n/// Print `args` formatted by `format` into Javascript's console.\nJS.Console.log(format, args)\n```\n\nExample:\n\n```zig\nconst JS = @import(\"JS.zig\");\n\nexport fn step(timestamp: f32) void {\n    JS.Console.log(\"timestamp: {}\\n\", .{timestamp});\n}\n```\n\n## Build\n\n```shell\n$ zig version\n0.14.0\n```\n\n```shell\n$ zig build --verbose\n```\n\n```shell\n$ ls zig-out/bin/*.wasm\nzig-out/bin/example.wasm\n```\n\n## References\n\n-   https://github.com/daneelsan/minimal-zig-wasm-canvas\n-   https://github.com/daneelsan/zig-wefx\n-   https://github.com/ziglang/zig/blob/master/lib/std/io/writer.zig\n-   https://github.com/hexops/mach/blob/main/src/platform/wasm.zig\n-   https://github.com/hexops/mach/blob/main/src/platform/mach.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaneelsan%2Fzig-wasm-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaneelsan%2Fzig-wasm-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaneelsan%2Fzig-wasm-logger/lists"}