{"id":23745094,"url":"https://github.com/cedmandocdoc/guhit","last_synced_at":"2025-10-29T22:46:51.192Z","repository":{"id":42720826,"uuid":"284020411","full_name":"cedmandocdoc/guhit","owner":"cedmandocdoc","description":"A reactive JavaScript library for building web user interfaces","archived":false,"fork":false,"pushed_at":"2023-03-05T10:18:30.000Z","size":865,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T15:49:09.260Z","etag":null,"topics":[],"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/cedmandocdoc.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,"zenodo":null}},"created_at":"2020-07-31T11:25:29.000Z","updated_at":"2022-02-16T10:09:04.000Z","dependencies_parsed_at":"2025-05-24T15:34:37.270Z","dependency_job_id":"9934463b-09a6-4ffc-ae90-d7051132ad2b","html_url":"https://github.com/cedmandocdoc/guhit","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cedmandocdoc/guhit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedmandocdoc%2Fguhit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedmandocdoc%2Fguhit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedmandocdoc%2Fguhit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedmandocdoc%2Fguhit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedmandocdoc","download_url":"https://codeload.github.com/cedmandocdoc/guhit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedmandocdoc%2Fguhit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269085446,"owners_count":24357240,"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-06T02:00:09.910Z","response_time":99,"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":[],"created_at":"2024-12-31T12:53:22.180Z","updated_at":"2025-10-29T22:46:51.072Z","avatar_url":"https://github.com/cedmandocdoc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Guhit\n\nA reactive JavaScript library for building web user interfaces\n\n## Installation\n\nInstall it using npm or yarn.\n\n```bash\nnpm install agos guhit\n```\n\n## Example\n\n```javascript\nimport { pipe, map } from \"agos\";\nimport { mount, createState, e } from \"./src\";\n\nconst TextCount = count$ =\u003e {\n  // return a transformed id (id-{count})\n  // manipulate the \u003cp id=\"\"\u003e\n  const countId = pipe(\n    count$,\n    map(c =\u003e `id-${c}`)\n  );\n\n  const currentCount = pipe(\n    count$,\n    map(c =\u003e {\n      if (c % 2 === 0) return \"Cannot display even number\";\n      return c;\n    })\n  );\n\n  // return a \u003cp\u003e with id and text count changing\n  return e(\"p\", { id: countId }, {}, [\"Current count: \", currentCount]);\n};\n\nconst App = () =\u003e {\n  // Since observable is directly manipulating the DOM\n  // there is no re rendering happenning inside the App.\n  // Running setCount will not rerender the App but will\n  // directly manipulate the \u003cp\u003e on TextCount.\n\n  // here count is an observable that gets\n  // subscribed on TextCount to change its values\n  const count$ = create((open, next, fail, done) =\u003e {\n    let count = 0;\n    const id = setInterval(() =\u003e next(++count), 100);\n    open();\n  })\n\n  // return a div with text count\n  return e(\"div\", {}, {}, [\"Hello There\", TextCount(count$)]);\n};\n\nmount(document.getElementById(\"app\"), App());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedmandocdoc%2Fguhit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedmandocdoc%2Fguhit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedmandocdoc%2Fguhit/lists"}