{"id":50783216,"url":"https://github.com/robleroni/puerro","last_synced_at":"2026-06-12T05:03:08.411Z","repository":{"id":65478537,"uuid":"171452507","full_name":"robleroni/Puerro","owner":"robleroni","description":"Keeping the Web as Lean as a Leek","archived":false,"fork":false,"pushed_at":"2021-08-11T00:04:14.000Z","size":2916,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-12T13:41:07.348Z","etag":null,"topics":["components","frontend","javascript","mvc","virtual-dom","web"],"latest_commit_sha":null,"homepage":"https://robleroni.github.io/Puerro/","language":"HTML","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/robleroni.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":"2019-02-19T10:19:38.000Z","updated_at":"2023-01-31T14:33:04.000Z","dependencies_parsed_at":"2023-01-25T15:15:20.407Z","dependency_job_id":null,"html_url":"https://github.com/robleroni/Puerro","commit_stats":null,"previous_names":["robin-fhnw/ip5-puerro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robleroni/Puerro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robleroni%2FPuerro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robleroni%2FPuerro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robleroni%2FPuerro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robleroni%2FPuerro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robleroni","download_url":"https://codeload.github.com/robleroni/Puerro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robleroni%2FPuerro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34229626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["components","frontend","javascript","mvc","virtual-dom","web"],"created_at":"2026-06-12T05:03:06.452Z","updated_at":"2026-06-12T05:03:08.394Z","avatar_url":"https://github.com/robleroni.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align='center'\u003e\n  \u003cimg src='assets/img/puerro.png' width='100'\u003e\n\u003c/p\u003e\n\u003cp align='center'\u003e\n  \u003cimg alt='mit' src='https://img.shields.io/badge/License-MIT-blue.svg'\u003e\n  \u003cimg alt='dependnecies' src='https://david-dm.org/robleroni/Puerro.svg'\u003e\n  \u003cimg alt='build' src='https://travis-ci.org/robleroni/Puerro.svg?branch=master'\u003e\n  \u003cimg alt='npm' src='https://img.shields.io/npm/dt/puerro.svg'\u003e\n\u003c/p\u003e\n\n# Puerro\n\nKnowledge acquisition about how to build modern frontend web applications as simple as possible by researching different approaches.\n\n## Getting Started\n\nIt can be used as a [knowledge base](docs) ([GitBook](https://robin-christen.gitbook.io/puerro/)) or in combination with the provided [abstractions](src).\n\nAlso checkout our [examples](examples) or the [research showcase project](huerto).\n\n### Install\n\nDirectly copy the desired [abstractions](src) in your project or use NPM to install Puerro fully:\n\n```bash\nnpm install puerro\n```\n\n### Example Usage\n\n```js\nimport { Observable } from 'puerro'; // bundler specific, or wherever source is located\n\nconst Model = ({ text = '' } = {}) =\u003e ({ text: Observable(text) });\n\nconst View = (model, controller, $input, $output) =\u003e {\n  const render = () =\u003e ($output.textContent = model.text.get().length);\n\n  // View-Binding\n  $input.addEventListener('input', event =\u003e controller.setName(event.target.value));\n\n  // Model-Binding\n  model.text.onChange(render);\n};\n\nconst Controller = model =\u003e {\n  const setName = text =\u003e model.text.set(text);\n  return { setName };\n};\n\n// Usage\nconst model      = Model();\nconst controller = Controller(model);\nconst view       = View(model, controller,\n  document.querySelector('input'),\n  document.querySelector('output')\n);\n```\n\n## Developing\n\nTo install and work on Puerro locally:\n\n```bash\ngit clone git@github.com:robleroni/Puerro.git Puerro\ncd Puerro\nnpm install     # install the dev dependency 'rollup'\nnpm start       # bundle the scripts and watch for changes\n```\n\n## Testing\n\nThe test results can be viewed [live](https://robleroni.github.io/Puerro/test/AllTests.html)!\n\nTo run and display the tests locally:\n```bash\nnpm test\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobleroni%2Fpuerro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobleroni%2Fpuerro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobleroni%2Fpuerro/lists"}