How chiragchrg/vortexa works
Project type and purpose
• This is a JAMstack-style, single-page Progressive Web App (PWA) built with Astro for static generation and Preact for client‐side interactivity.
• It fetches weather data from an external API, stores it in a lightweight state store (Nanostores), and renders charts (D3) and UI components (Tailwind, SVGs).
File structure
• Top-level:
• astro.config.mjs, package.json, tailwind.config.cjs, tsconfig.json: build/configuration
• public/: static assets, PWA manifest, service worker, redirects
• src/: source code
• src/pages: entrypoint page (index.astro)
• src/layouts: page wrappers (Layout.astro)
• src/components:
• .astro components (server‐rendered wrappers)
• Preact/ (client-hydrated UI components)
• src/store: Nanostores for shared state
• src/utils: helpers (Toaster, horizontal scroll)
• Configuration files indicate TypeScript, Tailwind, Astro, Netlify deployment.
README for additional insights
• Tech stack: Astro, Preact, TypeScript, Tailwind CSS, Nanostores, D3
• Purpose: weather insights and forecasts, PWA deployment on Netlify