Skip to content

Latest commit

 

History

133 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RunPaceFlow logo

RunPaceFlow

Personal running data visualization app for activities managed by RunPaceFlow Admin.

中文文档

RunPaceFlow dashboard preview

RunPaceFlow activity detail preview

Features

  • Read-only dashboard for running and cycling activities already stored in the activity database
  • Map route visualization with animated playback
  • Split pace analysis and charts
  • Cached AI-powered running insights generated by RunPaceFlow Admin
  • Lazy-loaded map components and optimized bundle size
  • Runtime configuration loaded from RunPaceFlow Admin
  • Responsive design for desktop and mobile

Data Ownership

RunPaceFlow does not ingest or sync activity data directly. Data ingestion, third-party platform credentials, AI generation, PR Agent workflows, and runtime settings are managed by RunPaceFlow Admin. The main site calls Admin's read-only API, which reads the mounted shared.db; Turso is retained only as an Admin-side mirror/backup target.

Configuration

Create a .env.local file:

# Required for the server-to-server read API (use the same token in Admin)
RUNPACEFLOW_ADMIN_URL=http://localhost:3030
RUNPACEFLOW_ADMIN_API_TOKEN=your_main_site_api_token

# Optional map style
NEXT_PUBLIC_MAP_STYLE=https://basemaps.cartocdn.com/gl/positron-gl-style/style.json

# AI credentials and model settings are configured in RunPaceFlow Admin.

# Goals (optional - customize weekly/monthly targets)
NEXT_PUBLIC_WEEKLY_DISTANCE_GOAL=10000
NEXT_PUBLIC_MONTHLY_DISTANCE_GOAL=50000
NEXT_PUBLIC_WEEKLY_DURATION_GOAL=3600
NEXT_PUBLIC_MONTHLY_DURATION_GOAL=18000

AI Insights

RunPaceFlow Admin's scheduler generates personalized insights and stores them in shared.db. The main site only reads the cached result; AI provider credentials never need to be configured on the main site.

Local Development

# Install dependencies
bun install

# Start dev server
bun run dev

Visit http://localhost:3000

Deployment

Configure RUNPACEFLOW_ADMIN_URL and RUNPACEFLOW_ADMIN_API_TOKEN in the main-site deployment. Configure the same token as MAIN_SITE_API_TOKEN in Admin, and keep Turso's DATABASE_URL / DATABASE_AUTH_TOKEN only in Admin for its mirror job.

Credits

Inspired by yihong0618/running_page

License

MIT

About

WIP... Running Page of Modern UI Design

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages