{"id":21913550,"url":"https://github.com/vendethiel/reactive-watchers","last_synced_at":"2026-02-07T14:33:17.880Z","repository":{"id":15851973,"uuid":"18592187","full_name":"vendethiel/reactive-watchers","owner":"vendethiel","description":"Reactive+Model functions generators","archived":false,"fork":false,"pushed_at":"2015-01-03T03:06:09.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-25T02:11:50.103Z","etag":null,"topics":["livescript","model","modella","reactive-watchers"],"latest_commit_sha":null,"homepage":null,"language":"LiveScript","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/vendethiel.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":"2014-04-09T09:33:44.000Z","updated_at":"2015-01-03T03:06:10.000Z","dependencies_parsed_at":"2022-09-10T16:00:42.761Z","dependency_job_id":null,"html_url":"https://github.com/vendethiel/reactive-watchers","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vendethiel/reactive-watchers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendethiel%2Freactive-watchers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendethiel%2Freactive-watchers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendethiel%2Freactive-watchers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendethiel%2Freactive-watchers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vendethiel","download_url":"https://codeload.github.com/vendethiel/reactive-watchers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendethiel%2Freactive-watchers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29197022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T12:38:28.597Z","status":"ssl_error","status_checked_at":"2026-02-07T12:38:23.888Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["livescript","model","modella","reactive-watchers"],"created_at":"2024-11-28T18:17:35.448Z","updated_at":"2026-02-07T14:33:17.865Z","avatar_url":"https://github.com/vendethiel.png","language":"LiveScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Reactive Watchers\n=================\n\nBindings generator for [Reactive](https://github.com/component/reactive) and [Model](github.com/component/model)/[Modella](https://github.com/modella/modella).\n\n### Install\n\n```\n$ component install vendethiel/reactive-watchers\n```\n\n### Usage\n\n```livescript\nmodel = require 'modella'\nmodel-list = require './my-model-list'\n\n# Create the model with modella\nUser = model 'User'\n  .attr '_id'\n  .attr 'name'\n  .attr 'address'\n\n# create watchers for fields\nreact = new reactive-watchers new-model, \u003c[ name address ]\u003e\n\n# create a model to hold the form fields value\nnew-model = new User\n\nview = reactive el, models,\n  delegate:\n    # generate delegates (\"updateField\")\n    react.generate! with\n      add-model: !-\u003e\n        # ... do your validations\n        # push model to list (reactive will update the view)\n        list-models.push new-model\n        # override `reactive-watchers`'s `model` with a clean one\n        react.model = new-model := new User\n```\n\nWith the corresponding HTML :\n\n```html\n\u003cform on-submit=\"addModel\"\u003e\n  \u003cfieldset\u003e\n    \u003clegend\u003eAdd a user\u003c/legend\u003e\n    \u003cinput name=\"name\" placeholder=\"Name\" on-change=\"updateName\" /\u003e\n    \u003cinput name=\"address\" placeholder=\"Address\" on-change=\"updateAddress\" /\u003e\n    \u003cinput type=\"submit\" /\u003e\n  \u003c/fieldset\u003e\n\u003c/form\u003e\n```\n\nOr if you like Jade better :\n\n```jade\nform(on-submit=\"addModel\")\n  fieldset\n    legend Add a user\n    input(name=\"name\" placeholder=\"Name\" on-change=\"updateName\")\n    input(name=\"address\" placeholder=\"Address\" on-change=\"updateAddress\")\n    input(type=\"submit\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvendethiel%2Freactive-watchers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvendethiel%2Freactive-watchers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvendethiel%2Freactive-watchers/lists"}