{"id":13793520,"url":"https://github.com/okwolf/hyperapp-fx","last_synced_at":"2025-05-12T20:31:05.796Z","repository":{"id":44583577,"uuid":"109798816","full_name":"okwolf/hyperapp-fx","owner":"okwolf","description":"Effects for use with Hyperapp","archived":false,"fork":false,"pushed_at":"2024-11-01T07:01:16.000Z","size":212,"stargazers_count":115,"open_issues_count":0,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-18T20:59:22.868Z","etag":null,"topics":["animation","debounce","delay","effects","fetch","frame","history","http","hyperapp","hyperapp-fx","keyboard","localstorage","random","requestanimationframe","settimeout","throttle","time"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/okwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-07T07:02:27.000Z","updated_at":"2024-10-24T04:09:59.000Z","dependencies_parsed_at":"2022-09-26T21:50:59.370Z","dependency_job_id":null,"html_url":"https://github.com/okwolf/hyperapp-fx","commit_stats":null,"previous_names":["okwolf/hyperapp-effects"],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okwolf%2Fhyperapp-fx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okwolf%2Fhyperapp-fx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okwolf%2Fhyperapp-fx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okwolf%2Fhyperapp-fx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okwolf","download_url":"https://codeload.github.com/okwolf/hyperapp-fx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253816698,"owners_count":21968869,"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":["animation","debounce","delay","effects","fetch","frame","history","http","hyperapp","hyperapp-fx","keyboard","localstorage","random","requestanimationframe","settimeout","throttle","time"],"created_at":"2024-08-03T23:00:23.213Z","updated_at":"2025-05-12T20:31:05.200Z","avatar_url":"https://github.com/okwolf.png","language":"JavaScript","readme":"# Hyperapp FX\n\n[![Build Status](https://github.com/okwolf/hyperapp-fx/actions/workflows/ci.yml/badge.svg)](https://github.com/okwolf/hyperapp-fx/actions)\n[![Codecov](https://img.shields.io/codecov/c/github/okwolf/hyperapp-fx/master.svg)](https://codecov.io/gh/okwolf/hyperapp-fx)\n[![npm](https://img.shields.io/npm/v/hyperapp-fx.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/hyperapp-fx)\n\nA handy set of effects for use with [Hyperapp](https://github.com/jorgebucaran/hyperapp).\n\n## Getting Started\n\nHere's a taste of how to use a common effect for making HTTP requests. The app displays inspiring quotes about design, fetching a new quote each time the user clicks on the current one. Go ahead and [try it online here](https://codepen.io/okwolf/pen/vPbMaa?editors=0010).\n\n```js\nimport { app, h, text } from \"hyperapp\";\nimport { Http } from \"hyperapp-fx\";\n\nconst GetQuote = () =\u003e [\n  \"...\",\n  Http({\n    url: \"https://api.quotable.io/random\",\n    action: (_, { content }) =\u003e content\n  })\n];\n\napp({\n  init: \"Click here for quotes\",\n  view: quote =\u003e h(\"h1\", { onclick: GetQuote }, text(quote)),\n  node: document.getElementById(\"app\")\n});\n```\n\nMore [examples](https://github.com/okwolf/hyperapp-playground) are available to show other effects in action.\n\n## Installation\n\n\u003cpre\u003e\nnpm i \u003ca href=https://www.npmjs.com/package/hyperapp-fx\u003ehyperapp-fx\u003c/a\u003e\n\u003c/pre\u003e\n\nThen with a module bundler like [Rollup](https://rollupjs.org) or [Webpack](https://webpack.js.org), use as you would anything else.\n\n```js\nimport { Http } from \"hyperapp-fx\";\n```\n\nIf you don't want to set up a build environment, you can import Hyperapp FX from a CDN like [esm.sh](https://esm.sh/hyperapp-fx). We support all modern browsers used by at least 1% of the world.\n\n```js\nimport { Http } from \"https://esm.sh/hyperapp-fx\";\n```\n\n## [API documentation](api.md)\n\n## License\n\nHyperapp FX is MIT licensed. See [LICENSE](LICENSE.md).\n","funding_links":[],"categories":["Utilities V1"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokwolf%2Fhyperapp-fx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokwolf%2Fhyperapp-fx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokwolf%2Fhyperapp-fx/lists"}