{"id":39584711,"url":"https://github.com/suri-framework/trail","last_synced_at":"2026-01-26T15:01:16.835Z","repository":{"id":207466665,"uuid":"718952629","full_name":"suri-framework/trail","owner":"suri-framework","description":"Minimal composable server framework for Riot","archived":false,"fork":false,"pushed_at":"2024-04-30T09:54:57.000Z","size":87,"stargazers_count":40,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-02T06:18:58.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"OCaml","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/suri-framework.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-11-15T06:02:01.000Z","updated_at":"2024-04-30T09:55:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca4e8c16-3de7-4bee-acdc-fe92901579e8","html_url":"https://github.com/suri-framework/trail","commit_stats":null,"previous_names":["leostera/trail","suri-framework/trail"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/suri-framework/trail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suri-framework%2Ftrail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suri-framework%2Ftrail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suri-framework%2Ftrail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suri-framework%2Ftrail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suri-framework","download_url":"https://codeload.github.com/suri-framework/trail/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suri-framework%2Ftrail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28781308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"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-01-18T07:35:27.099Z","updated_at":"2026-01-26T15:01:16.830Z","avatar_url":"https://github.com/suri-framework.png","language":"OCaml","readme":"# Trail \n\nTrail is a minimalistic, composable framework for building HTTP/WebSocket\nservers, inspired by [Plug][plug] \u0026 [WebSock][websock]. It provides its users\nwith a small set of abstractions for building _trails_ that can be assembled to\nhandle a request.\n\nTo create a Trail, you can use the syntax `Trail.[fn1;fn2;fn3;...]`, where each\nfunction takes a connection object and an arbitrary context, to produce a new\nconnection object.\n\nFor example:\n\n```ocaml\nopen Trail\nopen Router\n\nlet endpoint =\n  [\n    use (module Logger) Logger.(args ~level:Debug ());\n    router\n      [\n        socket \"/ws\" (module My_handler) ();\n        get \"/\" (fun conn -\u003e Conn.send_response `OK {%b|\"hello world\"|} conn);\n        scope \"/api\"\n          [\n            get \"/version\" (fun conn -\u003e\n                Conn.send_response `OK {%b|\"none\"|} conn);\n          ];\n      ];\n  ]\n```\n\n[riot]: https://github.com/leostera/riot\n[plug]: https://hexdocs.pm/plug/readme.html\n","funding_links":[],"categories":["\u003ca name=\"OCaml\"\u003e\u003c/a\u003eOCaml"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuri-framework%2Ftrail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuri-framework%2Ftrail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuri-framework%2Ftrail/lists"}