{"id":18893991,"url":"https://github.com/bard/logagent-output-http-sse","last_synced_at":"2026-06-22T12:31:41.436Z","repository":{"id":66470693,"uuid":"148301794","full_name":"bard/logagent-output-http-sse","owner":"bard","description":"An HTTP server-side events plugin for logagent","archived":false,"fork":false,"pushed_at":"2019-01-05T18:27:43.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-11T15:50:49.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bard.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-09-11T10:41:26.000Z","updated_at":"2019-01-05T18:27:45.000Z","dependencies_parsed_at":"2023-02-25T04:30:25.002Z","dependency_job_id":null,"html_url":"https://github.com/bard/logagent-output-http-sse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bard/logagent-output-http-sse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bard%2Flogagent-output-http-sse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bard%2Flogagent-output-http-sse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bard%2Flogagent-output-http-sse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bard%2Flogagent-output-http-sse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bard","download_url":"https://codeload.github.com/bard/logagent-output-http-sse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bard%2Flogagent-output-http-sse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34649816,"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-22T02:00:06.391Z","response_time":106,"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":[],"created_at":"2024-11-08T08:17:09.729Z","updated_at":"2026-06-22T12:31:41.427Z","avatar_url":"https://github.com/bard.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"An HTTP server-side events plugin for [logagent](https://github.com/sematext/logagent-js). Can be used for e.g. writing a custom web log live tail UI.\n\n## Installation\n\nOn the machine where you're running logagent:\n\n```\nnpm install -g logagent-output-http-sse\n```\n\n## Configuration\n\nIn logagent's `config.yml` output section, add:\n\n```\noutput:\n  http-sse:\n    module: logagent-output-http-sse\n    port: 80\n```\n\nAdjust port as needed. If omitted, it will listen on 3000.\n\n## Usage\n\nAssuming logagent is running on `log.example.com`, the following will stream all log events to the browser console:\n\n```\n\u003chtml\u003e\n  \u003cbody\u003e\n    \u003cscript\u003e\n     const eventSource = new EventSource('http://log.example.com/events')\n\n     eventSource.onmessage = (event) =\u003e {\n       console.log(event.data)\n     }\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nTo request events from certain sources only, use a \"source\" query parameter with an  [extglob](https://www.npmjs.com/package/extglob) pattern value.\n\nFor example, to only request events from sources beginning with \"myapp_\":\n\n```\n     const eventSource = new EventSource('http://log.example.com/events?source=myapp_*')\n```\n\n## Security\n\nThere is no authorization or encryption, please use a reverse proxy to provide those if running on an untrusted network.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbard%2Flogagent-output-http-sse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbard%2Flogagent-output-http-sse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbard%2Flogagent-output-http-sse/lists"}