{"id":16985938,"url":"https://github.com/travisstaloch/roc-cli-platform-zig","last_synced_at":"2025-07-22T11:33:09.845Z","repository":{"id":155683593,"uuid":"548721730","full_name":"travisstaloch/roc-cli-platform-zig","owner":"travisstaloch","description":"An experimental roc lang cli platform in zig","archived":false,"fork":false,"pushed_at":"2022-10-15T19:25:56.000Z","size":52,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T02:09:51.915Z","etag":null,"topics":["hacktoberfest","roc-lang","zig"],"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/travisstaloch.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":"2022-10-10T04:37:41.000Z","updated_at":"2025-07-10T11:05:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a53dc39-3180-4f0f-8152-7c0a8a8b8fff","html_url":"https://github.com/travisstaloch/roc-cli-platform-zig","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/travisstaloch/roc-cli-platform-zig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisstaloch%2Froc-cli-platform-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisstaloch%2Froc-cli-platform-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisstaloch%2Froc-cli-platform-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisstaloch%2Froc-cli-platform-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/travisstaloch","download_url":"https://codeload.github.com/travisstaloch/roc-cli-platform-zig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/travisstaloch%2Froc-cli-platform-zig/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266483599,"owners_count":23936376,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hacktoberfest","roc-lang","zig"],"created_at":"2024-10-14T02:44:29.537Z","updated_at":"2025-07-22T11:33:09.801Z","avatar_url":"https://github.com/travisstaloch.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-platform-zig\nAn experimental [roc lang](https://github.com/roc-lang) cli platform in [zig](https://ziglang.org).  Adapated from roc's [rust cli platform](https://github.com/roc-lang/roc/tree/main/examples/cli/cli-platform).  \n\n# dependencies\n- a roc compiler in PATH\n- zig version 0.9.1 in PATH\n\n# usage\n1. clone this repo\n2. reference [platform/main.roc](platform/main.roc) in your roc app like this:\n   `packages { pf: \"path/to/platform/main.roc\" }` (see [test/main.roc](test/main.roc) for an example)\n\n# test\n```console\n./test/run.sh # builds and runs test/main.roc and other testing scripts\n```\n# status\n  - [x] Stdout.line, Stderr.line\n  - [x] File.readBytes - includes some error handling\n  - [x] Process.withArgs\n  - [x] Env.{var,cwd,setCwd,exePath}\n\nsee [test/main.roc](test/main.roc) to see what works.  \n\n# notes\n- copied to platform/ from roc repo\n  - examples/cli/tui-platform/host.zig\n  - examples/cli/cli-platform/main.roc\n  - examples/cli/cli-platform/*.roc\n  - crates/compiler/builtins/bitcode/src/{utils,list}.zig\n\n# todo\n- File.write, delete, ...\n\n# contributors\n - bhansconnect@github","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravisstaloch%2Froc-cli-platform-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravisstaloch%2Froc-cli-platform-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravisstaloch%2Froc-cli-platform-zig/lists"}