{"id":20514961,"url":"https://github.com/oop7/nasa-apod-gallery","last_synced_at":"2026-03-13T10:32:09.045Z","repository":{"id":251183903,"uuid":"836654870","full_name":"oop7/Nasa-apod-gallery","owner":"oop7","description":"A web application that fetches and displays NASA's Astronomy Picture of the Day (APOD) images. Users can select date ranges to view images and double-click to view them in full screen.\"","archived":false,"fork":false,"pushed_at":"2025-08-10T15:17:54.000Z","size":362,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T16:25:11.488Z","etag":null,"topics":["apod","astronomy-images","date-range-picker","nasa-api","web-application"],"latest_commit_sha":null,"homepage":"https://preview--apollo-palette.lovable.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oop7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-01T09:30:34.000Z","updated_at":"2025-08-10T15:41:58.000Z","dependencies_parsed_at":"2025-07-02T06:31:55.986Z","dependency_job_id":"38dbecb4-dcc4-4f49-afbe-131c7f84d165","html_url":"https://github.com/oop7/Nasa-apod-gallery","commit_stats":null,"previous_names":["oop7/nasa-apod-gallery"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oop7/Nasa-apod-gallery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oop7%2FNasa-apod-gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oop7%2FNasa-apod-gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oop7%2FNasa-apod-gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oop7%2FNasa-apod-gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oop7","download_url":"https://codeload.github.com/oop7/Nasa-apod-gallery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oop7%2FNasa-apod-gallery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30465421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T06:34:02.089Z","status":"ssl_error","status_checked_at":"2026-03-13T06:33:49.182Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apod","astronomy-images","date-range-picker","nasa-api","web-application"],"created_at":"2024-11-15T21:19:02.426Z","updated_at":"2026-03-13T10:32:09.033Z","avatar_url":"https://github.com/oop7.png","language":"TypeScript","readme":"# NASA APOD Explorer\n\nA sleek, modern, and responsive web app to explore NASA’s Astronomy Picture of the Day (APOD). Built with React, Vite, TypeScript, Tailwind CSS, and shadcn/ui. Features a beautiful in-app media viewer (no new windows), light/dark theme, favorites, and basic offline support.\n\n![Hero](src/assets/hero-nebula.jpg)\n\n## Features\n- Daily APOD with title, explanation, and HD media\n- In-app media viewer modal with zoom and download (no popups)\n- Light/Dark theme toggle (persistent)\n- Date browsing via date picker and range gallery\n- Favorites stored in localStorage\n- “Surprise me” random APOD\n- Basic offline caching via service worker\n- Accessible, responsive, and keyboard-friendly UI\n\n## Tech Stack\n- React 18 + Vite + TypeScript\n- Tailwind CSS + shadcn/ui\n- @tanstack/react-query for data fetching/cache\n- NASA APOD API (https://api.nasa.gov/planetary/apod)\n\n## Live Demo\nYou can publish this project to GitHub Pages (instructions below). If deployed, add your live link here:\n- Live: https://\u003cyour-username\u003e.github.io/\u003cyour-repo\u003e/\n\n## Getting Started\n\n### Prerequisites\n- Node.js 18+ and npm\n\n### Installation\n```bash\nnpm install\nnpm run dev\n```\nThen open http://localhost:5173\n\n### NASA API Key (optional)\n- The app works out-of-the-box with NASA’s DEMO_KEY (rate-limited).\n- To use your own key, click the Settings (gear) icon in the header and paste your API key. It’s stored locally and used for subsequent requests.\n- Get a key: https://api.nasa.gov/\n\n## Scripts\n```bash\n# Start dev server\nnpm run dev\n\n# Build for production (output in dist)\nnpm run build\n\n# Preview the production build locally\nnpm run preview\n```\n\n## Project Structure\n```\n/\n├── index.html\n├── public/\n│   └── sw.js                 # Service worker for basic offline caching\n├── src/\n│   ├── assets/\n│   │   └── hero-nebula.jpg\n│   ├── components/\n│   │   ├── Header.tsx\n│   │   └── apod/\n│   │       ├── ApodHero.tsx\n│   │       ├── ApodGallery.tsx\n│   │       ├── ApodCard.tsx\n│   │       └── DatePicker.tsx\n│   ├── lib/\n│   │   └── apod.ts           # API helpers + API key management (localStorage)\n│   ├── pages/\n│   │   ├── Index.tsx\n│   │   └── NotFound.tsx\n│   ├── index.css             # Design tokens \u0026 theme\n│   ├── main.tsx              # App entry\n│   └── App.tsx               # Providers \u0026 routes\n├── tailwind.config.ts\n└── vite.config.ts\n```\n\n## Deployment (Netlify)\nNetlify makes deployment simple and fast. No Vite base path is needed (leave it default).\n\n### Option A — Deploy via Netlify UI\n1. Push your repo to GitHub/GitLab/Bitbucket\n2. In Netlify, click “Add new site” → “Import an existing project”\n3. Select your repo\n4. Build settings:\n   - Build command: `npm run build`\n   - Publish directory: `dist`\n   - Node version: 20 (Site settings → Build \u0026 deploy → Environment)\n5. Deploy\n\n### Option B — Deploy via Netlify CLI\n- Install CLI: `npm i -g netlify-cli`\n- Login: `netlify login`\n- Init (first time): `netlify init`\n- Build \u0026 deploy: `npm run build \u0026\u0026 netlify deploy --prod --dir=dist`\n\n### SPA Routing \u0026 Caching\nThis repo includes `netlify.toml` to:\n- Redirect all routes to `/index.html` (prevents 404 on refresh)\n- Cache hashed assets aggressively\n- Prevent caching of HTML and `sw.js`\n\n### Environment / Secrets\n- NASA API key entry is handled in-app via Settings and stored in localStorage (no build-time env needed).\n- If you later add env vars, set them in Netlify → Site settings → Environment.\n\n### Post-deploy checklist\n- Deep links work (client-side routing fallback)\n- Images/videos load; offline caching works (service worker)\n- Theme toggle persists; Lighthouse scores are solid\n\n## Accessibility\n- Semantic HTML, labeled controls, aria-attributes for dialogs\n- Keyboard navigation for key interactions\n- High-contrast theming with Tailwind semantic tokens\n\n## Privacy \u0026 Data\n- No server-side storage. Favorites and API key live in your browser’s localStorage.\n- NASA content courtesy of the APOD API. Respect their usage policies.\n\n## Contributing\nIssues and PRs are welcome! Please:\n- Use descriptive titles and follow conventional commits when possible\n- Keep PRs focused and small\n- Adhere to existing code style\n\n## License\nMIT © oop7. See LICENSE if you add one.\n\n## Acknowledgements\n- NASA APOD: https://apod.nasa.gov/\n- Icons: lucide-react\n- UI: shadcn/ui + Radix Primitives\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foop7%2Fnasa-apod-gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foop7%2Fnasa-apod-gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foop7%2Fnasa-apod-gallery/lists"}