{"id":21655132,"url":"https://github.com/thomas-basham/ps-creel","last_synced_at":"2026-04-13T19:31:12.272Z","repository":{"id":258427178,"uuid":"873904970","full_name":"thomas-basham/ps-creel","owner":"thomas-basham","description":"This web application fetches fishing report data from the Washington Department of Fish and Wildlife (WDFW) Creel Reports page and displays it on an interactive map.","archived":false,"fork":false,"pushed_at":"2026-03-26T22:52:28.000Z","size":318,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T10:44:13.695Z","etag":null,"topics":["creel","creel-survey","data-science","data-visualization","database","fish","fishing","nextjs","postgresql","puget-sound-data","pugetsound","react","sql","website"],"latest_commit_sha":null,"homepage":"https://pscreelreports.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomas-basham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-16T23:28:02.000Z","updated_at":"2026-03-26T22:52:31.000Z","dependencies_parsed_at":"2025-07-10T20:33:57.605Z","dependency_job_id":"a87ec869-6d55-46a7-ab13-d6c66a4a7d5a","html_url":"https://github.com/thomas-basham/ps-creel","commit_stats":null,"previous_names":["thomas-basham/ps-creel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thomas-basham/ps-creel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-basham%2Fps-creel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-basham%2Fps-creel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-basham%2Fps-creel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-basham%2Fps-creel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomas-basham","download_url":"https://codeload.github.com/thomas-basham/ps-creel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-basham%2Fps-creel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: 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":["creel","creel-survey","data-science","data-visualization","database","fish","fishing","nextjs","postgresql","puget-sound-data","pugetsound","react","sql","website"],"created_at":"2024-11-25T08:30:09.661Z","updated_at":"2026-04-13T19:31:12.252Z","avatar_url":"https://github.com/thomas-basham.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Puget Sound Creel Reports\n\nInteractive map-based viewer for Puget Sound creel (angler survey) reports.\n\nThis repository is a **frontend-only Next.js app**. It consumes an external reports API and overlays those reports on a Mapbox map with Washington marine area boundaries.\n\n## Links\n\n- Live app: [pscreelreports.com](https://pscreelreports.com)\n- Backend/API repository: [github.com/thomas-basham/ps-creel-api](https://github.com/thomas-basham/ps-creel-api)\n\n## Problem This Project Solves\n\nCreel report data is useful but hard to interpret quickly in raw table form. Anglers and planners usually need to answer questions like:\n\n- Where are fish being caught right now?\n- Which boat ramps have recent activity?\n- What species are being caught at a given launch site?\n\nThis app solves that by putting reports directly on a map and summarizing catch data per ramp.\n\n## How The App Solves It\n\n- Fetches recent creel reports from a configurable API (`NEXT_PUBLIC_REPORTS_API_URL`).\n- Fetches marine area geometry from WDFW ArcGIS (public GeoJSON endpoint).\n- Groups reports by `Ramp_site` and places ramp markers using ramp coordinates.\n- Opens a ramp detail panel with:\n  - total fish caught (combined + by species)\n  - report count\n  - individual report details (date, anglers, catch area, species)\n- Supports marine area hover/click interactions to show area number/name.\n- Shows an on-map date range summary for the loaded report set.\n\n## Current Architecture\n\n- **Framework:** Next.js App Router (client-rendered map experience)\n- **Main page:** `src/app/page.js`\n- **Data hooks:** `src/hooks/useReports.js` (SWR + Axios)\n- **Map + interactions:** `src/components/MapDisplay.jsx`\n- **Marine boundaries source:** WDFW ArcGIS REST query endpoint\n- **Ramp details UI:** `src/components/RampReports.jsx`, `src/components/ReportCard.jsx`\n\n## Tech Stack\n\n- Next.js 15\n- React 19\n- `react-map-gl` + `mapbox-gl`\n- SWR + Axios\n- Lodash (`groupBy`)\n- Tailwind CSS v4\n\n## Data Sources\n\n- **Creel reports API (required):**\n  - powered by `ps-creel-api` (ETL + Express + Prisma over WDFW CSV data)\n  - `GET {NEXT_PUBLIC_REPORTS_API_URL}/reports?limit=10000`\n  - `GET {NEXT_PUBLIC_REPORTS_API_URL}/reports/date?startDate=YYYY-MM-DD\u0026endDate=YYYY-MM-DD`\n- **Marine area polygons (public):**\n  - WDFW ArcGIS Marine Areas service (GeoJSON query)\n\n## Environment Variables\n\nCreate `.env.local` in the project root:\n\n```bash\nNEXT_PUBLIC_MAPBOX_API_KEY=pk.your_mapbox_token_here\nNEXT_PUBLIC_REPORTS_API_URL=https://your-reports-api.example.com\n```\n\n## Local Development\n\n```bash\nnpm install\nnpm run dev\n```\n\nOpen `http://localhost:3000`.\n\n## Scripts\n\n- `npm run dev` - run local dev server\n- `npm run build` - create production build\n- `npm run start` - run production server\n- `npm run lint` - run ESLint\n\n## Expected Report Shape\n\nThe UI currently expects report fields including:\n\n- `Ramp_site`\n- `sample_date_parsed` and/or `Sample_date`\n- `Anglers`\n- `Catch_area`\n- species counts (`Chinook`, `Coho`, `Chum`, `Pink`, `Sockeye`, `Lingcod`, `Halibut`)\n- nested ramp coordinates: `ramps.latitude`, `ramps.longitude`\n\n## Notes And Limitations\n\n- Temporary: the default date range start is hardcoded in `src/app/page.js` (`2025-06-01` to today).\n- The app depends on external services (reports API, Mapbox, WDFW ArcGIS).\n- This repo does not include the reports backend service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomas-basham%2Fps-creel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomas-basham%2Fps-creel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomas-basham%2Fps-creel/lists"}