{"id":16743947,"url":"https://github.com/zshipko/yurt","last_synced_at":"2025-04-10T13:40:41.254Z","repository":{"id":79821472,"uuid":"68344874","full_name":"zshipko/yurt","owner":"zshipko","description":"OCaml HTTP Microframework","archived":false,"fork":false,"pushed_at":"2020-05-09T20:54:25.000Z","size":253,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T12:21:26.667Z","etag":null,"topics":["cohttp","ocaml","yurt"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zshipko.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-09-16T01:37:13.000Z","updated_at":"2023-07-25T14:04:16.000Z","dependencies_parsed_at":"2023-09-14T03:17:17.832Z","dependency_job_id":null,"html_url":"https://github.com/zshipko/yurt","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshipko%2Fyurt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshipko%2Fyurt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshipko%2Fyurt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zshipko%2Fyurt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zshipko","download_url":"https://codeload.github.com/zshipko/yurt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225943,"owners_count":21068088,"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","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":["cohttp","ocaml","yurt"],"created_at":"2024-10-13T01:42:03.344Z","updated_at":"2025-04-10T13:40:41.247Z","avatar_url":"https://github.com/zshipko.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yurt\n====\n\n`yurt` is an HTTP microframework for OCaml based on [Cohttp](https://github.com/mirage/ocaml-cohttp).\n\n## Features\n\n* Simple API\n* Multipart forms\n* Regex based URL routing\n* Functional templates\n\n## Installation\n\n    opam install yurt\n\n## Usage\n\n```ocaml\nopen Yurt\n\nlet _ =\nlet open Server in\n\n(* Create a server *)\nserver \"127.0.0.1\" 1234\n\n(* Add a handler *)\n\u003e| get \"/\u003cname:string\u003e\" (fun req params body -\u003e\n    (* Get the url parameter called `name` *)\n    let name = Route.string params \"name\" in\n    let body = Yurt_html.h1 (Printf.sprintf \"Hello %s!\\n\" name) in\n    html body)\n\n(* Run it *)\n|\u003e run\n```\n\nSee `example/example.ml` for more examples.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzshipko%2Fyurt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzshipko%2Fyurt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzshipko%2Fyurt/lists"}