{"id":20205008,"url":"https://github.com/iarthstar/purescript-axios","last_synced_at":"2025-08-19T08:39:21.311Z","repository":{"id":47110912,"uuid":"200734764","full_name":"iarthstar/purescript-axios","owner":"iarthstar","description":"Axios JS bindings for PureScript","archived":false,"fork":false,"pushed_at":"2021-09-13T04:43:52.000Z","size":33,"stargazers_count":3,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-10T16:51:40.654Z","etag":null,"topics":["axios","bindings","javascript","purescript","rest-api","wrapper"],"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/iarthstar.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":"2019-08-05T22:00:54.000Z","updated_at":"2021-09-13T04:51:20.000Z","dependencies_parsed_at":"2022-09-13T03:11:29.773Z","dependency_job_id":null,"html_url":"https://github.com/iarthstar/purescript-axios","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/iarthstar/purescript-axios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iarthstar%2Fpurescript-axios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iarthstar%2Fpurescript-axios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iarthstar%2Fpurescript-axios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iarthstar%2Fpurescript-axios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iarthstar","download_url":"https://codeload.github.com/iarthstar/purescript-axios/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iarthstar%2Fpurescript-axios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271123452,"owners_count":24703232,"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-08-19T02:00:09.176Z","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":["axios","bindings","javascript","purescript","rest-api","wrapper"],"created_at":"2024-11-14T05:16:14.156Z","updated_at":"2025-08-19T08:39:21.259Z","avatar_url":"https://github.com/iarthstar.png","language":"PureScript","readme":"# purescript-axios\n\nAxios JS bindings for PureScript\n\n- [Module Documentation](https://pursuit.purescript.org/packages/purescript-axios/)\n- [Example](https://github.com/iarthstar/purescript-axios/blob/master/test/Main.purs)\n\n## Add purescript-axios to your existing projects\n\n```bash\nbower i purescript-axios\n```\n\n## Code Snippet\n\n```purescript\nnewtype GetReleaseInfoReq = GetReleaseInfoReq\n  { username :: String\n  , reponame :: String\n  }\nderive instance genericGetReleaseInfoReq :: Generic GetReleaseInfoReq _\ninstance encodeGetReleaseInfoReq :: Encode GetReleaseInfoReq where \n  encode = genericEncode (defaultOptions { unwrapSingleConstructors = true })\n\nnewtype GetReleaseInfoRes = GetReleaseInfoRes\n  { total_download_count :: Int\n  }\nderive instance genericGetReleaseInfoRes :: Generic GetReleaseInfoRes _\ninstance encodeGetReleaseInfoRes :: Decode GetReleaseInfoRes where \n  decode = genericDecode (defaultOptions { unwrapSingleConstructors = true })\n\n-- | Axios instance for GetReleaseInfo API\ninstance axiosGetReleaseInfo :: Axios GetReleaseInfoReq GetReleaseInfoRes where \n  axios = defaultAxios \"https://grandeur-backend.herokuapp.com/gh_api/get_release_info/\" POST\n\nmain :: Effect Unit\nmain = launchAff_ do\n  let configPost = GetReleaseInfoReq { username : \"iarthstar\", reponame : \"shadows-utilities\" }\n  axios configPost \u003e\u003e= case _ of\n    Right (GetReleaseInfoRes a) -\u003e log $ \"POST ----\u003e \" \u003c\u003e show a.total_download_count\n    Left err -\u003e logShow err\n```\n\n## Development Guide\n\n#### NOTE : Please make sure you have yarn :: [Installing yarn](https://yarnpkg.com/en/docs/install)\n\n* Build Project\n\n```bash\n$ yarn install\n$ yarn build\n```\n\n* To Test\n\n```bash\n$ yarn test\n```\n\n* To watch for changes\n\n```bash\n$ yarn start\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiarthstar%2Fpurescript-axios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiarthstar%2Fpurescript-axios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiarthstar%2Fpurescript-axios/lists"}