{"id":13800272,"url":"https://github.com/purescript-hyper/purescript-trout","last_synced_at":"2026-02-22T17:08:27.756Z","repository":{"id":53922837,"uuid":"83970617","full_name":"purescript-hyper/purescript-trout","owner":"purescript-hyper","description":" Type-Level Routing for PureScript","archived":false,"fork":false,"pushed_at":"2020-06-22T13:42:02.000Z","size":171,"stargazers_count":41,"open_issues_count":3,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-02-17T00:49:48.949Z","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-03-05T13:07:44.000Z","updated_at":"2024-01-27T15:50:01.000Z","dependencies_parsed_at":"2022-08-13T04:30:35.403Z","dependency_job_id":null,"html_url":"https://github.com/purescript-hyper/purescript-trout","commit_stats":null,"previous_names":["owickstrom/purescript-hyper-routing","owickstrom/purescript-trout"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/purescript-hyper/purescript-trout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-hyper%2Fpurescript-trout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-hyper%2Fpurescript-trout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-hyper%2Fpurescript-trout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-hyper%2Fpurescript-trout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purescript-hyper","download_url":"https://codeload.github.com/purescript-hyper/purescript-trout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-hyper%2Fpurescript-trout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29719621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"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":"2024-08-04T00:01:10.975Z","updated_at":"2026-02-22T17:08:27.734Z","avatar_url":"https://github.com/purescript-hyper.png","language":"PureScript","readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003e\n\u003cimg src=\"trout.jpg\"\n      alt=\"Trout\"\n      width=\"300\"\u003e\n\u003cbr\u003e\nTrout\n\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cem\u003eType-Level Routing for PureScript\u003c/em\u003e\n\u003c/p\u003e\n\n\u003chr\u003e\n\n_Trout_ is a Servant-style routing type API. By using *routing types* you get\nstatic guarantees about having handled all cases. You also get a lot of stuff\nfor free, such as type-safe parameters for handlers, and automatically\ngenerated type-safe URIs to endpoints.\n\nThe primary use of Trout right now is for [Hyper](https://hyper.wickstrom.tech)\nand the\n[purescript-hypertrout](https://purescript-hyper.github.io/purescript-hypertrout/)\nserver package. There is, however, nothing Hyper-specific about this package.\n\n## Usage\n\n```bash\nbower install --save purescript-trout\n```\n\n_This package should get its own proper documentation soon. In the meantime,\nsee [purescript-hypertrout](https://purescript-hyper.github.io/purescript-hypertrout/)._\n\n## API Documentation\n\nThis library's API documentation is published [on Pursuit](https://pursuit.purescript.org/packages/purescript-trout).\n\n## Changelog\n\n* 0.12.3\n  - Update for `argonaut` API changes.\n* 0.12.2\n  - Add `Header`.\n* 0.12.1\n  - Add `ReqBody`.\n* 0.12.0\n  - PureScript 0.13 compiler support\n  - Various dependency upgrades\n* 0.11.0\n  - PureScript 0.12 compiler support\n  - Various dependency upgrades\n* 0.10.0\n  - Routes are now named. The following routes are written in the old format,\n    compatible with 0.9.x:\n\n    ```purescript\n    type TestSite =\n           Resource (Get (HTML :\u003c|\u003e JSON) Home)\n      :\u003c|\u003e \"users\" :/ Resource (Get (HTML :\u003c|\u003e JSON) Home)\n    ```\n\n    When ported to 0.10.0, they become named:\n\n    ```purescript\n    type TestSite =\n           \"home\"  := Resource (Get (HTML :\u003c|\u003e JSON) Home)\n      :\u003c|\u003e \"users\" := \"users\" :/ Resource (Get (HTML :\u003c|\u003e JSON) Home)\n    ```\n\n    The route name and the literal route segments are orthogonal; there is no\n    relation between the name `\"users\"` and the segment `\"users\"` in the above\n    routes, as far as Trout is concerned. The name is only used to identify\n    the route when deriving functionality from the routes, e.g. to obtain a\n    URI to a specific resource.\n* 0.9.1\n  - Change `AltE` infix operator to right-associative\n* 0.9.0\n  - Add support for query params\n  - Move content types to `Method`, instead of in `Resource`, e.g.\n    `Resource (Get MyThing) JSON` becomes `Resource (Get MyThing JSON)`.\n* 0.8.1\n  - Better documentation on the Trout API\n* 0.8.0\n  - Rename top-module to `Type.Trout`\n* 0.7.0\n  - Rename to Trout\n  - Bump deps for 0.11.x compatibility\n* 0.6.0\n  - Restructure API to include notion of a Resource\n* 0.5.0\n  - Remove server part, keep only API\n* 0.4.1\n  - Use Hyper 0.4.1\n* 0.4.0\n  - Use upcoming Hyper 0.4.0\n  - Initial version, extracted from main Hyper repo\n\n## License\n\n[Mozilla Public License Version 2.0](LICENSE)\n\nLogo credit: \u003chttps://commons.wikimedia.org/wiki/File:Lake_Trout_GLERL.jpg\u003e\n","funding_links":[],"categories":["URL Routers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-hyper%2Fpurescript-trout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurescript-hyper%2Fpurescript-trout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-hyper%2Fpurescript-trout/lists"}