https://github.com/srijan-d/meta-messenger
Optimised Meta-Messenger. With extremely optimised SEO. Redis (Upstash API) for storage, Pusher for building real time connections faster than web sockets for establishing real time connections.
https://github.com/srijan-d/meta-messenger
cache cache-control facebook-authentication low-latency next-auth nextjs optimistic-updates pusher pusher-channels react redis seo-friendly serverless swr tailwindcss typescript websocket
Last synced: about 1 month ago
JSON representation
Optimised Meta-Messenger. With extremely optimised SEO. Redis (Upstash API) for storage, Pusher for building real time connections faster than web sockets for establishing real time connections.
- Host: GitHub
- URL: https://github.com/srijan-d/meta-messenger
- Owner: Srijan-D
- Created: 2022-12-14T12:35:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-18T15:01:05.000Z (over 2 years ago)
- Last Synced: 2025-02-18T04:55:34.294Z (3 months ago)
- Topics: cache, cache-control, facebook-authentication, low-latency, next-auth, nextjs, optimistic-updates, pusher, pusher-channels, react, redis, seo-friendly, serverless, swr, tailwindcss, typescript, websocket
- Language: TypeScript
- Homepage:
- Size: 87.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Realtime Meta Messenger😍 with Redis Next-Auth NextJS13 (experimental features)
Styling and UI was implemented using tailwindCSS as it compiles at build time therefore not affecting the SEO
CAUTION:⚠⚠ This app uses a lot of experimental features of NEXT13 like unstable_getServerSession from "next-auth/next" (for establishing the session)
When calling from server-side i.e. in API routes or in getServerSideProps, using this function instead of getSession to retrieve the session object drastically reduces response time when used over getSessionTherefore these features are experimental and may be removed or changed in the future.
Next-auth js for authentication using your meta/facebook username password
Usage of swr and optimistic data for instant caching, fetching data.
Mutate for getting the updated data
Upstash is a Serverless Data Platform with Redis and Kafka support.Its features make it the ideal data solution for Vercel. worldwide low latency Price per request
For establishing the real time connection across devices Pusher was used which is a better option than using hte standard websocket library as it becomes quite easy to manage the entire application using it