{"id":32183984,"url":"https://github.com/gered/views.reagent","last_synced_at":"2025-10-29T11:02:16.220Z","repository":{"id":25045609,"uuid":"28465444","full_name":"gered/views.reagent","owner":"gered","description":"Reagent plugin for the views library, providing real-time component updates to server-side changes to data.","archived":false,"fork":false,"pushed_at":"2022-01-12T23:37:19.000Z","size":129,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T23:36:03.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/gered.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}},"created_at":"2014-12-25T00:18:32.000Z","updated_at":"2022-01-12T22:18:52.000Z","dependencies_parsed_at":"2022-08-23T00:30:25.002Z","dependency_job_id":null,"html_url":"https://github.com/gered/views.reagent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gered/views.reagent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gered%2Fviews.reagent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gered%2Fviews.reagent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gered%2Fviews.reagent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gered%2Fviews.reagent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gered","download_url":"https://codeload.github.com/gered/views.reagent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gered%2Fviews.reagent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281207494,"owners_count":26461421,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-10-21T23:31:10.715Z","updated_at":"2025-10-29T11:02:16.214Z","avatar_url":"https://github.com/gered.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# views.reagent\n\n[Reagent][1] plugin for the [views][2] library, providing real-time component updates to \nserver-side changes to data.\n\n[1]: https://github.com/reagent-project/reagent\n[2]: https://github.com/gered/views\n\n\n## Usage\n\nThis library is made up of two core parts:\n\n* The actual library, views.reagent, providing core functionality.\n* A client/server communications plugin library which provides the glue code between whatever \n  underlying client/server library you're using (most likely [Sente][3]) and views.reagent.\n\n[3]: https://github.com/ptaoussanis/sente\n\nTo use views.reagent in your application, you need to add both the main library and one \nclient/server communications plugin library as dependencies. See their respective pages linked \nto below for more information on doing this.\n\n\n### Main Library Documentation\n\n[See here for full documentation.][4]\n\n[4]: https://github.com/gered/views.reagent/tree/master/views.reagent\n\n\n### Client/Server Plugin Documentation\n\n* **[views.reagent.sente][5]** provides fairly low-level integration with Sente.\n\n[5]: https://github.com/gered/views.reagent/tree/master/views.reagent.sente\n\nIf you're intent on using something else, you'll need to write your own client/server plugin \nlibrary. Previously I provided a BrowserChannel plugin in addition to the Sente plugin library, \nbut BrowserChannel is now pretty ancient and unnecessary since modern browsers universally support\nWebsockets, so it was removed in favour of using Sente.\n\n\n### Examples\n\nThere are two example applications for you to look at to see a fully working web application with\nworking views system configured and working.\n\n* [Todo MVC][6]. This is a copy of the original Reagent \"Todo MVC\" example app, but re-worked to\n   use a SQL database and the views system.\n* [Class Registry][7]. This is a somewhat more complex application with a busy UI showing a bunch\n  of data at once, but it does serve to show how a UI can be built from multiple different views \n  at once.\n\n[6]: https://github.com/gered/views.reagent/tree/master/examples/todomvc\n[7]: https://github.com/gered/views.reagent/tree/master/examples/class-registry\n\n\n### Notes\n\nviews.reagent uses a separate plugin architecture for client/server communication mainly\nbecause I've observed that there are at times a variety of different ways in which people\nlike to integrate client/server communications in their applications. I wanted to avoid\n(as much as possible) doing anything that would require any specific way of doing this\nkind of integration.\n\nThe client/server glue code provided by these libraries is incredibly light so if they\ndo not meet your needs for whatever reason you should find it easy to create one yourself.\n\n\n## License\n\nCopyright © 2022 Gered King\n\nDistributed under the the MIT License. See LICENSE for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgered%2Fviews.reagent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgered%2Fviews.reagent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgered%2Fviews.reagent/lists"}