{"id":47110996,"url":"https://github.com/deref/pier","last_synced_at":"2026-03-12T17:44:23.689Z","repository":{"id":45077842,"uuid":"378534905","full_name":"deref/pier","owner":"deref","description":"A \"clientless\" implementation of HTTPie embedded in Go.","archived":false,"fork":false,"pushed_at":"2024-02-26T00:09:08.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-19T11:30:03.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/deref.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}},"created_at":"2021-06-20T01:25:29.000Z","updated_at":"2022-03-16T04:06:38.000Z","dependencies_parsed_at":"2024-06-19T11:24:17.796Z","dependency_job_id":"b7c176e3-01ae-45f9-be95-b759b547e08a","html_url":"https://github.com/deref/pier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deref/pier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deref%2Fpier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deref%2Fpier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deref%2Fpier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deref%2Fpier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deref","download_url":"https://codeload.github.com/deref/pier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deref%2Fpier/sbom","scorecard":{"id":335182,"data":{"date":"2025-08-11","repo":{"name":"github.com/deref/pier","commit":"b324533a676f063fef34d11a66bfd7378a793290"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T04:33:36.879Z","repository_id":45077842,"created_at":"2025-08-18T04:33:36.879Z","updated_at":"2025-08-18T04:33:36.879Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30435853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"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":[],"created_at":"2026-03-12T17:44:23.073Z","updated_at":"2026-03-12T17:44:23.665Z","avatar_url":"https://github.com/deref.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pier\n\nA \"clientless\" implementation of [HTTPie][1] embedded in Go.\n\nPier converts any implementation of [http.Handler][2] to a CLI tool with the\nconvenient argument syntax and features of HTTPie.\n\n## Motivation\n\nGo's compile and execute cycle is fast enough that you can practice\n\"REPL-driven development\" using Bash. However, this practice requires authoring\ncustom CLI tools, which can be tedious. Furthermore, if you're developing an\nHTTP service, the work of building a CLI tool feels redundant with all the\nwork you're doing to build a nice HTTP API. With Pier, no server or\nfile-watcher is required during iteration.\n\n## Usage\n\n### Install\n\n```bash\ngo get github.com/deref/pier\n```\n\n### Code\n\n```go\nimport (\n  \"github.com/deref/pier\"\n  \"example.com/your/app\"\n)\n\nfunc main() {\n  pier.Main(app.Handler)\n}\n```\n\nThen simply invoke with HTTPie syntax.\n\nThere is an example app in this repository. Try this:\n\n```bash\ngo run ./example /echo message=hello\n```\n\nSee [https://httpie.io/docs](https://httpie.io/docs) for more detailed documentation on command line usage.\n\n### Customization\n\nRight now, the only interesting option is BaseContext, which works similar to\nthat of Go's http.Server. Specify options by constructing a Peer:\n\n```go\npeer := \u0026pier.Peer{\n  Handler: app.Handler,\n  BaseContext: func(*http.Request) context.Context {\n    return context.Background()\n  },\n}\npeer.Main()\n```\n\n## Status\n\nStable enough for development use (which is the intended use anyway!)\n\nPier is implemented in terms of [nojima/httppie-go][3] and\ninherits its behavior completely. See the httpie-go readme for details.\n\n## Trivia\n\nWhere does the name come from?\n\nIn the past the author has referred to CLI tools in this style that bypass the\nclient/server as operating in \"peer\" mode. HTTPie + Peer = HTTPier. Shorter is\nbetter and \"Pier\" seemed to be mostly disused on Github, so here we are.\n\n[1]: https://httpie.io/\n[2]: https://golang.org/pkg/net/http/#Handler\n[3]: https://github.com/nojima/httpie-go\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderef%2Fpier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderef%2Fpier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderef%2Fpier/lists"}