Skip to content

prb/avy-forecast-strava-webhook

Repository files navigation

Strava Avalanche Forecast Enrichment

Automatically enrich Strava backcountry ski activities with avalanche forecast information from the Northwest Avalanche Center (NWAC).

What It Does

When you upload a BackcountrySki activity to Strava, this system automatically:

  1. Detects the activity location and date
  2. Fetches the relevant NWAC avalanche forecast
  3. Appends formatted forecast data to your activity description

Manual Trigger: Add #avy_forecast to any activity title to manually request a forecast.

Example output:

NWAC Mt Hood Zone forecast: 3🟧/3🟧/2🟨 (https://nwac.us/avalanche-forecast/#/forecast/10/166378)

Quick Start

Prerequisites

  • Node.js 22+
  • AWS Account (for deployment)
  • Strava API application

Installation

npm install

Build

npm run build

Test

npm test

Project Structure

This is a TypeScript monorepo with three main components:

Packages:

  • forecast-api - Fetch NWAC forecasts by GPS coordinates (docs)
  • forecast-formatter - Format forecasts with colored danger indicators (docs)

Application:

  • strava-webhook - AWS Lambda application for Strava webhook integration (docs)

Documentation

Status

Production Ready - All components complete with 120+ passing tests.

  • ✅ Forecast API (66 tests)
  • ✅ Forecast formatter (14 tests)
  • ✅ Strava webhook handler (40 tests)
  • ✅ Multi-user OAuth flow
  • ✅ AWS CDK infrastructure

License

CC0 1.0 Universal - Public Domain Dedication

About

Strava webhook to add avalanche forecast summary and link into activity descriptions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors