{"id":16820565,"url":"https://github.com/op/coerl","last_synced_at":"2026-05-01T06:32:47.842Z","repository":{"id":136987271,"uuid":"104770153","full_name":"op/coerl","owner":"op","description":"cörl adds dots, colours and whistles to curl","archived":false,"fork":false,"pushed_at":"2017-11-14T19:48:28.000Z","size":155,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T02:13:00.422Z","etag":null,"topics":["curl","hack"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/op.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,"zenodo":null}},"created_at":"2017-09-25T15:46:49.000Z","updated_at":"2020-04-15T23:50:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"8dac5384-e60d-4587-bf8d-93f54b4235b6","html_url":"https://github.com/op/coerl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/op/coerl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fcoerl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fcoerl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fcoerl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fcoerl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/op","download_url":"https://codeload.github.com/op/coerl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fcoerl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["curl","hack"],"created_at":"2024-10-13T10:57:17.326Z","updated_at":"2026-05-01T06:32:47.837Z","avatar_url":"https://github.com/op.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coerl\n\ncörl colourises [curl]'s output.\n\n[curl]: https://curl.haxx.se\n\n## Usage\n\nUse coerl instead of curl. curl is still required.\n\n[![Example](coerl.png)](coerl.png)\n\n```sh\n$ COERL_SSL_DATA_OFF=0 coerl -vs -d '{}'\n$ COERL_TEXT_OFF=1 COERL_SSL_DATA_OFF=1 coerl --compressed -sv 'https://api.spotify.com/v1/search' | jq .\n\n$ alias curl=coerl\n$ curl -sv -L https://google.com \u003e /dev/null\n$ COERL_DATA_OFF=1 COERL_TEXT_OFF=1 curl -sv -L https://google.com \u003e /dev/null\n```\n\n## Installation\n\n```sh\n$ go get -u github.com/op/coerl\n```\n\n## Knobs\n\nCustomise coerl by using environmental variables.\n\n* `COERL_CURL_BIN` -- path to executable [curl]\n\nColors:\n\n* `COERL_HEADER`\n* `COERL_TEXT`\n* `COERL_DATA`\n* `COERL_SSL_DATA`\n\nSilence output:\n\n* `COERL_HEADER_OFF`\n* `COERL_TEXT_OFF`\n* `COERL_DATA_OFF`\n\n### Even more knobs\n\nThese knobs also exist but defaults to the corresponding ones above.\n\n* `COERL_HEADER_OUT`\n* `COERL_HEADER_IN`\n* `COERL_DATA_IN`\n* `COERL_DATA_OUT`\n* `COERL_SSL_DATA_IN`\n* `COERL_SSL_DATA_OUT`\n\n* `COERL_HEADER_OUT_OFF`\n* `COERL_HEADER_IN_OFF`\n* `COERL_DATA_IN_OFF`\n* `COERL_DATA_OUT_OFF`\n* `COERL_SSL_DATA_OFF`\n* `COERL_SSL_DATA_IN_OFF`\n* `COERL_SSL_DATA_OUT_OFF`\n\n## Background\n\nShort version:\n\n* `-v` has too much data\n* `-I` writes to stdout and breaks piping\n* colours can help\n\ncurl together with its (verbose) output is great in many ways. The\n`--include` flag includes the HTTP-header in the output. However this\nbreaks piping of the output, to eg. [jq] or [rq], since headers are\nwritten to stdout. Using the `--verbose` flag fixes this but also\nintroduces heaps of output.\n\n[jq]: https://stedolan.github.io/jq/\n[rq]: https://github.com/dflemstr/rq\n\nThis hack adds some colours to the `--verbose` output of curl.\n\nCredit goes to [httpstat] for inspiration.\n\n[httpstat]: https://github.com/reorx/httpstat\n\n## Limitations\n\nGuessing is done to determine if the data is for SSL or not.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fop%2Fcoerl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fop%2Fcoerl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fop%2Fcoerl/lists"}