{"id":31813721,"url":"https://github.com/haskell-miso/miso-fetch","last_synced_at":"2025-10-11T08:20:56.648Z","repository":{"id":307163668,"uuid":"1026738556","full_name":"haskell-miso/miso-fetch","owner":"haskell-miso","description":"⚡ An example demonstrating AJAX requests in miso","archived":false,"fork":false,"pushed_at":"2025-09-07T02:07:15.000Z","size":63,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-07T03:27:35.356Z","etag":null,"topics":["ajax","fetch","fetch-api","haskell","miso"],"latest_commit_sha":null,"homepage":"https://fetch.haskell-miso.org/","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haskell-miso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"open_collective":"miso","github":["dmjio"]}},"created_at":"2025-07-26T14:07:27.000Z","updated_at":"2025-09-07T02:07:18.000Z","dependencies_parsed_at":"2025-09-07T03:14:48.358Z","dependency_job_id":"8f552d0f-155d-4cfd-a45b-c8f81fd16465","html_url":"https://github.com/haskell-miso/miso-fetch","commit_stats":null,"previous_names":["haskell-miso/miso-fetch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haskell-miso/miso-fetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haskell-miso%2Fmiso-fetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haskell-miso%2Fmiso-fetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haskell-miso%2Fmiso-fetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haskell-miso%2Fmiso-fetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haskell-miso","download_url":"https://codeload.github.com/haskell-miso/miso-fetch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haskell-miso%2Fmiso-fetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006769,"owners_count":26084148,"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-10-11T02:00:06.511Z","response_time":55,"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":["ajax","fetch","fetch-api","haskell","miso"],"created_at":"2025-10-11T08:20:55.495Z","updated_at":"2025-10-11T08:20:56.637Z","avatar_url":"https://github.com/haskell-miso.png","language":"Haskell","funding_links":["https://opencollective.com/miso","https://github.com/sponsors/dmjio"],"categories":[],"sub_categories":[],"readme":"# :ramen: ⚡ miso-fetch\n\n\u003ca href=\"https://fetch.haskell-miso.org/\"\u003e\n  \u003cimg width=\"708\" height=\"349\" alt=\"image\" src=\"https://github.com/user-attachments/assets/62e6e3dc-ad69-4fdd-bdff-186efc6e51eb\" /\u003e\n\u003c/a\u003e\n\n### Usage\n\n```haskell\n----------------------------------------------------------------------------\ndata Action\n  = FetchGitHub\n  | SetGitHub (Response GitHub)\n  | ErrorHandler (Response MisoString)\n----------------------------------------------------------------------------\napp :: App Model Action\napp = component emptyModel updateModel viewModel\n----------------------------------------------------------------------------\nupdateModel :: Action -\u003e Transition Model Action\nupdateModel = \\case\n  FetchGitHub -\u003e\n    getJSON \"https://api.github.com\" [] SetGitHub ErrorHandler\n  SetGitHub Response {..} -\u003e\n    info ?= body\n  ErrorHandler Response {..} -\u003e\n    io_ (consoleError body)\n----------------------------------------------------------------------------\n```\n\n## Build and run\n\nInstall [Nix Flakes](https://nixos.wiki/wiki/Flakes), then:\n\n```\nnix develop .#wasm\nmake\nmake serve\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaskell-miso%2Fmiso-fetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaskell-miso%2Fmiso-fetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaskell-miso%2Fmiso-fetch/lists"}