{"id":16983984,"url":"https://github.com/ratfactor/retrov","last_synced_at":"2026-02-28T09:30:15.197Z","repository":{"id":145254812,"uuid":"613378830","full_name":"ratfactor/retrov","owner":"ratfactor","description":"A tiny browser-native Virtual DOM rendering library.","archived":true,"fork":false,"pushed_at":"2023-09-27T22:40:39.000Z","size":118,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-12T09:12:18.269Z","etag":null,"topics":["dom-diff","dom-diffing","hyperscript","javascript-library","virtual-dom"],"latest_commit_sha":null,"homepage":"http://ratfactor.com/retrov/","language":"HTML","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/ratfactor.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}},"created_at":"2023-03-13T13:09:24.000Z","updated_at":"2024-02-25T15:34:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"60135b0f-2938-48b8-b0d1-3c68c5c0bfd0","html_url":"https://github.com/ratfactor/retrov","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/ratfactor%2Fretrov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratfactor%2Fretrov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratfactor%2Fretrov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratfactor%2Fretrov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ratfactor","download_url":"https://codeload.github.com/ratfactor/retrov/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239872606,"owners_count":19711098,"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":["dom-diff","dom-diffing","hyperscript","javascript-library","virtual-dom"],"created_at":"2024-10-14T02:29:48.508Z","updated_at":"2026-02-28T09:30:15.139Z","avatar_url":"https://github.com/ratfactor.png","language":"HTML","readme":"\u003cimg src=\"./retrov.svg\" alt=\"RetroV 1970s colors svg logo\"\u003e\n\n**MOVED!** Hello, I am moving my repos to http://ratfactor.com/repos/\nand setting them to read-only (\"archived\") on GitHub. Thank you, *-Dave*\n\n# RetroV\n\nRetroV (pronounced \"retro vee\") is a virtual DOM (VDOM) rendering library.\nIt is browser-native and has no dependencies or build system.\n\nIt’s tiny: **1129 bytes** (the usual minified gzipped metric).\n\nRead more on the World Wide Web here:\n\nhttp://ratfactor.com/retrov/\n\n## Installation\n\n```\n\u003cscript src=\"retrov.js\"\u003e\u003c/script\u003e\n```\n\n## Example\n\nHere's a quick glimpse (a whole web page!):\n\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\u003cbody\u003e\n\u003cscript src=\"retrov.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nRV.render(\n    document.body,\n    ['div',\n        ['h1', 'Hello'],\n        ['p', 'Hello world, this is ',\n            ['em', 'RetroV'],\n            '!',\n        ]\n    ]\n);\n\u003c/script\u003e\n\u003c/body\u003e\u003c/html\u003e\n```\n\nFor more examples and fairly complete **tutorial**, take a look at\nat `demo.html` in this repo or see it live here:\n\nhttp://ratfactor.com/retrov/demo.html\n\nYou can also run the test suite `test.html` or run it live:\n\nhttp://ratfactor.com/retrov/test.html\n\n\n## Why?\n\nI couldn't find anything exactly like it. Lots of bits and pieces\nI liked, but not this exact thing.\n\n## Inspiration\n\n[.dom](https://github.com/wavesoft/dot-dom/) -\nFull hyperscript and DOM diff in 512 bytes! A direct inspiration. In fact, I\nwas originally going to fork this and change it to suit my preferences until I\ndecided to go in a radically different direction for VNode creation.\n\n[Mithril](https://github.com/MithrilJS/mithril.js/) -\nMy old favorite, still getting updates. This is how I learned these practices\nand it's the standard by which I judge them.\n\n[ijk](https://github.com/lukejacksonn/ijk) -\nDOM without the 'h()' function - pure JS data structures.\nI _think_ I'd seen this concept before, but maybe not. At any rate, this\nhas heavily influenced RetroV. This library is for transforming data,\nnot rendering. Super compact code!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratfactor%2Fretrov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratfactor%2Fretrov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratfactor%2Fretrov/lists"}