{"id":19383345,"url":"https://github.com/mdouchement/composer","last_synced_at":"2026-03-08T00:32:20.938Z","repository":{"id":57513826,"uuid":"68463326","full_name":"mdouchement/composer","owner":"mdouchement","description":"An awesome utility to manage all your processes in development environment","archived":false,"fork":false,"pushed_at":"2025-07-07T19:53:32.000Z","size":62,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T23:13:19.810Z","etag":null,"topics":["application-launcher","composer","developer-tools","golang","process-manager"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/mdouchement.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":"2016-09-17T16:18:08.000Z","updated_at":"2025-01-05T10:24:50.000Z","dependencies_parsed_at":"2023-12-29T13:24:58.901Z","dependency_job_id":"78710fd3-81da-4c58-b4e0-54b5f61aa0bc","html_url":"https://github.com/mdouchement/composer","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/mdouchement/composer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fcomposer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fcomposer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fcomposer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fcomposer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdouchement","download_url":"https://codeload.github.com/mdouchement/composer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdouchement%2Fcomposer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30238872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:30:53.000Z","status":"ssl_error","status_checked_at":"2026-03-08T00:30:44.061Z","response_time":53,"last_error":"SSL_read: 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":["application-launcher","composer","developer-tools","golang","process-manager"],"created_at":"2024-11-10T09:25:38.702Z","updated_at":"2026-03-08T00:32:20.917Z","avatar_url":"https://github.com/mdouchement.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Composer\n\nComposer is CLI software for managing processes in development environment.\n\n## Installation\n\n- Download it from [releases](https://github.com/mdouchement/composer/releases) page.\n\n### Manual build\n\n`go install github.com/mdouchement/composer@latest`\n\nor\n\n1. Install Go 1.24+\n2. Clone this project\n  - `git clone https://github.com/mdouchement/composer`\n3. Build the binary\n  - `go build -o composer .`\n4. Install the compiled binary\n  - `mv composer /usr/bin/composer`\n\n## Usage\n\n```sh\n$ composer start -c ~/server-stack.yml\n```\n\n## Configuration file\n\n`command` is interpreted as shell script.\n\n- Basic\n\n```yml\nservices:\n  risuto:\n    pwd: $GOPATH/src/github.com/mdouchement/risuto\n    command: go run risuto.go -p 5000 -b localhost\n    environment:\n      RISUTO_DATABASE: /tmp/data/tiedot_db\n\n  breizhtrip:\n    pwd: $GOPATH/src/github.com/mdouchement/breizhtrip-go\n    command: go run breizhtrip.go -p 5005 -b localhost\n\n  machinery:\n    pwd: $GOPATH/src/github.com/mdouchement/machnery-app\n    command: go run app.go worker -c 5\n\n  random_shell_script:\n    pwd: /tmp\n    command: |\n      for i in 0 1 2 3 4 5 6 7 8 9\n      do\n        echo \"Hello $i times\"\n      done\n```\n\n- Full options\n\n```yml\nservices:\n  ggpull:\n    pwd: /home/$USER/myapp\n    command: git pull\n\n  app:\n    hooks:\n      wait:\n        - ggpull\n    pwd: /home/$USER/myapp\n    command: bundle exec rails s\n    log_trim_pattern: '\\[.*\\] \\w+  (?P\u003cmessage\u003e.*)'\n    environment:\n      RAILS_ENV: production\n\n  worker:\n    ignore_error: true # Do not stop other services on error\n    hooks:\n      wait: # wait for other processes before start\n        - ggpull\n      kill: # kill other processes on exit\n        - app\n    pwd: /home/$USER/myapp\n    command: bundle exec sidekiq -c config/sidekiq.yml\n```\n\n### Trim logs\n\nOutputed logs can be trimed to remove useless data like timestamp. This option is based on the Golang's [regexp](https://golang.org/pkg/regexp/) package and you can test your regexp with the following website [regex101 with Golang flavor](https://regex101.com).\n\nAll the captured groups are printed by composer like the following example:\n\n```\nlog_trim_pattern: '\\[[^]]+\\] \\w+ (.*)'\n```\n\nThe result is the following:\n\n```\n# Without trim:\nmy_app: [2017-02-13 10:38:09] INFO  WEBrick 1.3.1\n\n# With trim:\nmy_app: WEBrick 1.3.1\n```\n\u003e Nothing happens if the regex is invalid.\\\n\u003e If the logs are colored you have to add ANSI colors like `\\x1B[32m INFO \\x1B[0m` in your regexp escaped as `log_trim_pattern: \"\\x1B\\\\[32m INFO \\x1B\\\\[0m\"`.\n\nYou can add a composer log file in order to see the ANSI colors escape sequences:\n\n```yaml\nsettings:\n  log_file: composer.log\n```\n\n## License\n\n**MIT**\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n5. Push to the branch (git push origin my-new-feature)\n6. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fcomposer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdouchement%2Fcomposer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdouchement%2Fcomposer/lists"}