{"id":15482947,"url":"https://github.com/brandonbloom/domscript","last_synced_at":"2025-04-22T16:48:46.602Z","repository":{"id":5671984,"uuid":"6881720","full_name":"brandonbloom/domscript","owner":"brandonbloom","description":null,"archived":false,"fork":false,"pushed_at":"2013-09-27T19:41:21.000Z","size":171,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-17T07:17:04.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/brandonbloom.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}},"created_at":"2012-11-27T10:54:33.000Z","updated_at":"2025-02-06T16:02:02.000Z","dependencies_parsed_at":"2022-08-24T17:32:10.148Z","dependency_job_id":null,"html_url":"https://github.com/brandonbloom/domscript","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/brandonbloom%2Fdomscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbloom%2Fdomscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbloom%2Fdomscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbloom%2Fdomscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonbloom","download_url":"https://codeload.github.com/brandonbloom/domscript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250281765,"owners_count":21404852,"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-02T05:10:24.294Z","updated_at":"2025-04-22T16:48:46.559Z","avatar_url":"https://github.com/brandonbloom.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is DomScript?\n\nDomScript aims to be to browsers what PostScript is to printers.\n\nIt's a DOM manipulation library for Clojure in the concatenative paradigm.\n\n### What does this have to do with Printers?\n\nSee Video: [Concatenative Clojure at Clojure/WEST 2013][1].\n\n# Status\n\nThis preliminary release of DomScript is implemented in Clojure, not\nClojureScript. A future version of DomScript will include a ClojureScript port.\nIn the meantime, Apache Batik provides a JVM-side DOM implementation and SVG\nrenderer. Batik's DOM API is nearly identical to that of a browser's without\nthe added complexity of development in a stratified execution environment.\nAs awesome as ClojureScript is, it slows iteration times just enough to\nmotivate JVM-first development. Priority #1 is to design the concatenative API.\n\n# Usage\n\n```clojure\n(require '[factjor.core :as cat])\n(require '[domscript.svg :as svg])\n(require '[domscript.cat :as dom])\n\n(def window (svg/create-window))\n\n(dom/run window\n  dom/document-element\n  (dom/create-element :svg/rect)\n  (dom/set-attributes {:x 100 :y 50\n                       :width 200\n                       :height 75\n                       :fill \"red\"})\n  dom/append\n)\n```\n\nSee [cat.clj][2] for a complete listing of [Factjor][3] words.\n\n# License\n\nCopyright © 2013 Brandon Bloom\n\nDistributed under the Eclipse Public License, the same as Clojure.\n\n[1]: http://www.infoq.com/presentations/concatenative-clojure\n[2]: ./src/domscript/cat.clj\n[3]: https://github.com/brandonbloom/factjor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonbloom%2Fdomscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonbloom%2Fdomscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonbloom%2Fdomscript/lists"}