{"id":21748075,"url":"https://github.com/js-sdk/vdom","last_synced_at":"2025-03-21T02:24:11.482Z","repository":{"id":57710759,"uuid":"512538069","full_name":"js-sdk/vdom","owner":"js-sdk","description":"An implementation of Virtual DOM great for minimal and stable trees.","archived":false,"fork":false,"pushed_at":"2023-05-15T01:12:34.000Z","size":497,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T02:40:30.578Z","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/js-sdk.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":"2022-07-10T20:56:59.000Z","updated_at":"2025-01-06T20:30:48.000Z","dependencies_parsed_at":"2024-11-26T08:12:11.307Z","dependency_job_id":"90b6d25f-76b4-47f6-9e0f-820b5babd827","html_url":"https://github.com/js-sdk/vdom","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"52a78f067b62fea65acd5efe4e9c289811a904da"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-sdk%2Fvdom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-sdk%2Fvdom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-sdk%2Fvdom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-sdk%2Fvdom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-sdk","download_url":"https://codeload.github.com/js-sdk/vdom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244723395,"owners_count":20499279,"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-11-26T08:11:58.414Z","updated_at":"2025-03-21T02:24:11.459Z","avatar_url":"https://github.com/js-sdk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-sdk-vdom\n\nthis is a very simple implementation of the virtual DOM algorithm.\n\nit's a great implementation for short and stable trees (with no much update).\n\ncurrent version compiled size:\n\n- es5 2.1k (1.1k gzipped)\n- es2022 1.3k (705 gzipped)\n\n## usage\n\n```js\nlet tree = null,\n    state = {};\n\nconst target = document.querySelector('#app');\n\nfunction app(dispatch, state) {\n  return N(\n    'button',\n    {},\n    { click: function() { dispatch(new AppEvent()); } },\n    [T(\"Click here\")]\n  );\n}\n\nfunction render() {\n  function dispatch(event) {\n    // do state management/transition\n    render();\n  }\n\n  tree = patch(tree, app(dispatch, state), target);\n}\n```\n\n## license\n\nReleased under MIT license. See `license`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-sdk%2Fvdom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-sdk%2Fvdom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-sdk%2Fvdom/lists"}