{"id":18334562,"url":"https://github.com/jeverhart383/github-activity-feed","last_synced_at":"2026-02-11T10:01:28.260Z","repository":{"id":233536775,"uuid":"787408605","full_name":"JEverhart383/github-activity-feed","owner":"JEverhart383","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-17T20:28:56.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-07T15:46:14.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/JEverhart383.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}},"created_at":"2024-04-16T13:18:40.000Z","updated_at":"2024-04-16T13:19:25.000Z","dependencies_parsed_at":"2024-04-17T21:31:32.368Z","dependency_job_id":"b1c9bf1c-791e-473c-b88b-243a5a3bdc80","html_url":"https://github.com/JEverhart383/github-activity-feed","commit_stats":null,"previous_names":["jeverhart383/github-activity-feed"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JEverhart383/github-activity-feed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JEverhart383%2Fgithub-activity-feed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JEverhart383%2Fgithub-activity-feed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JEverhart383%2Fgithub-activity-feed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JEverhart383%2Fgithub-activity-feed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JEverhart383","download_url":"https://codeload.github.com/JEverhart383/github-activity-feed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JEverhart383%2Fgithub-activity-feed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29331592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-05T19:49:39.035Z","updated_at":"2026-02-11T10:01:28.210Z","avatar_url":"https://github.com/JEverhart383.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Activity Feed\r\n\r\nIn this repo, we'll create a real-time activity feed using Node.js, Socket.io, and GitHub webhooks. You can find [step-by-step instructions](https://knock.app/blog/building-a-github-activity-feed-with-nodejs-and-socket-io) on the [Knock blog](https://knock.app/blog).\r\n\r\n## What we'll build\r\n\r\nWe'll create a route that responds to GitHub webhooks and emits WebSocket events using Socket.io:\r\n\r\n```javascript\r\napp.post(\"/webhook\", (req, res) =\u003e {\r\n  const event = req.body;\r\n  // Check for a push event\r\n  if (event \u0026\u0026 event.pusher) {\r\n    io.emit(\"new_commit\", event);\r\n  }\r\n  res.status(200).end();\r\n});\r\n```\r\n\r\nThen, we'll create a simple JavaScript client that listens for those events and updates the DOM when data is received from the server:\r\n\r\n```javascript\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n  const socket = io();\r\n\r\n  socket.on(\"new_commit\", function (data) {\r\n    const notificationDiv = document.createElement(\"div\");\r\n    notificationDiv.className = \"notification\";\r\n\r\n    const header = document.createElement(\"div\");\r\n    header.className = \"notification-header\";\r\n    header.textContent = `New commit in ${data.repository.name}`;\r\n\r\n    const content = document.createElement(\"div\");\r\n    content.textContent = `Commit by ${data.pusher.name}: \"${data.head_commit.message}\"`;\r\n\r\n    notificationDiv.appendChild(header);\r\n    notificationDiv.appendChild(content);\r\n    document.body.appendChild(notificationDiv);\r\n  });\r\n});\r\n```\r\n\r\n## Advanced feeds\r\n\r\nIf you're looking to build more advanced feeds, [Knock's in-app feed API](https://knock.app/channels/in-app-notifications) provides support for scalable WebSockets as well as all the data modeling abstractions you need to create robust feed experiences. Combine the API with [drop-in React components](https://docs.knock.app/in-app-ui/react/feed) and you can have a fully-functional feed that can scale live in hours.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeverhart383%2Fgithub-activity-feed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeverhart383%2Fgithub-activity-feed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeverhart383%2Fgithub-activity-feed/lists"}