๐ Just launched Cosmic APOD V3! (Zero-backend, 100% Vanilla JS)
Hey everyone! ๐ A while back, I wanted a faster, more modern way to explore NASAโs Astronomy Picture of the Day (APOD) archive. Today, Iโm super excited to share Cosmic APOD V3!
I challenged myself to build this entirely without a backend. Itโs just Vite and Vanilla JS, but it packs some serious features using browser-native APIs.
โจ Whatโs new in V3?
-
๐ค Local AI Tagging: I integrated TensorFlow.js (
MobileNet) to generate image tags directly in your browser via WebGL. No server processing, completely private, and the 1.8MB model is lazy-loaded so the app stays blazing fast. - ๐ Shareable Collections: You can curate your favorite APODs and share them with friends. Because thereโs no database, the collections are serialized into Base64 URLs! When someone clicks your link, they get a custom preview modal before importing it into their local IndexedDB.
- ๐ Date-Range Explorer: Batch-fetch and paginate through decades of space history without locking up the browser.
-
๐ฆ Smart API Limits: NASA limits you to 30 requests/hour. V3 elegantly catches HTTP 429s and lets power users plug in their own API key via
localStorageto unlock 1,000 requests/hour.
Iโve learned so much about AbortControllers, IndexedDB, Service Workers, and client-side ML while building this.
If youโre interested in offline-first web apps or space, Iโd love for you to check it out and let me know what you think! ๐
๐ Live Demo: [https://cosmic-apod.vercel.app]
๐ป GitHub: [https://github.com/gauravkhatriweb/cosmic-apod]
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.