{"id":21669377,"url":"https://github.com/attack-monkey/hyperapp-count-ts-jsx-parcel","last_synced_at":"2026-05-13T07:38:45.691Z","repository":{"id":91874034,"uuid":"155613624","full_name":"attack-monkey/hyperapp-count-ts-jsx-parcel","owner":"attack-monkey","description":"hyperapp's counter app built using jsx in typescript and bundled with parcel.js","archived":false,"fork":false,"pushed_at":"2018-11-02T19:10:26.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-25T08:44:04.031Z","etag":null,"topics":["hyperapp","hyperapp-boilerplate","jsx","parceljs","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/attack-monkey.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}},"created_at":"2018-10-31T19:39:03.000Z","updated_at":"2018-11-02T19:10:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f01957f-88e8-4cbd-9671-c4c73d7e0226","html_url":"https://github.com/attack-monkey/hyperapp-count-ts-jsx-parcel","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/attack-monkey%2Fhyperapp-count-ts-jsx-parcel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attack-monkey%2Fhyperapp-count-ts-jsx-parcel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attack-monkey%2Fhyperapp-count-ts-jsx-parcel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attack-monkey%2Fhyperapp-count-ts-jsx-parcel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/attack-monkey","download_url":"https://codeload.github.com/attack-monkey/hyperapp-count-ts-jsx-parcel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244570273,"owners_count":20474022,"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":["hyperapp","hyperapp-boilerplate","jsx","parceljs","typescript"],"created_at":"2024-11-25T12:21:31.632Z","updated_at":"2026-05-13T07:38:45.685Z","avatar_url":"https://github.com/attack-monkey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyperapp - Counter App (typescript / parcel / jsx)\n\n\u003e Hyperapp's counter app modularised and typed using parcel.js (bundler) and typescript.\n\n## Install\n\nInstall parcel.js globally (This is the bundler)\n\n```\n\nnpm install -g parcel-bundler\n\n```\n\nInstall dependencies\n\n```\n\nnpm install\n\n```\n\n## Start\n\n```\n\nnpm start\n\n```\n\n## Immutable Update\n\nThis app uses iu-ts (immutable update - typescript) to immutably update deep nested objects.  \n\n**Declarative actions are still recommended**, however using iu-ts removes the need to nest actions (allowing for easier refactor).\n\neg.\n\n```tsx\n\n// The following immutably increments state.counter.count using iu\n\n\u003cbutton onclick={() =\u003e actions.counterUp(1))}\u003e-\u003c/button\u003e\n\n\n```\n\n```ts\n\nexport const actions: Actions = {\n    counterUp: value =\u003e state =\u003e iu(state, 'counter/count', state.counter.count + value),\n    counterDown: value =\u003e state =\u003e iu(state, 'counter/count', state.counter.count - value)\n}\n\n```\n\n\n## Dir Structure\n\n```\n\n- index.html\n- index.tsx\n- src\n    - actions\n    - components\n        - main (entry component)\n            - main.component.tsx\n            - *Next component down - etc.*\n        - shared (shared components)\n    - state\n    - utils\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fattack-monkey%2Fhyperapp-count-ts-jsx-parcel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fattack-monkey%2Fhyperapp-count-ts-jsx-parcel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fattack-monkey%2Fhyperapp-count-ts-jsx-parcel/lists"}