{"id":28440286,"url":"https://github.com/haxefoundation/try.haxe.org","last_synced_at":"2025-06-27T10:32:33.343Z","repository":{"id":45824188,"uuid":"342919801","full_name":"HaxeFoundation/try.haxe.org","owner":"HaxeFoundation","description":"run Haxe code snippets in your browser","archived":false,"fork":false,"pushed_at":"2025-03-06T16:05:18.000Z","size":6388,"stargazers_count":19,"open_issues_count":6,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-06T03:41:52.909Z","etag":null,"topics":["fiddle","haxe","playground"],"latest_commit_sha":null,"homepage":"https://try.haxe.org","language":"Haxe","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/HaxeFoundation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-02-27T17:45:48.000Z","updated_at":"2025-03-06T16:05:22.000Z","dependencies_parsed_at":"2023-01-29T22:00:57.842Z","dependency_job_id":"2bf58f76-43bc-450b-a658-e5aaf5e6dc8c","html_url":"https://github.com/HaxeFoundation/try.haxe.org","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HaxeFoundation/try.haxe.org","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaxeFoundation%2Ftry.haxe.org","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaxeFoundation%2Ftry.haxe.org/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaxeFoundation%2Ftry.haxe.org/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaxeFoundation%2Ftry.haxe.org/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HaxeFoundation","download_url":"https://codeload.github.com/HaxeFoundation/try.haxe.org/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaxeFoundation%2Ftry.haxe.org/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262239176,"owners_count":23280277,"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":["fiddle","haxe","playground"],"created_at":"2025-06-06T03:39:24.255Z","updated_at":"2025-06-27T10:32:33.331Z","avatar_url":"https://github.com/HaxeFoundation.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"# try.haxe.org\n\n[![CI](https://github.com/HaxeFoundation/try.haxe.org/actions/workflows/main.yml/badge.svg)](https://github.com/HaxeFoundation/try.haxe.org/actions/workflows/main.yml)\n\nThe try-haxe project is a browser-based IDE for testing Haxe code.  It provides a\nquick and easy environment for playing with the Haxe language and compiles to\nJavaScript, Eval, HashLink or Neko, instantly viewable in the browser.  It also allows saving\nand sharing of programs with the auto-generated hyperlink hash-codes.\n\nThe official project is hosted at [try.haxe.org](https://try.haxe.org).\n\nThis repository is a direct successor of [try-haxe](https://github.com/clemos/try-haxe) project founded by [clemos](https://github.com/clemos) and it's fork the dockerized mrcdk version by [mrcdk](https://github.com/mrcdk).\n\n## Technical notes\n\nThe try-haxe project is written in Haxe, with part of the application compiling to\nJavaScript for use on the client, and part of the application compiling to PHP as\na backend service.  The backend PHP service provides server-side compilation of\nprograms as well as language auto-complete results. The backend uses Docker to enable the use of multiple Haxe versions and macro support.\n\n## Run your own instance (Docker)\n\n### Install Docker and docker-compose\n\n\u003chttps://www.docker.com/get-started\u003e\n\n### compile application\n\n```bash\nnpm i lix\nlix download\nhaxe build.hxml\n```\n\n### build all containers (in project root)\n\n```bash\ndocker-compose -f docker-compose-all.yml up -d\n```\n\nyou should get http server on `127.0.0.1:623`\n\nNote: you might have to adjust web container's gid for docker group, to match your outside docker's gid. also make sure outside www-data user is part of docker group.\n\n### install Haxe versions\n\n(outside container - copy selected versions from your local lix installation). new versions show up after reloading your browser.\n\n```bash\ncp -a ~/haxe/neko lixSetup/haxe/neko\ncp -a ~/haxe/versions/4.1.5 lixSetup/haxe/versions\n```\n\nor\n\n```bash\nexport HAXESHIM_ROOT=lixSetup/haxe\nlix install haxe 4.3.6\n```\n\n### Recompile haxe code after you change source code outside\n\n`haxe build.hxml`\n\n### To shutdown container\n\n`docker-compose -f docker-compose-all.yml down`\n\n### Linux\n\nDocker group can have a different group id / number than the web container's docker group. To fix it find docker group id:\n\n`cat /etc/group | grep docker`\n\nthen use `docker exec -it try-haxe_web_1 /bin/bash` to enter web container and edit `/etc/group` inside:\n\n```bash\napt install vim-tiny\nvi /etc/group\n# find entry with docker (should be last) and change number to host group id\n:wq\nservice apache2 restart\n```\n\n### macOS\n\nAfter building containers run:\n\n`docker exec -it try-haxe_web_1 sh -c \"chgrp docker /var/run/docker.sock; chmod g+w /var/run/docker.sock\"`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxefoundation%2Ftry.haxe.org","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaxefoundation%2Ftry.haxe.org","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxefoundation%2Ftry.haxe.org/lists"}