{"id":21038232,"url":"https://github.com/jglchen/firebase-realtime-chat","last_synced_at":"2026-04-11T07:02:27.889Z","repository":{"id":132306928,"uuid":"599384092","full_name":"jglchen/firebase-realtime-chat","owner":"jglchen","description":"A real-time chat application with Next.js using Firebase Cloud Messaging.","archived":false,"fork":false,"pushed_at":"2023-03-23T07:30:29.000Z","size":513,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-13T20:44:41.442Z","etag":null,"topics":["docker","firebase","firebase-cloud-messaging","nextjs","reactjs","typescript"],"latest_commit_sha":null,"homepage":"https://firebase-realtime-chat.vercel.app","language":"TypeScript","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/jglchen.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":"2023-02-09T02:40:40.000Z","updated_at":"2023-05-15T14:03:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbe4869d-ac6a-4018-b04a-2ebb37ec1a63","html_url":"https://github.com/jglchen/firebase-realtime-chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jglchen/firebase-realtime-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jglchen%2Ffirebase-realtime-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jglchen%2Ffirebase-realtime-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jglchen%2Ffirebase-realtime-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jglchen%2Ffirebase-realtime-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jglchen","download_url":"https://codeload.github.com/jglchen/firebase-realtime-chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jglchen%2Ffirebase-realtime-chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31671630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["docker","firebase","firebase-cloud-messaging","nextjs","reactjs","typescript"],"created_at":"2024-11-19T13:30:07.907Z","updated_at":"2026-04-11T07:02:27.883Z","avatar_url":"https://github.com/jglchen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat Applications with Firebase Cloud Messaging\n\nWe can successfully build a real-time chat application with [Next.js](https://nextjs.org/) using [Socket.IO](https://socket.io/). The real-time communication however was found not to function well once the package is deployed to Vercel, which is a serverless platform. It is suggested by Vercel two main approaches to applying a real-time model to stateless serverless functions.\n\n1. Serverless Functions have maximum execution limits and should respond as quickly as possible. They should not subscribe to data events. Instead, we need a client that subscribes to data events (such as [Alby](https://ably.com/), [Pusher](https://pusher.com/), etc.) and a serverless function that publishes new data.\n2. Rather than pushing data, we can fetch real-time data on-demand. For example, the Vercel dashboard delivers realtime updates using [SWR](https://swr.vercel.app/).\n\nIn this demonstration, we build a real-time chat application with [Firebase Cloud Messaging](https://firebase.google.com/products/cloud-messaging). The Firebase Cloud Messaging(FCM) JavaScript API lets you receive notification messages in web apps running in browsers that support the [Push API](https://www.w3.org/TR/push-api/). This includes the browser versions listed in this [support matrix](https://caniuse.com/push-api) and Chrome extensions via the Push API.\n\n\n### [View the App](https://firebase-realtime-chat.vercel.app)\n### [App GitHub](https://github.com/jglchen/firebase-realtime-chat)\n### Docker: docker run -p 3000:3000 jglchen/firebase-realtime-chat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjglchen%2Ffirebase-realtime-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjglchen%2Ffirebase-realtime-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjglchen%2Ffirebase-realtime-chat/lists"}