• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
anand_g

anand_g

workout-5m

Public
Like
workout-5m
Home
Code
3
backend
1
frontend
3
README.md
Environment variables
Branches
1
Pull requests
Remixes
History
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
/
Code
/
Search
index.ts
https://anand_g--2be3dde07bc911f097a80224a6c84d84.web.val.run
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.

Code
backendfrontendREADME.md
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2026 Val Town, Inc.