190 Countries, Zero API Calls: Shipping Static Data in a Chrome Extension
A new Chrome extension called EntryCheck provides visa requirements for over 190 countries without relying on external APIs. It uses a static dataset bundled within the extension, allowing for instant lookups and eliminating potential network issues. This approach prioritizes speed and simplicity, making it ideal for travelers checking visa information quickly.
- ▪EntryCheck bundles a static dataset of visa requirements directly into the extension.
- ▪The extension resolves lookups client-side with zero network requests.
- ▪Visa requirements do not change frequently, making a static dataset a practical choice.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3680827) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } SHOTA Posted on May 23 190 Countries, Zero API Calls: Shipping Static Data in a Chrome Extension #chrome #javascript #webdev #data Most Chrome extensions that need data fall into one of two patterns: they call an external API, or they store a small amount of user-specific data locally. EntryCheck does neither.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).