{"id":23964488,"url":"https://github.com/firefly-zero/firefly-elixir","last_synced_at":"2025-04-13T12:28:36.348Z","repository":{"id":245709422,"uuid":"818972826","full_name":"firefly-zero/firefly-elixir","owner":"firefly-zero","description":"🧪 Experimental Elixir SDK for making Firefly Zero games","archived":false,"fork":false,"pushed_at":"2024-06-30T09:23:24.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T12:28:32.045Z","etag":null,"topics":["elixir","firefly-zero","gamedev","orb","sdk","wasm"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firefly-zero.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-06-23T12:09:57.000Z","updated_at":"2024-08-23T04:17:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f282f2a-99ec-49b1-ab75-525ba9dd7f64","html_url":"https://github.com/firefly-zero/firefly-elixir","commit_stats":null,"previous_names":["firefly-zero/firefly-elixir"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefly-zero%2Ffirefly-elixir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefly-zero%2Ffirefly-elixir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefly-zero%2Ffirefly-elixir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefly-zero%2Ffirefly-elixir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firefly-zero","download_url":"https://codeload.github.com/firefly-zero/firefly-elixir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248713674,"owners_count":21149744,"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":["elixir","firefly-zero","gamedev","orb","sdk","wasm"],"created_at":"2025-01-06T21:35:00.826Z","updated_at":"2025-04-13T12:28:36.316Z","avatar_url":"https://github.com/firefly-zero.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# firefly-elixir\n\nThe official SDK for writing apps and games for [Firefly Zero](https://fireflyzero.com/) in [Elixir](https://elixir-lang.org/) using [Orb](https://github.com/RoyalIcing/Orb).\n\n\u003e **Warning**\nThis SDK is highly experimental! The Orb project is in its early alpha testing stage and has a lot of rough edges and missed features. As a consequence, the SDK itself also doesn't implement some of the functions available in other SDKs.\n\n* [▶️ runtime docs](https://docs.fireflyzero.com/dev/getting-started/)\n* [📄 api docs](https://hexdocs.pm/firefly_elixir/api-reference.html)\n* [📦 hex.pm](https://hex.pm/packages/firefly_elixir)\n* [🐙 github](https://github.com/firefly-zero/firefly-elixir)\n\n## Usage\n\n1. [Install Elixir](https://elixir-lang.org/install.html)\n1. [Install wabt](https://github.com/WebAssembly/wabt/releases)\n1. [Install firefly_cli](https://docs.fireflyzero.com/dev/getting-started/#-install-tools)\n1. Create a new Elixir project: `mix new hello`\n1. Add the SDK into `mix.exs`:\n\n    ```elixir\n    defp deps do\n      [\n        {:firefly_elixir, \"~\u003e 0.1.0\"}\n      ]\n    end\n    ```\n\n1. Fetch dependencies: `mix deps.get`\n1. Write some code:\n\n    ```elixir\n    defmodule Hello do\n      use Firefly\n\n      defw boot() do\n        draw_triangle(\n          %Point{x: 60, y: 10},\n          %Point{x: 40, y: 40},\n          %Point{x: 80, y: 40},\n          %Style{fill_color: :light_gray, stroke_color: :dark_blue, stroke_width: 1}\n        )\n      end\n    end\n    ```\n\n1. Create `firefly.toml`:\n\n    ```toml\n    author_id = \"demo\"\n    app_id = \"hello\"\n    author_name = \"Demo\"\n    app_name = \"Hello\"\n\n    [files]\n    _bin = { path = \"main.wasm\", copy = true }\n    ```\n\n1. Build wat: `mix wasm Hello \u003e main.wat`\n1. Build wasm: `wat2wasm main.wat -o main.wasm`\n1. Build the Firefly Zero app: `firefly_cli build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirefly-zero%2Ffirefly-elixir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirefly-zero%2Ffirefly-elixir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirefly-zero%2Ffirefly-elixir/lists"}