• Townie
    AI
  • Blog
  • Docs
  • Pricing
Log inSign up
anand_g

anand_g

workout-5m

Public
Like
workout-5m
Home
Code
3
backend
1
frontend
3
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/18/2025
README.md

Standing Workout Generator

An AI-powered workout generator that creates a single random standing workout focused on hip, neck, and spine mobility and strength. All exercises can be performed without lying down and use only bodyweight.

Features

  • Single AI-generated workout per session
  • Workout Variety System: Tracks the last 2 workouts and ensures new ones are completely different
  • Horizontal layout with three components displayed side-by-side
  • Each workout includes:
    • πŸ§˜β€β™€οΈ Stretch component (hip, neck, spine flexibility)
    • πŸ’ͺ Strength component (bodyweight exercises)
    • πŸ€Έβ€β™€οΈ Mobility component (movement patterns)
  • All exercises are standing or seated (no lying down required)
  • Designed to fit on one screen without scrolling
  • AI-generated content for variety and personalization
  • Persistent storage using Val Town's blob storage

Structure

  • backend/index.ts - Main Hono server with workout generation API and history tracking
  • frontend/index.html - Main HTML template
  • frontend/index.tsx - React frontend application
  • frontend/style.css - Custom styling for horizontal layout

API Endpoints

  • GET /api/workout - Generate a new unique workout
  • GET /api/history - View workout history (for debugging)

Usage

The application generates a single workout using OpenAI while avoiding the last 2 generated workouts to ensure variety. The three workout components are displayed horizontally for easy viewing on one screen.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.