{"id":18523534,"url":"https://github.com/joduplessis/keg","last_synced_at":"2025-06-14T23:39:56.116Z","repository":{"id":57121636,"uuid":"206067816","full_name":"joduplessis/keg","owner":"joduplessis","description":"Keg is a flexible PubSub messaging queue with middleware capabilities - powered by hops. 🍺","archived":false,"fork":false,"pushed_at":"2023-03-01T20:47:07.000Z","size":51,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T13:17:09.727Z","etag":null,"topics":["javasript","messaging","queue","syncronous","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/joduplessis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2019-09-03T12:06:10.000Z","updated_at":"2022-05-25T10:31:35.000Z","dependencies_parsed_at":"2024-12-26T03:00:21.465Z","dependency_job_id":null,"html_url":"https://github.com/joduplessis/keg","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"41dee49313663f38f800b21f519f091f6ed9ca7e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joduplessis%2Fkeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joduplessis%2Fkeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joduplessis%2Fkeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joduplessis%2Fkeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joduplessis","download_url":"https://codeload.github.com/joduplessis/keg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239239255,"owners_count":19605479,"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":["javasript","messaging","queue","syncronous","typescript"],"created_at":"2024-11-06T17:36:07.605Z","updated_at":"2025-02-17T05:27:45.602Z","avatar_url":"https://github.com/joduplessis.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cimg src=\"https://joduplessis-keg.s3-us-west-2.amazonaws.com/barrel.svg\" width=\"90\" height=\"90\"\u003e\n\n# Keg\n\n\u003e Keg is a messaging queue. It's not suitable for production yet. Expect things to break \u0026 change without notice. It includes TypeScript support.\n\n## Installation\n```\nnpm i @joduplessis/keg\n```\n\n## Terminology\nIt's helpful to think in these terms:\n- Keg: overall queue ID\n- Tap: outlet of messages received, identified by an ID\n- Spike: a reduce orientated middleware for messages\n- Refill: adds a new message to a keg:tap\n- pour(): something like a `next()` to move through the queue\n\n## Some example usage:\n```\nKeg.keg('kegger').tap('demo', async (val, pour) =\u003e {\n  // 'val' is the current value for the demo queue\n  // We can process it here\n  // And then move onto the next item in the queue\n  // Equivalent to next()\n  pour()\n}, () =\u003e {\n  // Tap is empty\n})\n\n// Add middleware to each message\nKeg.keg('kegger').spike('demo', in =\u003e {\n  return window.btoa(in)\n})\n\nKeg.keg('kegger').refill('demo', 'Some text')\nKeg.keg('kegger').refill('demo', { order: 'Object message types' })\nKeg.keg('kegger').refill('demo', 42)\n```\n\n## Spiking your drink\nAny middleware that gets added will act as a pipe. It take the value `in` \u0026 passes it onto the next `spike()`.\n\n## Roadmap\n- [x]  Get base library set up\n- [x]  Choose a nifty logo\n- [x]  Add support for multiple kegs\n- [ ]  Add tests\n- [x]  Package for NPM\n- [ ]  Add support for external pub/subs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoduplessis%2Fkeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoduplessis%2Fkeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoduplessis%2Fkeg/lists"}