{"id":18256149,"url":"https://github.com/serapath/dom-stream","last_synced_at":"2025-04-08T22:26:57.526Z","repository":{"id":57214771,"uuid":"74355163","full_name":"serapath/dom-stream","owner":"serapath","description":"stream dom elements","archived":false,"fork":false,"pushed_at":"2017-06-09T00:10:12.000Z","size":47,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T00:09:53.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/dom-stream","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/serapath.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-11-21T11:04:18.000Z","updated_at":"2019-10-21T17:36:17.000Z","dependencies_parsed_at":"2022-08-26T13:41:14.667Z","dependency_job_id":null,"html_url":"https://github.com/serapath/dom-stream","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/serapath%2Fdom-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fdom-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fdom-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fdom-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serapath","download_url":"https://codeload.github.com/serapath/dom-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247937204,"owners_count":21021214,"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-11-05T10:20:10.883Z","updated_at":"2025-04-08T22:26:57.508Z","avatar_url":"https://github.com/serapath.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dom-stream\nstream a dom element and it's updates into a dom element container\n\n# usage\n`npm install dom-stream`\n\n```js\nvar bel = require('bel')\nvar domstream = require('dom-stream')\n\nfunction demoComponent (opts) {\n  opts || (opts = {})\n  opts.placeholder = bel`\u003cdiv class='loading'\u003e...\u003c/div\u003e` // optional\n  \n  var el$ = domstream(opts) // el$ is a read stream AND dom element\n  \n  el$.on('data', function (el) { console.log('dom element update', el) })\n  setTimeout(next, 500, 0) // update dom element el$\n  \n  return el$\n  function next (i) { el$.push(render(i)); setTimeout(next, 500, i++) }\n  function render () { return bel`\u003cdiv\u003eupdate ${i}\u003c/div\u003e` }\n}\n\nvar el$ = demoComponent()\ndocument.body.appendChild(el$)\n```\n#### demo https://serapath.github.io/dom-stream/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fdom-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserapath%2Fdom-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fdom-stream/lists"}