{"id":20172714,"url":"https://github.com/screenshotone/cflokiworker","last_synced_at":"2025-06-12T12:08:30.081Z","repository":{"id":216963906,"uuid":"742518673","full_name":"screenshotone/cflokiworker","owner":"screenshotone","description":"Cloudflare Tail Worker for pushing logs to Grafana Loki","archived":false,"fork":false,"pushed_at":"2024-01-13T12:52:09.000Z","size":21,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T05:11:22.928Z","etag":null,"topics":["cloudflare","cloudflare-worker","cloudflare-workers","grafana","grafana-loki","logger","logging"],"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/screenshotone.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T16:55:59.000Z","updated_at":"2025-02-27T15:24:30.000Z","dependencies_parsed_at":"2024-02-02T02:00:09.392Z","dependency_job_id":null,"html_url":"https://github.com/screenshotone/cflokiworker","commit_stats":null,"previous_names":["screenshotone/cflokiworker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/screenshotone/cflokiworker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/screenshotone%2Fcflokiworker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/screenshotone%2Fcflokiworker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/screenshotone%2Fcflokiworker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/screenshotone%2Fcflokiworker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/screenshotone","download_url":"https://codeload.github.com/screenshotone/cflokiworker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/screenshotone%2Fcflokiworker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259462558,"owners_count":22861512,"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":["cloudflare","cloudflare-worker","cloudflare-workers","grafana","grafana-loki","logger","logging"],"created_at":"2024-11-14T01:32:02.698Z","updated_at":"2025-06-12T12:08:30.046Z","avatar_url":"https://github.com/screenshotone.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cflokiworker\n\n`cflokiworker` is a [Cloudflare Tail Worker](https://developers.cloudflare.com/workers/observability/tail-workers/) for pushing logs and unhandled exceptions to [Grafana Loki](https://grafana.com/oss/loki/) from your Cloudflare workers.\n\nThe worker is being used on production for collecting logs from [the ScreenshotOne API](https://screenshotone.com/) Gateway which is implemented as a Cloudflare worker.\n\n## Getting Started\n\n### Clone or Fork, and Deploy\n\nYou can clone the repository and use it directly for your needs without any modifications.\n\n```shell\ngit clone git@github.com:screenshotone/cflokiworker.git\nnpm install\nnpm run deploy\n```\n\nOr you can fork it, modify, and deploy your version of the worker. If you feel it can be shared with everybody, don't hesitate to contribute back by creating a pull request.\n\n### Attach to Workers\n\nOnce deployed to Cloudflare, you need to update your `wrangler.toml` for workers you want to stream logs from:\n\n```toml\ntail_consumers = [{ service = \"logger\" }]\n```\n\n## GitHub Actions\n\nWhen using with GitHub Actions, you need to have 2 secrets available:\n\n- `LOKI_PUSH_URL`` is an HTTP URL of the Loki instance.\n- `LOKI_CREDENTIALS` is a base64-encoded username:password for accessing the Loki instance.\n\n## Resources\n\nYou can learn more about Cloudflare Tail Workers at:\n\n1. [Cloudflare Tail Workers official documentation](https://developers.cloudflare.com/workers/observability/tail-workers/).\n2. [A guide on pushing logs to Grafana Loki from Cloudflare Workers with Tail Workers](https://scalabledeveloper.com/posts/cloudflare-tail-worker-for-pushing-logs-to-grafana-loki/).\n\n## License\n\n`cflokiworker` is released under [the MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscreenshotone%2Fcflokiworker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscreenshotone%2Fcflokiworker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscreenshotone%2Fcflokiworker/lists"}