This project is a rewrite in Svelte
of the React
app flood-archive-vis-react. It was completed by Cursor and Claude-3.7-Sonnet in 4 hours, along with a few cosmetic touch-ups that took an additional 4 hours.
This project visualizes the Global Active Archive of Large Flood Events data from 1985 to 2021, utilizing interactive maps and time-based filtering to explore historical flood events around the globe.
Clone the repository:
git clone https://github.com/kumilange/flood-archive-vis-svelte.git
cd flood-archive-vis-svelte
Install dependencies:
npm install
Start the development server:
npm run dev
Open http://localhost:5173 in your browser.
npm run dev
- Start development servernpm run build
- Build for productionnpm run preview
- Preview production buildnpm run format
- Format code with Prettiernpm run lint
- Lint code with ESLintnpm run check
- Type-check with TypeScriptflood-archive-vis/
βββ src/ # Source code
β βββ assets/ # Image assets
β βββ components/ # Svelte components
β β βββ AreaSelect/ # Geographic area selection
β β βββ Legend/ # Map legend component
β β βββ RangeSlider/ # Time range slider
β βββ styles/ # Global styles
β βββ routes/ # Svelte routes
β βββ lib/ # Library code & utilities
βββ .eslintrc.cjs # ESLint configuration
βββ .prettierrc.json # Prettier configuration
βββ tsconfig.json # TypeScript configuration
βββ vite.config.ts # Vite configuration
This application uses data from the Dartmouth Flood Observatory, University of Colorado, maintained by G.R. Brakenridge. The Global Active Archive of Large Flood Events documents major flood events worldwide from 1985 to the present.
Citation: G.R. Brakenridge. Global Active Archive of Large Flood Events. Dartmouth Flood Observatory, University of Colorado, USA. http://floodobservatory.colorado.edu/Archives/