{"id":13426536,"url":"https://github.com/bredele/vomit","last_synced_at":"2025-04-13T09:32:05.233Z","repository":{"id":52637292,"uuid":"57927415","full_name":"bredele/vomit","owner":"bredele","description":":mask: A minimal high order function for building user interfaces","archived":false,"fork":false,"pushed_at":"2017-02-26T23:44:44.000Z","size":159,"stargazers_count":160,"open_issues_count":9,"forks_count":12,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-27T01:23:55.840Z","etag":null,"topics":["es6","high-order","javascript","streams","template-string","virtualdom"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/bredele.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":"2016-05-02T23:22:32.000Z","updated_at":"2024-04-04T21:56:07.000Z","dependencies_parsed_at":"2022-09-26T16:51:15.150Z","dependency_job_id":null,"html_url":"https://github.com/bredele/vomit","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/bredele%2Fvomit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fvomit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fvomit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bredele%2Fvomit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bredele","download_url":"https://codeload.github.com/bredele/vomit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248690855,"owners_count":21146218,"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":["es6","high-order","javascript","streams","template-string","virtualdom"],"created_at":"2024-07-31T00:01:37.279Z","updated_at":"2025-04-13T09:32:04.811Z","avatar_url":"https://github.com/bredele.png","language":"JavaScript","readme":"# Vomit\n\n  \u003e [![Build Status](https://travis-ci.org/bredele/vomit.svg?branch=master)](https://travis-ci.org/bredele/vomit)\n  [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/vomitjs/Lobby)\n  [![NPM](https://img.shields.io/npm/v/vomit.svg)](https://www.npmjs.com/package/vomit)\n  [![Downloads](https://img.shields.io/npm/dm/vomit.svg)](http://npm-stat.com/charts.html?package=vomit)\n  [![pledge](https://bredele.github.io/contributing-guide/community-pledge.svg)](https://github.com/bredele/contributing-guide/blob/master/community.md)\n\n[![vomit](http://static.tumblr.com/67e9d19760f9ab511ea7142b267a0840/etrtigr/zohmqv4pn/tumblr_static_unicornpuke.jpg)](http://requirebin.com/?gist=df0d460eb9506d5e8a17b3f33141b30b)\n\n\nVomit is a JavaScript library for building stateless user interfaces.\n\n  * **Declarative**: Vomit leverages JavaScript template strings to create interactive UIs. Logic is written in JavaScript instead of templates, making your code more predictable, simple to understand and easier to debug.\n  * **Component-Based**: Build encapsulated components and compose them to make complex UIs. Everything is as simple as a function call!\n  * **Async**: Vomit has been built with promises and streams at its core. Dealing with IO bounds has never been so easy!\n  * **Easy to learn**: Simple is better! We don't make any assumptions about your coding style or technology stack. 5 minutes are enough to learn Vomit!\n\n[Try it online!](http://requirebin.com/?gist=bbf4a3420785e831bdfa7a2dccc8b7ff)\n\n## Usage\n\n```js\nvar vomit = require('vomit')\n\nfunction stopwatch(start) {\n  // create timer dynamic component\n  var timer = vomit(clock)\n\n  // update timer dom element every second\n  setInterval(() =\u003e timer(++start), 1000)\n\n  // return timer dom element\n  return timer(start)\n}\n\n// create timer static component\nfunction clock(seconds) {\n  return vomit`\u003cdiv\u003eSeconds Elapsed: ${seconds}\u003c/div\u003e`\n}\n\ndocument.body.appendChild(stopwatch(0));\n```\n\nVomit does not force you into any syntax/API but instead uses the power of JavaScript [template literals](https://developers.google.com/web/updates/2015/01/ES6-Template-Strings) built in your browser. Quickly create DOM element that you can [compose](/doc/placeholders/) with Objects, Arrays, other DOM elements, Functions, **Promises and even Streams**.\n\nCheck out [examples](/examples) and [docs](/doc) for more information.\n\n## Installation\n\n```shell\nnpm install vomit --save\n```\n\n[![NPM](https://nodei.co/npm/vomit.png)](https://nodei.co/npm/vomit/)\n\n## Features\n\n\u003c!--- Check out our [5 minutes getting started](https://github.com/bredele/vomit/blob/master/doc/getting-started.md)! --\u003e\n\nVomit stands for **V**~~irtual d~~**OM IT** ~~sucks~~ and ironically uses a virtual dom strategy based on real DOM to efficiently update your components . Other features are:\n- Separate and optimize rendering of static and dynamic content\n- HTML5 Web Component\n- Server side rendering (check out [steroid](http://github.com/bredele/steroid))\n- Works with SVG\n- 3kb minified + gzipped, ideal for mobile and to include as dependency\n- Share the same core engine than the MVVM library [brick](http://github.com/bredele/brick)\n\nYou'll find Vomit disgustingly easy to learn. Please check out our [5 minutes tutorial](https://github.com/bredele/vomit/blob/master/doc/getting-started.md) to get started,\n\n## Question\n\nFor questions and feedback please use the [Gitter chat room](https://gitter.im/vomitjs/Lobby?utm_source=share-link\u0026utm_medium=link\u0026utm_campaign=share-link) or our [twitter account](https://twitter.com/bredeleca). For support, bug reports and or feature requests please make sure to read our\n\u003ca href=\"https://github.com/bredele/contributing-guide/blob/master/community.md\" target=\"_blank\"\u003ecommunity guideline\u003c/a\u003e and use the issue list of this repo and make sure it's not present yet in our reporting checklist.\n\n\n## Contribution\n\nVomit is an open source project and would not exist without its community. If you want to participate please make sure to read our \u003ca href=\"https://github.com/bredele/contributing-guide/blob/master/community.md\" target=\"_blank\"\u003eguideline\u003c/a\u003e before making a pull request. If you have any vomit-related project, component or other let everyone know on our [chat room](https://gitter.im/vomitjs/Lobby?utm_source=share-link\u0026utm_medium=link\u0026utm_campaign=share-link) or in our wiki.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Olivier Wietrich\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredele%2Fvomit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbredele%2Fvomit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbredele%2Fvomit/lists"}