A Vue 3 component for detecting network connectivity changes with offline/online events.
V-Offline is a Vue.js component library that detects network connectivity changes in real-time. It listens to browser online/offline events and provides a simple API for Vue applications to react to network status changes, enabling features like offline indicators, conditional UI rendering, and adaptive behavior.
Vue.js developers building web applications that need to handle unreliable network conditions, such as PWAs, dashboards, or data-intensive apps where user experience depends on connectivity awareness.
Developers choose V-Offline for its Vue-native integration, minimal bundle size, and straightforward API that eliminates the need to manually wire up network event listeners. It offers built-in TypeScript support and compatibility across Vue 2 and 3 versions.
Vue 3 component and composable for detecting online and offline network status with reactive state and customizable polling.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides separate npm packages for Vue 3.x, Vue >=2.7, and Vue <2.7, ensuring broad compatibility across Vue ecosystems without forcing upgrades.
Built with TypeScript and includes type definitions, offering improved type safety and developer experience for TypeScript users right out of the box.
Allows pinging a custom URL via the 'ping-url' prop to double-check online status, adding reliability over potentially unreliable browser events.
Maintains a minimal bundle size and a straightforward API dedicated solely to network detection, avoiding feature bloat common in larger libraries.
Requires developers to implement their own UI for network indicators using slots and custom CSS classes, adding development overhead for styling.
Ping verification depends on 'ping.js', which must be installed separately, increasing setup complexity and potentially bundle size.
Lacks features for offline data handling, sync, or caching, making it insufficient for applications that need robust offline-first strategies.
Ping verification introduces additional network requests and latency, which may not be suitable for high-performance or low-latency applications.