{"id":21331447,"url":"https://github.com/eibens/preact_utils","last_synced_at":"2026-04-16T12:03:09.038Z","repository":{"id":102373372,"uuid":"406105984","full_name":"eibens/preact_utils","owner":"eibens","description":"Preact typings and useful hooks that can be used with Deno.","archived":false,"fork":false,"pushed_at":"2022-01-02T22:06:23.000Z","size":71,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T13:48:01.225Z","etag":null,"topics":["deno","hooks","preact","typescript","typings"],"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/eibens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2021-09-13T19:38:47.000Z","updated_at":"2022-01-02T16:35:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b1860db-acca-46c4-b757-5b5468cd0b86","html_url":"https://github.com/eibens/preact_utils","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eibens%2Fpreact_utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eibens%2Fpreact_utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eibens%2Fpreact_utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eibens%2Fpreact_utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eibens","download_url":"https://codeload.github.com/eibens/preact_utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809848,"owners_count":20351407,"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":["deno","hooks","preact","typescript","typings"],"created_at":"2024-11-21T22:33:11.353Z","updated_at":"2026-04-16T12:03:03.976Z","avatar_url":"https://github.com/eibens.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Preact Utils for Deno\n\n[preact_utils](#) is a Deno port of [Preact](https://preactjs.com) and a small\nlibrary of custom hooks.\n\n[![License](https://img.shields.io/github/license/eibens/preact_utils?color=informational)](LICENSE)\n[![Repository](https://img.shields.io/github/v/tag/eibens/preact_utils?label\u0026logo=github)](https://github.com/eibens/preact_utils)\n[![ci](https://github.com/eibens/preact_utils/actions/workflows/ci.yml/badge.svg)](https://github.com/eibens/preact_utils/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/eibens/preact_utils/branch/master/graph/badge.svg?token=OV98O91EJ1)](https://codecov.io/gh/eibens/preact_utils)\n\n# History\n\nI repeatedly failed to get Preact typings to work with Deno in VSCode. There is\n[some discussion here](https://github.com/preactjs/preact/issues/3075) and even\na link to a repository with a supposed fix, but I couldn't get it to work. Until\nversion `v1.0.0-alpha` I imported the bundled sources from a CDN and only\nincluded the typings.\n\nRecently, I discovered\n[a problem](https://github.com/eibens/preact_utils/issues/1) which prevented me\nfrom importing the library from multiple locations. Porting the\n[whole library](preact/README.md) seemed to do the trick, even though I am\nunsure of the exact reason. Since porting currently happens manually, the\nversion of preact provided here might be outdated.\n\n# Usage\n\nThe [mod.ts](mod.ts) module exports all of Preact, native hooks, as well as the\ncustom hooks under [hooks](hooks):\n\n```ts\n// Replace 'master' with the desired version.\nimport * as React from \"https://raw.githubusercontent.com/eibens/preact_utils/master/mod.ts\";\n```\n\nThe [preact.ts](preact.ts) module exports all core Preact features with Deno\ncompatible typings. The [hooks.ts](hooks.ts) module exports all Preact hooks:\n\n```ts\nimport * as React from \"./preact.ts\";\nimport { useEffect } from \"./hooks.ts\";\n```\n\nThe [hooks](hooks) directory contains custom hooks that I find useful. The\n[hooks/mod.ts](hooks/mod.ts) module exports all custom hooks:\n\n```ts\nimport { useHover } from \"./hooks/mod.ts\";\n```\n\n# License\n\nSee the [LICENSE](LICENSE) file. Everything under [preact](preact) was copied\nfrom the original preact project and [preact/LICENSE](preact/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feibens%2Fpreact_utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feibens%2Fpreact_utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feibens%2Fpreact_utils/lists"}