{"id":16124310,"url":"https://github.com/jongacnik/preact-lively","last_synced_at":"2025-04-06T12:22:47.025Z","repository":{"id":68335757,"uuid":"90186973","full_name":"jongacnik/preact-lively","owner":"jongacnik","description":"Preact onload/onunload component abstraction","archived":false,"fork":false,"pushed_at":"2017-05-05T01:01:15.000Z","size":1,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T18:18:53.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jongacnik.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":"2017-05-03T19:43:35.000Z","updated_at":"2019-05-22T21:35:54.000Z","dependencies_parsed_at":"2023-04-05T01:46:26.700Z","dependency_job_id":null,"html_url":"https://github.com/jongacnik/preact-lively","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/jongacnik%2Fpreact-lively","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fpreact-lively/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fpreact-lively/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fpreact-lively/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jongacnik","download_url":"https://codeload.github.com/jongacnik/preact-lively/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247479522,"owners_count":20945476,"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":[],"created_at":"2024-10-09T21:20:31.841Z","updated_at":"2025-04-06T12:22:47.002Z","avatar_url":"https://github.com/jongacnik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# preact-lively\n\nSmall wrapper around preact component which provides onload/onunload callbacks similar to [bel](https://github.com/shama/bel#lifecycle-events) because sometimes you don't need to be fancy.\n\n**In progress... Not published yet!**\n\n```\nnpm i ???\n```\n\n## Usage\n\n```js\nvar Lively = require('preact-lively')\nvar h = require('preact').h\n\nh(Lively, {\n  onload: el =\u003e console.log('Here I am!'),\n  onunload: el =\u003e console.log('There I go!')\n}, children)\n```\n\njsx\n\n```js\n\u003cLively onload={el =\u003e {}} onunload={el =\u003e {}}\u003e\n  Hello\n\u003c/Lively\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongacnik%2Fpreact-lively","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjongacnik%2Fpreact-lively","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongacnik%2Fpreact-lively/lists"}