Skip to content

feat: integrate vite-plugin-pwa with workbox for offline caching and network resilient fallback#458

Open
nitishchaubeyy wants to merge 5 commits into
indresh404:mainfrom
nitishchaubeyy:feature/pwa-offline-support
Open

feat: integrate vite-plugin-pwa with workbox for offline caching and network resilient fallback#458
nitishchaubeyy wants to merge 5 commits into
indresh404:mainfrom
nitishchaubeyy:feature/pwa-offline-support

Conversation

@nitishchaubeyy

Copy link
Copy Markdown
Contributor

Description

Resolves #435 by converting RankerHub into an installable Progressive Web App (PWA) with robust offline functionality. This guarantees users can still review their dashboard and previously loaded leaderboards without network anxiety.

Key Additions

  • Vite PWA Integration: Configured vite-plugin-pwa in autoUpdate mode, generating a manifest.json for standalone installation capabilities.
  • Workbox Routing Strategy: Implemented a StaleWhileRevalidate caching policy specifically intercepting api.github.com and firestore.googleapis.com network requests. This safely acts as a fallback layer when the network drops.
  • Offline UI Feedback: Developed an animated <OfflineBanner /> component using framer-motion and the navigator.onLine API, ensuring users are explicitly aware they are viewing cached data.

Fixes #435

@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ranker-hub Ready Ready Preview, Comment Jun 11, 2026 9:24am

@github-actions github-actions Bot added backend Backend/Firebase related changes bug Something isn't working enhancement New feature or request frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review labels Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend/Firebase related changes bug Something isn't working enhancement New feature or request frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

# [Feature][Level 3]: vite-plugin-pwa Service Worker for Offline Asset Caching and Resilient GitHub API Fallback

1 participant