{"id":37851523,"url":"https://github.com/blocky/compiler","last_synced_at":"2026-01-16T16:13:22.310Z","repository":{"id":306597088,"uuid":"980544007","full_name":"blocky/compiler","owner":"blocky","description":"WASM (reproducible) compilation tool","archived":false,"fork":false,"pushed_at":"2025-11-11T15:23:28.000Z","size":162,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-11T17:15:56.934Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/blocky.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,"zenodo":null}},"created_at":"2025-05-09T09:55:47.000Z","updated_at":"2025-11-11T15:23:22.000Z","dependencies_parsed_at":"2025-07-26T18:35:26.970Z","dependency_job_id":"fc3d20e9-8feb-4eb6-a19b-6117e12daa5a","html_url":"https://github.com/blocky/compiler","commit_stats":null,"previous_names":["blocky/compiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blocky/compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocky%2Fcompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocky%2Fcompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocky%2Fcompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocky%2Fcompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blocky","download_url":"https://codeload.github.com/blocky/compiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blocky%2Fcompiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-16T16:13:21.698Z","updated_at":"2026-01-16T16:13:22.284Z","avatar_url":"https://github.com/blocky.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e :exclamation: The BLOCKY Compiler is provided with no\n\u003e guarantees. By trying out the repo, binary or invoking the `bky-c` executable you\n\u003e agree to not hold BLOCKY responsible for any problems, mishaps,\n\u003e adverse effects, or frustrations.\n\u003e \n# BKY-C\nWASM (reproducible) compilation tool\n\n## Installation\n\nTo install the latest version run:\n```bash\ncurl -s https://raw.githubusercontent.com/blocky/compiler/refs/heads/main/install.sh | bash\n```\n\nTo install a specific version run:\n```bash\ncurl -s https://raw.githubusercontent.com/blocky/compiler/refs/heads/main/install.sh | bash -s -- -v \u003cselected-version\u003e\n```\nfor example:\n```bash\ncurl -s https://raw.githubusercontent.com/blocky/compiler/refs/heads/main/install.sh | bash -s -- -v v0.1.0-beta.1\n\n```\n\n## Building go to WASM\nTo build your `go` application into `WASM` use `bky-c` build command:\n```bash\nbky-c build \u003cpath-to-your-app\u003e \u003cpath-to-output-binary-file\u003e\n```\nfor example\n```bash\nbky-c build ./main.go ./out/x.wasm\n```\n\nplease note that:\n\n`\u003cpath-to-your-app\u003e` can be either relative and absolute and point to:\n- an input file, or\n- an input/project folder\n\nYou also need to make sure thar the folder in which you wish to put\nthe output binary exists. The compiler will not create the folder for you.\n\n## Viewing licenses\nTo display all licenses associated with `bky-c` and its dependencies run:\n```bash\nbky-c licenses\n```\n\n## Dev Environment\nFor development and testing you should use the provided `Nix` environment.\nTo run it:\n```bash\nnix develop\n```\n\n## Working with the containerized environment (docker-in-docker/dind setup)\nIn order to run or debug tests (integration, compatibility, any ending in `-dind`) in an isolated\ndocker-in-docker setup you need to enable multiplatform builds via `docker build buildx`.\nIf you need to enable it you may want to look at the following target:\n```bash\nmake container-setup\n```\n\n## Debugging in docker-in-docker setup\nTo debug a test `Test_MyCode` using a container with a dedicated Docker daemon run:\n```bash\nmake start-debug-env-dind testname=Test_MyCode\n```\nWhen you see something similar on your terminal:\n```text\nWaiting for breakpoint in test: Test_MyCode\nAPI server listening at: [::]:2345\n2025-06-08T18:58:43Z warning layer=rpc Listening for remote connections (connections are not authenticated nor encrypted)\n```\nyou can start a test debug run from your IDE. In `Goland` standard `Go Remote` test run configuration will be ok.\n\n## Running integration tests in docker-in-docker setup\nTo run integration tests inside a container with a dedicated Docker daemon run:\n```bash\nmake test-integration-dind\n```\n\n## Running compatibility tests in docker-in-docker setup\nTo run compatibility tests inside a container with a dedicated Docker daemon run:\n```bash\nmake test-compatibility-dind\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocky%2Fcompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblocky%2Fcompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblocky%2Fcompiler/lists"}