{"id":13682370,"url":"https://github.com/Woody88/purescript-warp","last_synced_at":"2025-04-30T09:32:10.327Z","repository":{"id":55014189,"uuid":"229874730","full_name":"Woody88/purescript-warp","owner":"Woody88","description":"Purescript server library based on WAI. Inspired by the Haskell version.   ","archived":false,"fork":false,"pushed_at":"2021-03-08T16:12:02.000Z","size":84,"stargazers_count":23,"open_issues_count":3,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-02T13:34:02.788Z","etag":null,"topics":["http-server","purescript","server","wai","warp"],"latest_commit_sha":null,"homepage":"","language":"PureScript","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/Woody88.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-24T05:13:26.000Z","updated_at":"2024-08-02T13:34:02.789Z","dependencies_parsed_at":"2022-08-14T09:10:11.710Z","dependency_job_id":null,"html_url":"https://github.com/Woody88/purescript-warp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Woody88%2Fpurescript-warp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Woody88%2Fpurescript-warp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Woody88%2Fpurescript-warp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Woody88%2Fpurescript-warp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Woody88","download_url":"https://codeload.github.com/Woody88/purescript-warp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224206038,"owners_count":17273378,"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":["http-server","purescript","server","wai","warp"],"created_at":"2024-08-02T13:01:44.995Z","updated_at":"2024-11-12T02:30:29.665Z","avatar_url":"https://github.com/Woody88.png","language":"PureScript","funding_links":[],"categories":["PureScript"],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Woody88/purescript-warp/blob/master/LICENSE)\n![CI](https://github.com/Woody88/purescript-warp/workflows/CI/badge.svg?branch=master)\n# Warp\n\nA server handler for WAI which wraps node's http module.\n\nTable of Contents\n-----------------\n\n  * [Installation](#installation)\n  * [Usage](#usage)\n  * [Contributing](#contributing)\n  * [Changelog](#changelog)\n  * [License](#license)\n\n## Installation\n\n***This library is not yet published to pursuit.***  \nYou can install this package by adding the details below to your packages.dhall:\n\n\u003csummary\u003e\u003cstrong\u003eUsing Spago\u003c/strong\u003e\u003c/summary\u003e\n\n```dhall\nlet additions =\n      { warp =\n        { dependencies = [ \"console\", \"effect\", \"generics-rep\", \"node-fs-aff\", \"node-http\", \"wai\" ]\n        , repo = \"https://github.com/Woody88/purescript-warp.git\"\n        , version = \"master\"\n        }\n      , wai =\n        { dependencies = [ \"aff\", \"effect\", \"http-types\", \"node-net\" ]\n        , repo = \"https://github.com/Woody88/purescript-wai.git\"\n        , version = \"master\"\n        }\n      , http-types =\n        { dependencies = [ \"tuples\", \"unicode\", \"generics-rep\" ]\n        , repo = \"https://github.com/Woody88/purescript-http-types.git\"\n        , version = \"master\"\n        }\n      }\n```\n\n```console\nuser@user:~$ spago install warp\n```\n\n## Usage \n\n### Hello World \n```purescript \nimport Prelude\n\nimport Data.Tuple.Nested ((/\\))\nimport Effect (Effect)\nimport Effect.Class.Console as Console\nimport Network.HTTP.Types (ok200)\nimport Network.HTTP.Types.Header (hContentType)\nimport Network.Wai (Application, responseStr)\nimport Network.Warp.Run (runSettings)\nimport Network.Warp.Settings (defaultSettings)\n\nmain :: Effect Unit\nmain = do \n    let beforeMainLoop = Console.log $ \"Listening on port \" \u003c\u003e show defaultSettings.port\n    void $ runSettings defaultSettings { beforeMainLoop = beforeMainLoop } app \n\napp :: Application \napp req f = do\n    f $ responseStr ok200 [(hContentType /\\ \"text/plain\")] \"Hello, World!\"\n```\n\n## Contributing\n\nIf you are interested in fixing issues and contributing directly to the code base,\nplease see the [contributing guidelines](https://github.com/Woody88/purescript-warp/blob/master/CONTRIBUTING.md).\n\n## Changelog\n\nChange log details can be found [here](https://github.com/Woody88/purescript-warp/blob/master/CHANGELOG.md) \n\n## License\n\nLicensed under the [MIT](https://github.com/Woody88/purescript-warp/blob/master/LICENSE) license.\nCopyright (c) 2021 Woodson Delhia. All rights reserved.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWoody88%2Fpurescript-warp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWoody88%2Fpurescript-warp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWoody88%2Fpurescript-warp/lists"}