{"id":24535285,"url":"https://github.com/sjml/wasmbots","last_synced_at":"2025-04-05T00:05:24.945Z","repository":{"id":272445168,"uuid":"866879192","full_name":"sjml/wasmbots","owner":"sjml","description":"wasm. bots. 🤖🧙‍♂️🧚🧙‍♀️⚔️🏰🤖","archived":false,"fork":false,"pushed_at":"2025-02-06T16:49:05.000Z","size":7698,"stargazers_count":164,"open_issues_count":3,"forks_count":12,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-28T23:03:53.518Z","etag":null,"topics":["assemblyscript","c","golang","roguelike","rust","svelte","typescript","webassembly","zig"],"latest_commit_sha":null,"homepage":"https://shaneliesegang.com/projects/wasmbots","language":"TypeScript","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/sjml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-10-03T03:33:20.000Z","updated_at":"2025-03-19T00:58:00.000Z","dependencies_parsed_at":"2025-02-06T17:42:30.983Z","dependency_job_id":null,"html_url":"https://github.com/sjml/wasmbots","commit_stats":null,"previous_names":["sjml/wasmbots"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjml%2Fwasmbots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjml%2Fwasmbots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjml%2Fwasmbots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjml%2Fwasmbots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjml","download_url":"https://codeload.github.com/sjml/wasmbots/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266562,"owners_count":20910836,"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":["assemblyscript","c","golang","roguelike","rust","svelte","typescript","webassembly","zig"],"created_at":"2025-01-22T12:16:57.012Z","updated_at":"2025-04-05T00:05:24.922Z","avatar_url":"https://github.com/sjml.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# WasmBots\n\n(NB: this repo is active, but progress may be a little slow. [see this video for more specifics.](https://www.youtube.com/watch?v=rcWSoCT37MQ))\n\n[A multi-wizard arena where all the competitors are bots!](https://shaneliesegang.com/projects/wasmbots/) (Always a latest build at [GitHub Pages](https://sjml.github.io/wasmbots/), but that site is the canonical deployment.)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/sjml/wasmbots/raw/main/art/misc/wasmbots-tease.gif\" alt=\"WasmBots Teaser Image\"\u003e\u003c/p\u003e\n\n[The programming interface is described here](./docs/interface.md), and there are [pre-made libraries in a bunch of languages](./libraries/) to get you started. You can also peruse [the code for the example bots](./example_bots_src/). \n\nThe [documentation can also be useful](./docs/), or maybe just [the development history](./docs/history.md)., \n\n## Development\n\nIt's a big ole monorepo. Sorry about that; it's what happens when a proof-of-concept just grows organically. I presumptively registered a [wasmbots org on GitHub](https://github.com/wasmbots) just in case this becomes A Thing™ in which case I'll split things out more productively. \n\n\n### Devbox\nYou can always build and run with [devbox](https://www.jetify.com/devbox). ([Installation instructions are here.](https://www.jetify.com/docs/devbox/installing_devbox/)) \n\nRun `devbox shell` to be in a usable environment where you can run \n\n\n### Docker\nThe [Dockerfile](./Dockerfile) just pipes everything through devbox, but makes it a little more turnkey, especially if you're already a Docker user. \n\n```sh\n# produces a container with a built frontend, \n#   including example bots, served with Caddy\ndocker build -t wasmbots .\n\n# to actually get it serving:\ndocker run -d -p 8080:80 wasmbots\n# Then look for it in your favorite browser at:\n#   `http://localhost:8080`\n#   (change out the port number to whatever you want)\n```\n\n```sh\n# this will drop you into a shell within the container\n#   where all the tools are installed and paths are set\n#   and everything. \ndocker build --target dev -t wasmbots-dev .\ndocker run -it -v $PWD:/code wasmbots-dev\n```\n\n\n### Manual Installation\nIf you don't want to install a whole other package manager, here's what I (used to) use to get up and running with [Homebrew](https://brew.sh/) on macOS. Modify appropriately if you're using something else. \n\n\n```sh\nbrew install deno node wabt emscripten rust zig go tinygo-org/tools/tinygo\n```\n\n### Simple Checks\nRegardless of how you get your dev environment running, you can verify everything is working as expected by running:\n\n```\n./scripts/_build_wasms.sh\n./scripts/_validate_wasms.sh\n```\n\nThat will build and validate all the example bots; it doesn't check their functionality at all, just that WebAssembly modules were produced that conform to [the expected interface](./engine/src/data/guestAPI.json).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjml%2Fwasmbots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjml%2Fwasmbots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjml%2Fwasmbots/lists"}