{"id":13793493,"url":"https://github.com/hyperstart/hyperapp-devtools","last_synced_at":"2025-05-12T20:31:04.993Z","repository":{"id":161665240,"uuid":"126442156","full_name":"hyperstart/hyperapp-devtools","owner":"hyperstart","description":"Developer tools for Hyperapp projects.","archived":false,"fork":false,"pushed_at":"2018-05-22T16:07:13.000Z","size":914,"stargazers_count":27,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T13:10:55.150Z","etag":null,"topics":["debugger","developer-tools","devtools","hyperapp"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperstart.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-23T06:22:50.000Z","updated_at":"2024-08-03T23:02:05.009Z","dependencies_parsed_at":"2023-05-27T11:15:26.175Z","dependency_job_id":null,"html_url":"https://github.com/hyperstart/hyperapp-devtools","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperstart%2Fhyperapp-devtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperstart%2Fhyperapp-devtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperstart%2Fhyperapp-devtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperstart%2Fhyperapp-devtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperstart","download_url":"https://codeload.github.com/hyperstart/hyperapp-devtools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253816693,"owners_count":21968868,"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":["debugger","developer-tools","devtools","hyperapp"],"created_at":"2024-08-03T23:00:22.423Z","updated_at":"2025-05-12T20:31:03.893Z","avatar_url":"https://github.com/hyperstart.png","language":"TypeScript","readme":"# hyperapp-devtools\n\nDeveloper tools for Hyperapp projects.  \nThese tools have been extracted from [hyperstart's](https://hyperstart.io) debugger.\n\nThis is an higher order application (HOA) that records every action and allow the user to see input argument, output and state at every step.\n\nSee it in action here:\n\n![debugger in action](https://user-images.githubusercontent.com/8634093/39748206-c91f27d6-52af-11e8-8727-867f806190b9.gif)\n\n## Installation\n\nInstall it from npm:\n\n```\nnpm install hyperapp-devtools --save-dev\n```\n\nOr get it directly from unpkg:\n\n```html\n\u003cscript src=\"https://unpkg.com/hyperapp-devtools\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nJust wrap your hyperapp:\n\n```js\nimport { h, app } from \"hyperapp\"\nimport devtools from \"hyperapp-devtools\"\n\nconst state = {\n  count: 0\n}\n\nconst actions = {\n  down: value =\u003e state =\u003e ({ count: state.count - value }),\n  up: value =\u003e state =\u003e ({ count: state.count + value })\n}\n\nconst view = (state, actions) =\u003e (\n  \u003cdiv\u003e\n    \u003ch1\u003e{state.count}\u003c/h1\u003e\n    \u003cbutton onclick={() =\u003e actions.down(1)}\u003e-\u003c/button\u003e\n    \u003cbutton onclick={() =\u003e actions.up(1)}\u003e+\u003c/button\u003e\n  \u003c/div\u003e\n)\n\ndevtools(app)(state, actions, view, document.body)\n```\n\n## Contributing\n\nOnce you cloned the project and `npm install` the dependencies, you can run the examples with `npm start`.\n\n## License\n\nGPL\n\n**TLDR**\n\n* You may use this to debug your own projects (open source, closed source, free, commercial, anything goes...)\n* If you distribute this as part of your product/project, the project must be GPL (if that's not OK, please contact us).\n","funding_links":[],"categories":["Utilities V1"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperstart%2Fhyperapp-devtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperstart%2Fhyperapp-devtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperstart%2Fhyperapp-devtools/lists"}