{"id":27761030,"url":"https://github.com/tsoding/c3-demo","last_synced_at":"2025-08-22T20:16:14.212Z","repository":{"id":250649818,"uuid":"834924418","full_name":"tsoding/c3-demo","owner":"tsoding","description":"Demo of C3 Programming Language","archived":false,"fork":false,"pushed_at":"2024-08-03T05:35:57.000Z","size":891,"stargazers_count":59,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T12:19:37.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/tsoding.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-07-28T18:17:02.000Z","updated_at":"2025-04-20T10:35:45.000Z","dependencies_parsed_at":"2024-08-03T06:49:58.468Z","dependency_job_id":null,"html_url":"https://github.com/tsoding/c3-demo","commit_stats":null,"previous_names":["tsoding/c3-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Fc3-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Fc3-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Fc3-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsoding%2Fc3-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsoding","download_url":"https://codeload.github.com/tsoding/c3-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251498962,"owners_count":21598984,"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-04-29T12:19:50.140Z","updated_at":"2025-04-29T12:19:50.936Z","avatar_url":"https://github.com/tsoding.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C3 Demo\n\nArtifacts of C3 Programming Language Streams. It's a simple demo that works Natively and in Web. Checkout the Web Version at https://tsoding.github.io/c3-demo/\n\n![thumbnail](./thumbnail.png)\n\nThe Native version uses [Raylib](https://www.raylib.com/) for rendering. The Web version uses [zozlib.js](https://github.com/tsoding/zozlib.js) which is a simple reimplementation of a Subset of Raylib API in JavaScript for WebAssembly. The result is the same program [demo.c3](./demo.c3) works both Natively and in Browser without any direct modifications.\n\n## Building and Testing Web Version locally on Linux\n\n- Install [C3 compiler](https://c3-lang.org/) and make sure `c3c` is avaible in `$PATH`\n- `$ make`\n- `$ python3 -m http.server 6969`\n- Open \u003chttp://localhost:6969\u003e\n\n*TODO: to make this process cross-platform we need to get rid of `make` (c3 comes with its own build system, explore that, but keep it simple), and the Python HTTP Server ('cause Python is not guaranteed on Windows)*\n\n## Building Native Version on Linux\n\n- Install [C3 compiler](https://c3-lang.org/) and make sure `c3c` is avaible in `$PATH`\n- `$ make demo-linux`\n- `$ ./demo-linux`\n\n*TODO: supporting more platforms is a matter of having a relevant [Raylib](https://www.raylib.com/) version and a target in the [Makefile](./Makefile)*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsoding%2Fc3-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsoding%2Fc3-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsoding%2Fc3-demo/lists"}