{"id":16014729,"url":"https://github.com/green-coder/embassy","last_synced_at":"2025-03-18T02:32:42.264Z","repository":{"id":145686739,"uuid":"389535074","full_name":"green-coder/embassy","owner":"green-coder","description":"[WIP] A Clojure(script) library to represent HTML diffs, to compose them together and to apply them on the DOM.","archived":false,"fork":false,"pushed_at":"2021-10-17T16:32:10.000Z","size":95,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"made-in-taiwan","last_synced_at":"2025-02-28T06:30:32.599Z","etag":null,"topics":["clojure","dom-manipulation","wip-do-not-use"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/green-coder.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":"2021-07-26T06:45:02.000Z","updated_at":"2025-02-20T22:24:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3a00358-0345-40e5-9eb8-5f9a98dcbf4e","html_url":"https://github.com/green-coder/embassy","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"2528abe83f5e7865b2f79bc12723dbf9932958a5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coder%2Fembassy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coder%2Fembassy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coder%2Fembassy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green-coder%2Fembassy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/green-coder","download_url":"https://codeload.github.com/green-coder/embassy/tar.gz/refs/heads/made-in-taiwan","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243896301,"owners_count":20365354,"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":["clojure","dom-manipulation","wip-do-not-use"],"created_at":"2024-10-08T15:04:56.273Z","updated_at":"2025-03-18T02:32:42.258Z","avatar_url":"https://github.com/green-coder.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Embassy\n\n### API\n\n`embassy.vdom.core/apply-vdom` is the main function of the library, it applies a `vdom-diff`\ndata structure  (simply called `vdom` throughout the source code) to a `dom-element`.\n\nA `vdom-diff` is created using the helper functions in the namespace `embassy.vdom.helper`.\nSee the namespace [embassy.vdom.helper-test](test/embassy/vdom/helper_test.cljc) for examples on how to use them.\n\n`embassy.vdom.core/comp` is the second most important function of the library, it returns\na composition of 2 `vdom-diff` data structures.\n\n### Use cases\n\nThis library can be used for updating the dom in a browser from a remote location,\nin an incremental way. For example, by sending the updates from a server connected\nto the browser via a websocket.\n\n## The demo application\n\nCompile the source code via Shadow-CLJS:\n\n```shell\nnpm install\nnpx shadow-cljs watch :app\n```\n\nThen browse the page at [http://localhost:3000/](http://localhost:3000/)\n\n## Running the tests while developing\n\n```shell\n./bin/kaocha --watch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen-coder%2Fembassy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreen-coder%2Fembassy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen-coder%2Fembassy/lists"}