{"id":32232240,"url":"https://github.com/purescript-hyper/purescript-trout-client","last_synced_at":"2025-12-12T03:06:34.695Z","repository":{"id":58222725,"uuid":"81002340","full_name":"purescript-hyper/purescript-trout-client","owner":"purescript-hyper","description":"Automatically derived XHR clients for Trout routing types.","archived":false,"fork":false,"pushed_at":"2020-07-28T13:53:48.000Z","size":53,"stargazers_count":21,"open_issues_count":1,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-22T11:54:36.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purescript-hyper.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}},"created_at":"2017-02-05T15:39:54.000Z","updated_at":"2022-10-18T16:49:04.000Z","dependencies_parsed_at":"2022-08-31T03:24:11.890Z","dependency_job_id":null,"html_url":"https://github.com/purescript-hyper/purescript-trout-client","commit_stats":null,"previous_names":["owickstrom/purescript-hyper-routing-xhr","owickstrom/purescript-trout-client"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/purescript-hyper/purescript-trout-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-hyper%2Fpurescript-trout-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-hyper%2Fpurescript-trout-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-hyper%2Fpurescript-trout-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-hyper%2Fpurescript-trout-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purescript-hyper","download_url":"https://codeload.github.com/purescript-hyper/purescript-trout-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-hyper%2Fpurescript-trout-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280431500,"owners_count":26329786,"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-10-22T02:00:06.515Z","response_time":63,"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":[],"created_at":"2025-10-22T11:54:46.214Z","updated_at":"2025-10-22T11:54:47.238Z","avatar_url":"https://github.com/purescript-hyper.png","language":"PureScript","readme":"# Trout Client\n\n_Automatically derived XHR clients for Trout routing types._\n\n## Usage\n\n```bash\nbower install --save purescript-trout-client\n```\n\n## Examples\n\n### [Client/Server](example/client-server/src)\n\nThis example shows the integration of client and server based on a common\n[Trout](https://github.com/purescript-hyper/purescript-trout) routing type for\nan API. AJAX clients are generated by this package for all endpoints, and the\nclient-side application can safely request resources without having to\nduplicate routing information and JSON encoding and decoding instances.\n\n```bash\nmake client-server-example\n```\n\n### [Client Only](example/client/src/Main.purs)\n\nThis example demonstrates how AJAX clients can be derived from a\n[Trout](https://github.com/purescript-hyper/purescript-trout) routing type that\nmodels a foreign API.\n\n```bash\nmake client-example\n```\n\n## API Documentation\n\nThis library's API documentation is published [on Pursuit](https://pursuit.purescript.org/packages/purescript-trout-client).\n\n## Changelog\n\n* **0.13.0**\n  - Typed Argonaut and Affjax errors\n  - Base URI support\n* **0.12.1**\n  - Updates for new version of Argonaut\n* **0.12.0**\n  - Added support for `ReqBody` and `Header` combinators.\n  - Various dependency upgrades\n* **0.11.0**\n  - Updates for PureScript 0.13\n  - Various dependency upgrades\n  - Conversion to Spago as primary package manager and build tool\n* **0.10.0**\n  - Added instances for `QueryParam` and `QueryParams`\n* **0.8.0**\n  - Upgraded to Trout 0.10.0, and all clients are now derived as records, based\n    on the named routing types. Specific methods of a resource are accesible\n    under the corresponding uppercase field in the resource client record, e.g.\n    `site.admin.logs.\"GET\"`.\n\n## License\n\n[Mozilla Public License Version 2.0](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-hyper%2Fpurescript-trout-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurescript-hyper%2Fpurescript-trout-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-hyper%2Fpurescript-trout-client/lists"}