{"id":19066510,"url":"https://github.com/geut/hyperbee-live-stream","last_synced_at":"2025-10-30T23:42:59.560Z","repository":{"id":88986020,"uuid":"333395611","full_name":"geut/hyperbee-live-stream","owner":"geut","description":"Creates a ReadableStream but keep watching for changes in the range defined","archived":false,"fork":false,"pushed_at":"2022-06-21T12:31:52.000Z","size":789,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-18T16:17:18.611Z","etag":null,"topics":["hyperbee","hypercore","live","stream","streamx"],"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/geut.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-27T11:17:21.000Z","updated_at":"2023-06-14T20:49:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0d52041-6276-4330-96bd-dfa829347512","html_url":"https://github.com/geut/hyperbee-live-stream","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fhyperbee-live-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fhyperbee-live-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fhyperbee-live-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geut%2Fhyperbee-live-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geut","download_url":"https://codeload.github.com/geut/hyperbee-live-stream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251313296,"owners_count":21569400,"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":["hyperbee","hypercore","live","stream","streamx"],"created_at":"2024-11-09T00:57:08.470Z","updated_at":"2025-10-30T23:42:59.479Z","avatar_url":"https://github.com/geut.png","language":"JavaScript","readme":"# hyperbee-live-stream\n\n\u003e Creates a ReadableStream but keep watching for changes in the range defined.\n\n[![Build Status](https://travis-ci.com/geut/hyperbee-live-stream.svg?branch=main)](https://travis-ci.com/geut/hyperbee-live-stream)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\n[![Made by GEUT][geut-badge]][geut-url]\n\n## Install\n\n    $ npm install @geut/hyperbee-live-stream\n\n## Usage\n\n```js\nconst { HyperbeeLiveStream } = require('@geut/hyperbee-live-stream')\n\nconst stream = new HyperbeeLiveStream(db, { gte: 'a', lte: 'b' })\nstream.on('data', data =\u003e console.log(data))\ndb.put('a')\ndb.put('c')\ndb.put('b')\n// will print a, b\n```\n\n## API\n\n\u003c!-- apiness/api --\u003e\n\n#### `hyperbeeLiveStream = new HyperbeeLiveStream(db, opts?)`\n\n*   `db: Hyperbee`\n*   `opts?: any = {}`\n    *   `old?: boolean = true` Iterate over the old items before start to watching\n    *   `gt?: Buffer | string` Only return keys \u003e than this\n    *   `gte?: Buffer | string` Only return keys \u003e= than this\n    *   `lt?: Buffer | string` Only return keys \u003c than this\n    *   `lte?: Buffer | string` Only return keys \u003c= than this\n    *   `reverse?: boolean = false` Set to true to get them in reverse order\n    *   `limit?: number = -1` Set to the max number of entries you want\n\n#### `hyperbeeLiveStream.version: number (R)`\n\nReturns the last matched version readed\n\n#### `hyperbeeLiveStream.on('synced', version) =\u003e void`\n\nEmitted when the stream is synced with the last version in the database\n\n*   `version: number`\n\n## Issues\n\n:bug: If you found an issue we encourage you to report it on [github](https://github.com/geut/hyperbee-live-stream/issues). Please specify your OS and the actions to reproduce it.\n\n## Contributing\n\n:busts_in_silhouette: Ideas and contributions to the project are welcome. You must follow this [guideline](https://github.com/geut/hyperbee-live-stream/blob/main/CONTRIBUTING.md).\n\n## License\n\nMIT © A [**GEUT**](http://geutstudio.com/) project\n\n[geut-url]: https://geutstudio.com\n\n[geut-badge]: https://img.shields.io/badge/Made%20By-GEUT-4f5186?style=for-the-badge\u0026link=https://geutstudio.com\u0026labelColor=white\u0026logo=data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wAARCABAAEADASIAAhEBAxEB/8QAGwAAAgIDAQAAAAAAAAAAAAAABAYDBQACBwH/xAA0EAACAQMBBAcGBgMAAAAAAAABAgMABBEFBhIhQRMiMVFhgcEUIzJxkbFCUmKh0fAkcuH/xAAYAQADAQEAAAAAAAAAAAAAAAABAwQCAP/EACARAAMAAwACAgMAAAAAAAAAAAABAgMRIRIxBEEiM1H/2gAMAwEAAhEDEQA/AOgVlau6xoXdgqqMkk8AKV9U2oYs0WngBRw6VhxPyFamXXoDeiz1PUbmzuujQIUKgjIqGLXnz72FSO9TikfVbi6uXWSSaWRuzixNBx3VzCepNIvgTw+hpjwv+iGr3tM6xa30F2PdP1uangRRNc70fUbi4JLIVaPskXgM/wA076Ze+2W+WwJF4MPWlNaemajI2/GvYbWVlZQHCptZqLNKLGJsKoDSY5nkKorKzlvrlYIRlm5nsA7zWX8pnv55SfikJ/emPZGDcs7m6CguTuL5DPrVf64Me2F2mzNhAg6ZTO/MsSB9BW15s1pt1GVEPRHvQ+hqbTNT9sZ0kCpIOIA5ij5ZEijaSRgqqMkmpVkb7sMuWtoV73S49L3I4B7kjq57c881BZ6vFpuoKjq7dIvYBw8PtUOqX1xcSxoJXw8mQuewVW3vX1eFR+Fcn96OLVvpFzz8kM020kp4QwIvixzVpot5Je2bSTEFw5HAY7qUKadnIymm7x/G5I+3pTskzM8G4rqq6JGpI8E1wi8HR2H0NT7P6rcRKUEzYR9/czgEf0VabV2JgvhdKPdzdvg399aVG37K4Esfw/3hTU1S2NpNrSHqax9q/wAzTm3lY5KA4ZTQl2mo9CWljncL+cnA+tVVhqeSGt5mik5qDg/9o+XVb6aFonuDusMHqjP2qavjbfGTPX3xgTstrm4uGDSEYVV+woWPMKy3dzwd+JHcOQrdkgtyZpXJb87nJ8qqr68a7cKgIjB4DmadGNQjohs9i1C66Xqtvbx+EjIp10jaOMLBaPasDwRTGc5PyNJ1rb9EN5/jP7U17KaaZJvbpV6icI88z3+VG0vH8ipJJ8Ga8tIr22eCYZVh5g94pC1TTJtPmMU67yH4XxwYV0So54IriIxzRrIh7QwzSIyOTbWzlElkCcxtjwNedHeKMCVseDmnq72UgkJa1maL9LDeH81XvspfA9WSBh/sR6U9XD+zDQp+yTSNmR/MnJomG3SLiBlu80zQ7JXTH31xEg/Tlj6Vb2OzljaEO6meQc5OweVc8koOmUGjaFLfuss4MdsOOewv8v5p0ijSGNY41CoowAOQrbsr2p7t0zSWj//Z\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeut%2Fhyperbee-live-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeut%2Fhyperbee-live-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeut%2Fhyperbee-live-stream/lists"}