{"id":16748070,"url":"https://github.com/icco/reportd","last_synced_at":"2025-03-21T22:31:51.438Z","repository":{"id":45015273,"uuid":"210206546","full_name":"icco/reportd","owner":"icco","description":"A service for receiving CSP reports and others.","archived":false,"fork":false,"pushed_at":"2025-03-17T15:07:13.000Z","size":418,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T16:24:03.271Z","etag":null,"topics":["csp","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://reportd.natwelch.com","language":"Go","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/icco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"icco"}},"created_at":"2019-09-22T20:00:52.000Z","updated_at":"2025-03-17T15:07:16.000Z","dependencies_parsed_at":"2023-12-13T19:13:29.725Z","dependency_job_id":"8fedaf6f-1244-47b8-ad6e-997d16999b4c","html_url":"https://github.com/icco/reportd","commit_stats":{"total_commits":126,"total_committers":1,"mean_commits":126.0,"dds":0.0,"last_synced_commit":"ace29c2f97b1998d11000d4c188a44ac0a942573"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icco%2Freportd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icco%2Freportd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icco%2Freportd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icco%2Freportd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icco","download_url":"https://codeload.github.com/icco/reportd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880323,"owners_count":20525506,"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":["csp","hacktoberfest"],"created_at":"2024-10-13T02:11:40.540Z","updated_at":"2025-03-21T22:31:51.430Z","avatar_url":"https://github.com/icco.png","language":"Go","funding_links":["https://github.com/sponsors/icco"],"categories":[],"sub_categories":[],"readme":"# reportd\n\n[![GoDoc](https://godoc.org/github.com/icco/reportd?status.svg)](https://godoc.org/github.com/icco/reportd) \n[![Go Report Card](https://goreportcard.com/badge/github.com/icco/reportd)](https://goreportcard.com/report/github.com/icco/reportd)\n\nA service for receiving CSP reports and others.\n\n## Report To\n\nThis service will log the reports recieved from a variety of `report-uri` and `report-to` systems as validated JSON to standard out.\n\n - CSP: https://www.w3.org/TR/CSP3/\n - Report-To: https://developers.google.com/web/updates/2018/09/reportingapi\n - NEL: https://www.w3.org/TR/network-error-logging/\n - Expect-CT: https://httpwg.org/http-extensions/expect-ct.html\n\nTo start sending reports, target https://reportd.natwelch.com/reports/$yourservicename\n\n### TODO\n\nWe need to add support for the following:\n\n - COEP: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy\n - COOP: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy\n\nAlso need to add support for Reporting API v1. see migration policy https://developer.chrome.com/blog/reporting-api-migration\n\n## Analytics\n\nThis service will log the reports recieved for web-vitals. We have only tested with next.js. See https://nextjs.org/docs/advanced-features/measuring-performance and https://web.dev/vitals/ for more information.\n\nTo start sending analytics, target https://reportd.natwelch.com/analytics/$yourservicename\n\n```html\n    \u003cscript type=\"module\"\u003e\n      import { onCLS, onINP, onLCP, onFCP, onFID, onTTFB } from 'https://unpkg.com/web-vitals@4?module';\n\n      function sendToAnalytics(metric) {\n        const body = JSON.stringify(metric);\n        (navigator.sendBeacon \u0026\u0026 navigator.sendBeacon('https://reportd.natwelch.com/analytics/$yourservicename', body)) ||\n          fetch('https://reportd.natwelch.com/analytics/$yourservicename', { body, method: 'POST', keepalive: true });\n      }\n\n      onCLS(sendToAnalytics);\n      onFCP(sendToAnalytics);\n      onFID(sendToAnalytics);\n      onINP(sendToAnalytics);\n      onLCP(sendToAnalytics);\n      onTTFB(sendToAnalytics);\n    \u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficco%2Freportd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficco%2Freportd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficco%2Freportd/lists"}