{"id":30596372,"url":"https://github.com/dotninth/hxduster","last_synced_at":"2026-05-02T23:32:45.540Z","repository":{"id":310816379,"uuid":"1041336312","full_name":"dotninth/hxduster","owner":"dotninth","description":"A bash script that enables integration of Tighten's Duster with Helix Editor. ","archived":false,"fork":false,"pushed_at":"2025-08-20T10:57:24.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-28T22:59:33.650Z","etag":null,"topics":["code-quality","duster","fixer","formatter","formatting","helix","helix-editor","helix-editor-config","laravel","laravel-pint","linter","php"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/dotninth.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-08-20T10:38:53.000Z","updated_at":"2025-08-20T11:06:24.000Z","dependencies_parsed_at":"2025-08-20T12:35:39.971Z","dependency_job_id":"29fbce61-6668-464e-95e6-613843efb139","html_url":"https://github.com/dotninth/hxduster","commit_stats":null,"previous_names":["dotninth/hxduster"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dotninth/hxduster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotninth%2Fhxduster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotninth%2Fhxduster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotninth%2Fhxduster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotninth%2Fhxduster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dotninth","download_url":"https://codeload.github.com/dotninth/hxduster/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dotninth%2Fhxduster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272767275,"owners_count":24989476,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["code-quality","duster","fixer","formatter","formatting","helix","helix-editor","helix-editor-config","laravel","laravel-pint","linter","php"],"created_at":"2025-08-29T21:42:52.165Z","updated_at":"2025-10-20T09:14:06.451Z","avatar_url":"https://github.com/dotninth.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://supportukrainenow.org/)\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/dotninth/hxduster#gh-light-mode-only\"\u003e\n        \u003cimg src=\"./.github/assets/hxduster-light.svg\" alt=\"hxduster logo\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/dotninth/hxduster#gh-dark-mode-only\"\u003e\n        \u003cimg src=\"./.github/assets/hxduster-dark.svg\" alt=\"hxduster logo\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## 🚀 Introduction\n\n`hxduster` is a simple Bash script that allows you to use [Tighten's Duster][link-tighten-duster] as a formatter for PHP files in [Helix Editor][link-helix-editor].\n\nThe problem without this script is that [Helix][link-helix-editor] puts the contents of the file into `stdin` and takes the formatted version from `stdout`, and [Tighten's Duster][link-tighten-duster] formats the file and saves it. The only way to use it was via `dprint` and `:reload-all` command in [Helix][link-helix-editor]. But it's inconvenient because you should run `:rla` command after each save and should be aware of it all the time.\n\n`hxduster` solves this problem.\n\n\u003cbr\u003e\n\n## 🏁 Getting Started\n\n### Requirements\n\n- **[PHP 8.2+][link-php-releases]**\n- **[Laravel 11.0+][link-laravel]**\n- **[Tighten's Duster][link-tighten-duster]**\n\n### Installation \u0026 Helix Configuration\n\nIf you don't have [Tighten's Duster][link-tighten-duster] installed yet, install it through the [Composer][link-composer]:\n\n```zsh\ncomposer global require tightenco/duster\n```\n\nNow clone the repo and install the script. You can install it in any directory you want, I show you an example of the default `$HOME/.local/bin` folder in Linux here.\n\n```zsh\ngit clone git@github.com:dotninth/hxduster.git\ncd hxduster\nchmod +x ./hxduster.sh\nmv hxduster.sh $HOME/.local/bin\n```\n\n\u003e [!IMPORTANT]\n\u003e The path to the folder where you put the `hxduster` script should be in your `.bashrc` or `.zshrc`!\n\nNow add `hxduster` to your [Helix][link-helix-editor] `languages.toml` configuration file.\n\n```zsh\nhx $HOME/.config/helix/languages.toml\n```\n\n```toml\n[[language]]\nname = \"php\"\nformatter = { command = \"hxduster.sh\", args = [\"--stdin\"] }\nauto-format = true\n```\n\n**And that's it!** Open any PHP file in your [Laravel][link-laravel] project and see if `hxduster` works. You can break the formatting and run the `:fmt` command to make sure everything works as intended.\n\n**Have fun!**\n\n\u003cbr\u003e\n\n## 📄 License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[link-tighten-duster]: https://github.com/tighten/duster\n[link-helix-editor]: https://github.com/helix-editor/helix\n[link-laravel]: https://github.com/laravel/laravel\n[link-php-releases]: https://php.net/releases/\n[link-composer]: https://getcomposer.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotninth%2Fhxduster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotninth%2Fhxduster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotninth%2Fhxduster/lists"}