ifvisible.js

The premium Open Source alternative to Page Visibility API

🎯 Best for:Developers needing to pause resource-heavy tasks when users are inactive or away.

What is ifvisible.js?

Replaces complex event listener setups for tracking user idle states and tab visibility. Provides a unified API to detect if a user is actively looking at or interacting with a web page.

Tech Stack
TypeScriptFrontend & Headless CMS

Why ifvisible.js?

  • Cross-browser compatibility
  • Extremely lightweight
  • Simple event-driven API

Limitations

  • Requires client-side JS
  • Limited to browser environment
  • Maintenance frequency
1/12/2026
Last Update
185
Forks
38
Issues
MIT
License
Financial Leak Detected

Stop the "SaaS Tax"

Your team could be burning cash. Switching to ifvisible.js instantly boosts your runway.

Competitor Cost
-$1,440
/ year (est. based on Page Visibility API)
Self-Hosted
$0
/ year
Team Size10 Users
150+
SAVE 100%

Community Discussion

Comments