{"id":20763538,"url":"https://github.com/openfl/hxp","last_synced_at":"2026-02-19T16:02:24.490Z","repository":{"id":32802028,"uuid":"135599913","full_name":"openfl/hxp","owner":"openfl","description":" Write scripts in Haxe, and execute them on Windows, macOS or Linux","archived":false,"fork":false,"pushed_at":"2026-01-13T21:50:45.000Z","size":42070,"stargazers_count":70,"open_issues_count":10,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-01-13T23:59:07.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/openfl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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,"notice":"NOTICE.md","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["jgranick"],"patreon":"openfl","open_collective":"openfl","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-05-31T15:09:50.000Z","updated_at":"2026-01-13T21:50:48.000Z","dependencies_parsed_at":"2022-09-01T03:02:29.590Z","dependency_job_id":"f8e3ffce-6466-49de-b28e-038b1c6543a2","html_url":"https://github.com/openfl/hxp","commit_stats":{"total_commits":144,"total_committers":11,"mean_commits":"13.090909090909092","dds":"0.14583333333333337","last_synced_commit":"86b57b0a16fdd32cc5e7d927205a1ede1640a5f0"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/openfl/hxp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfl%2Fhxp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfl%2Fhxp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfl%2Fhxp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfl%2Fhxp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfl","download_url":"https://codeload.github.com/openfl/hxp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfl%2Fhxp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29621899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":"2024-11-17T10:44:35.552Z","updated_at":"2026-02-19T16:02:24.462Z","avatar_url":"https://github.com/openfl.png","language":"Haxe","funding_links":["https://github.com/sponsors/jgranick","https://patreon.com/openfl","https://opencollective.com/openfl"],"categories":[],"sub_categories":[],"readme":"[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE.md) [![Haxelib Version](https://img.shields.io/github/tag/openfl/hxp.svg?style=flat\u0026label=haxelib)](http://lib.haxe.org/p/hxp) [![Build Status](https://img.shields.io/github/actions/workflow/status/openfl/hxp/main.yml?branch=master)](https://github.com/openfl/hxp/actions)\n\nHXP\n===\n\nWrite scripts in Haxe, and execute them on Windows, macOS or Linux.\n\n## Basic Example\n\n```haxe\n// script.hx\nclass Script {\n\n    public function new () {\n    \n        trace (\"Hello from my script\");\n        \n        var hxml = new HXML ({ cp: [\"src\"], main: \"Main\", js: \"bin/index.js\" });\n        hxml.build ();\n        PlatformTools.launchWebServer (\"bin\");\n        \n    }\n    \n}\n```\n\n### Running a Script\n\n`hxp` looks for a script file in the current directory, or optionally, you can pass a directory or script path\n\n```bash\ncd path/with/script \u0026\u0026 hxp\nhxp script.hx\nhxp path/with/script\n```\n\nIf you prefer to use multiple script files, HXP will prefer files which match the command name you are executing.\n\nFor example:\n\n```bash\nhxp build  # prefers \"build.hx\"\nhxp run    # prefers \"run.hx\"\n```\n\n## Example with Arguments\n\n```haxe\nclass Script extends hxp.Script {\n\n    public function new () {\n    \n        super ();\n        \n        trace (command);\n        trace (commandArgs);\n        trace (flags.keys ());\n        trace (defines.keys ());\n        trace (options.keys ());\n        \n    }\n    \n}\n```\n\nWhen you extend `hxp.Script`, default argument parsing is included for you. Arguments which begin with a single dash (such as `-debug`) will be treated as a \"flag\", starting with `-D` is a \"define\", and starting with two dashes (such as `--out-dir`) is an \"option\". All other arguments will be considered a command (first), then command arguments.\n\nFor example:\n\n```bash\nhxp command arg1 arg2 -debug -Ddefine -Ddefine2=value --option=value\n```\n\nUsing HXP works on Haxe 4 (using eval internally) or Haxe 3 (using Neko).\n\nHXP includes convenience methods for working with file paths, directories, executing child processes and creating quality CLI tools.\n\nThe [Lime](https://github.com/openfl/lime) and [OpenFL](https://github.com/openfl/openfl) use HXP to develop cross-platform tools for delivering consistent content on Windows, macOS, Linux, iOS, Android, tvOS, Flash, HTML5 and other environments.\n\n\nLicense\n=======\n\nHXP is free, open-source software under the [MIT license](LICENSE.md).\n\n\nInstallation\n============\n\nYou can easily install HXP with haxelib:\n\n    haxelib install hxp\n\n\nOnce installed, run the following command to install the `hxp` command alias:\n    \n    haxelib run hxp --install-hxp-alias\n\n\nDevelopment Builds\n==================\n\nClone the HXP repository:\n\n    git clone https://github.com/openfl/hxp\n\n\nTell haxelib where your development copy of HXP is installed:\n\n    haxelib dev hxp hxp\n\n\nTo return to release builds:\n\n    haxelib dev hxp\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfl%2Fhxp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfl%2Fhxp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfl%2Fhxp/lists"}