{"id":"vp0.forge-workout","docs":"This is an iOS app UI starter built with React Native. Paste the design link into your AI app builder (Claude Code, Rork, Lovable) and ask it to start from this design. Add your own backend/data logic. These are UI starters.","kind":"app_template","meta":{"com.vp0.kind":"app_template","com.vp0.category":"Fitness","com.vp0.platform":"ios","com.vp0.contentId":"fc9cccd0-3f0c-4312-bd8b-30093c4baf91","com.vp0.simulator":{"target":"react-native","embedUrl":null,"provider":null,"entrypoint":"App.tsx","buildStatus":null,"simulatable":true},"com.vp0.sourceHash":"sha256:997237685573e2994c9a2e16c1eebd13ff2f0dd043d9e5377185b813b7a82415","com.vp0.contentType":"template","com.vp0.sourceToken":"vp0_1f4d344d3691ccdcc03c7860","com.vp0.defaultLanguage":"react-native","com.vp0.availableLanguages":["react-native","swiftui"]},"name":"forge-workout","slug":"forge-workout","tags":["Dark","Fitness","Energetic"],"type":"registry:block","files":[{"path":"App.tsx","type":"registry:page","rawUrl":"https://api.vp0.com/designs/forge-workout/raw?language=react-native&path=App.tsx","target":"app/App.tsx","content":"import React, { useState } from 'react';\nimport { View, Text, ScrollView, Pressable, StyleSheet, SafeAreaView } from 'react-native';\n\nconst EX = [\n  { name: 'Barbell squat', sets: '4 × 8', icon: '🦵' },\n  { name: 'Bench press', sets: '4 × 10', icon: '💪' },\n  { name: 'Deadlift', sets: '3 × 6', icon: '🏋️' },\n  { name: 'Pull-ups', sets: '3 × 12', icon: '🧗' },\n  { name: 'Plank', sets: '3 × 60s', icon: '🧘' },\n];\n\nexport default function App() {\n  const [done, setDone] = useState<Record<number, boolean>>({});\n  const count = Object.values(done).filter(Boolean).length;\n  return (\n    <SafeAreaView style={s.safe}>\n      <ScrollView contentContainerStyle={s.scroll} showsVerticalScrollIndicator={false}>\n        <Text style={s.kicker}>PUSH DAY · 48 MIN</Text>\n        <Text style={s.h1}>Strength A</Text>\n        <View style={s.hud}>\n          <View style={s.hudItem}><Text style={s.hudN}>{count}/{EX.length}</Text><Text style={s.hudL}>exercises</Text></View>\n          <View style={s.hudItem}><Text style={s.hudN}>1,240</Text><Text style={s.hudL}>kg lifted</Text></View>\n          <View style={s.hudItem}><Text style={s.hudN}>320</Text><Text style={s.hudL}>kcal</Text></View>\n        </View>\n        {EX.map((e, i) => {\n          const on = done[i];\n          return (\n            <Pressable key={i} onPress={() => setDone((d) => ({ ...d, [i]: !d[i] }))} style={[s.row, on && s.rowOn]}>\n              <Text style={s.exIcon}>{e.icon}</Text>\n              <View style={{ flex: 1 }}>\n                <Text style={[s.exName, on && { color: '#fff' }]}>{e.name}</Text>\n                <Text style={s.exSets}>{e.sets}</Text>\n              </View>\n              <View style={[s.check, on && s.checkOn]}>{on ? <Text style={s.checkM}>✓</Text> : null}</View>\n            </Pressable>\n          );\n        })}\n      </ScrollView>\n    </SafeAreaView>\n  );\n}\n\nconst s = StyleSheet.create({\n  safe: { flex: 1, backgroundColor: '#0E0709' },\n  scroll: { padding: 22, paddingTop: 60 },\n  kicker: { color: '#F43F5E', fontSize: 12, fontWeight: '700', letterSpacing: 2 },\n  h1: { color: '#fff', fontSize: 34, fontWeight: '800', marginTop: 4 },\n  hud: { flexDirection: 'row', backgroundColor: '#1A0E11', borderRadius: 18, padding: 18, marginVertical: 22, justifyContent: 'space-between' },\n  hudItem: { alignItems: 'center', flex: 1 },\n  hudN: { color: '#fff', fontSize: 20, fontWeight: '800' },\n  hudL: { color: '#A86A74', fontSize: 12, marginTop: 3 },\n  row: { flexDirection: 'row', alignItems: 'center', backgroundColor: '#160C0E', borderRadius: 16, padding: 16, marginBottom: 12 },\n  rowOn: { backgroundColor: '#2A1015' },\n  exIcon: { fontSize: 26, marginRight: 14 },\n  exName: { color: '#EDE0E2', fontSize: 17, fontWeight: '700' },\n  exSets: { color: '#A86A74', fontSize: 14, marginTop: 3 },\n  check: { width: 30, height: 30, borderRadius: 15, borderWidth: 2, borderColor: '#3A1F24', alignItems: 'center', justifyContent: 'center' },\n  checkOn: { backgroundColor: '#F43F5E', borderColor: '#F43F5E' },\n  checkM: { color: '#fff', fontWeight: '900', fontSize: 16 },\n});\n","language":"react-native"},{"path":"WorkoutView.swift","type":"registry:page","rawUrl":"https://api.vp0.com/designs/forge-workout/raw?language=swiftui&path=WorkoutView.swift","target":"app/WorkoutView.swift","content":"import SwiftUI\n\nstruct Exercise: Identifiable { let id = UUID(); let name: String; let sets: String; let icon: String; var done = false }\n\nstruct WorkoutView: View {\n    @State private var exercises: [Exercise] = [\n        .init(name: \"Barbell squat\", sets: \"4 × 8\", icon: \"figure.strengthtraining.traditional\"),\n        .init(name: \"Bench press\", sets: \"4 × 10\", icon: \"dumbbell.fill\"),\n        .init(name: \"Deadlift\", sets: \"3 × 6\", icon: \"figure.strengthtraining.functional\"),\n        .init(name: \"Pull-ups\", sets: \"3 × 12\", icon: \"figure.climbing\"),\n        .init(name: \"Plank\", sets: \"3 × 60s\", icon: \"figure.core.training\")\n    ]\n    private var done: Int { exercises.filter(\\.done).count }\n\n    var body: some View {\n        ZStack {\n            Color(red: 0.05, green: 0.03, blue: 0.04).ignoresSafeArea()\n            ScrollView {\n                VStack(alignment: .leading, spacing: 16) {\n                    Text(\"PUSH DAY · 48 MIN\").font(.caption).bold().foregroundColor(Color(red: 0.96, green: 0.25, blue: 0.37))\n                    Text(\"Strength A\").font(.system(size: 34, weight: .heavy)).foregroundColor(.white)\n                    HStack {\n                        stat(\"\\(done)/\\(exercises.count)\", \"exercises\")\n                        stat(\"1,240\", \"kg lifted\")\n                        stat(\"320\", \"kcal\")\n                    }\n                    .padding(18).background(Color(red: 0.10, green: 0.05, blue: 0.07)).cornerRadius(18)\n\n                    ForEach($exercises) { $ex in\n                        Button { ex.done.toggle() } label: {\n                            HStack(spacing: 14) {\n                                Image(systemName: ex.icon).font(.title2).foregroundColor(.white).frame(width: 30)\n                                VStack(alignment: .leading, spacing: 3) {\n                                    Text(ex.name).fontWeight(.semibold).foregroundColor(.white)\n                                    Text(ex.sets).font(.footnote).foregroundColor(.gray)\n                                }\n                                Spacer()\n                                Image(systemName: ex.done ? \"checkmark.circle.fill\" : \"circle\")\n                                    .foregroundColor(ex.done ? Color(red: 0.96, green: 0.25, blue: 0.37) : .gray).font(.title2)\n                            }\n                            .padding(16).background(Color.white.opacity(0.04)).cornerRadius(16)\n                        }\n                    }\n                }\n                .padding(22)\n            }\n        }\n    }\n\n    private func stat(_ value: String, _ label: String) -> some View {\n        VStack(spacing: 3) {\n            Text(value).font(.title3).bold().foregroundColor(.white)\n            Text(label).font(.caption).foregroundColor(.gray)\n        }.frame(maxWidth: .infinity)\n    }\n}\n\n#Preview { WorkoutView() }\n","language":"swiftui"}],"notes":"This is an iOS app UI starter built with React Native. Paste the design link into your AI app builder (Claude Code, Rork, Lovable) and ask it to start from this design. Add your own backend/data logic. These are UI starters.","title":"Forge — Workout","assets":[{"url":"https://storage.vp0.com/vp0/covers/fc9cccd0-3f0c-4312-bd8b-30093c4baf91/6a623b34-d0aa-4086-aace-3aa4c41ec5fe/full.webp","kind":"cover","lqip":"BBgCAwBurzaHh4Zkvoqgxwg=","width":1206,"height":2622,"variants":{"avif":"https://storage.vp0.com/vp0/covers/fc9cccd0-3f0c-4312-bd8b-30093c4baf91/6a623b34-d0aa-4086-aace-3aa4c41ec5fe/avif.avif","card":"https://storage.vp0.com/vp0/covers/fc9cccd0-3f0c-4312-bd8b-30093c4baf91/6a623b34-d0aa-4086-aace-3aa4c41ec5fe/card.webp","full":"https://storage.vp0.com/vp0/covers/fc9cccd0-3f0c-4312-bd8b-30093c4baf91/6a623b34-d0aa-4086-aace-3aa4c41ec5fe/full.webp","thumb":"https://storage.vp0.com/vp0/covers/fc9cccd0-3f0c-4312-bd8b-30093c4baf91/6a623b34-d0aa-4086-aace-3aa4c41ec5fe/thumb.webp","light_avif":"https://storage.vp0.com/vp0/covers/fc9cccd0-3f0c-4312-bd8b-30093c4baf91/5d32a9af-a7f6-474e-bebc-7eeaf792c167/avif.avif","light_card":"https://storage.vp0.com/vp0/covers/fc9cccd0-3f0c-4312-bd8b-30093c4baf91/5d32a9af-a7f6-474e-bebc-7eeaf792c167/card.webp","light_full":"https://storage.vp0.com/vp0/covers/fc9cccd0-3f0c-4312-bd8b-30093c4baf91/5d32a9af-a7f6-474e-bebc-7eeaf792c167/full.webp","light_thumb":"https://storage.vp0.com/vp0/covers/fc9cccd0-3f0c-4312-bd8b-30093c4baf91/5d32a9af-a7f6-474e-bebc-7eeaf792c167/thumb.webp"}},{"url":"https://storage.vp0.com/vp0/clips/30/1b9e96f0-3737-4689-8c72-f2e6b88904a8/clip.mp4","kind":"video","variants":{"mp4":"https://storage.vp0.com/vp0/clips/30/1b9e96f0-3737-4689-8c72-f2e6b88904a8/clip.mp4","webm":"https://storage.vp0.com/vp0/clips/30/1b9e96f0-3737-4689-8c72-f2e6b88904a8/clip.webm","poster":"https://storage.vp0.com/vp0/clips/30/1b9e96f0-3737-4689-8c72-f2e6b88904a8/poster.jpg"}}],"author":"@vp0","$schema":"https://api.vp0.com/schema/vp0-bundle.v1.json","license":null,"screens":[],"targets":[{"name":"react-native","entrypoint":"App.tsx"},{"name":"swiftui","entrypoint":"WorkoutView.swift"}],"version":"1.0.0","category":"Fitness","platform":"ios","createdAt":"2026-05-25T19:40:49.594Z","createdBy":"vp0","importUrl":"https://vp0.com/source/forge-workout","styleTags":["Dark","Energetic"],"updatedAt":"2026-05-25T19:40:49.594Z","categories":["Fitness"],"promptText":"Build this iOS app design in my project: \"Forge — Workout\" — A guided strength session with sets, reps, and a rest timer..\n1. Fetch https://api.vp0.com/designs/forge-workout/manifest — a JSON manifest whose files[] array contains EVERY source file inline (path + content).\n2. Create each file at its exact files[].path and paste its content VERBATIM. Do not re-imagine or restyle the UI — the provided code IS the design.\n3. Install dependencies exactly as given by the manifest's installCommand field (skip if null).\n4. Render the entry component (targets[].entrypoint) from a screen. Keep SafeAreaView / safe-area insets and the existing styling untouched.\n5. It is a UI starter: once it renders pixel-perfect, wire my own data, navigation and backend on top.\nHuman-readable source page: https://vp0.com/source/forge-workout","sourceHash":"sha256:997237685573e2994c9a2e16c1eebd13ff2f0dd043d9e5377185b813b7a82415","contentType":"template","description":"A guided strength session with sets, reps, and a rest timer.","manifestUrl":"https://api.vp0.com/designs/forge-workout/manifest","sourceToken":"vp0_1f4d344d3691ccdcc03c7860","dependencies":{},"installHints":{"cli":"npx vp0com add forge-workout --target react-native","mcp":"claude mcp add vp0 -- npx -y vp0-mcp","shadcn":"npx shadcn@latest add https://api.vp0.com/r/forge-workout.json","openInV0":"https://v0.dev/chat/api/open?url=https://api.vp0.com/r/forge-workout.json","downloadExpo":"https://api.vp0.com/export/forge-workout/expo.zip","defaultTarget":"react-native","downloadXcode":"https://api.vp0.com/export/forge-workout/xcode.zip"},"schemaVersion":"vp0-bundle.v1","aiInstructions":"This is an iOS app UI starter for Expo React Native (\"Forge — Workout\").\nIntegrate it into the user's Expo project as follows:\n1. No extra dependencies are required.\n2. Create the following file(s) and paste each provided \"content\" exactly:\n   - App.tsx\n   - WorkoutView.swift\n3. Render the exported component from a screen (e.g. app/(tabs)/index.tsx). It targets iOS — keep SafeAreaView / safe-area insets and the existing styling.\n4. These are UI starters: reproduce the visual layout faithfully, then wire the user's own data/navigation/backend afterward.","componentsUsed":[],"installCommand":null,"defaultLanguage":"react-native","devDependencies":{},"availableLanguages":["react-native","swiftui"],"registryDependencies":[]}