{"$schema":"https://api.vp0.com/schema/vp0-bundle.v1.json","schemaVersion":"vp0-bundle.v1","id":"vp0.sprint-focus-timer","title":"Sprint — Focus Timer","type":"registry:block","version":"1.0.0","author":"@vp0","categories":["Productivity"],"styleTags":["Dark","Minimal","Focus"],"category":"Productivity","registryDependencies":[],"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.","license":null,"kind":"app_template","createdAt":"2026-05-25T19:40:48.763Z","updatedAt":"2026-05-25T19:40:48.763Z","installHints":{"defaultTarget":"react-native","mcp":"claude mcp add vp0 -- npx -y vp0-mcp","shadcn":"npx shadcn@latest add https://api.vp0.com/r/sprint-focus-timer.json","cli":"npx vp0com add sprint-focus-timer --target react-native","openInV0":"https://v0.dev/chat/api/open?url=https://api.vp0.com/r/sprint-focus-timer.json","downloadExpo":"https://api.vp0.com/export/sprint-focus-timer/expo.zip"},"sourceHash":"sha256:413b56f291d03ce5e60bc0b07654b99388d1c629a85c9faff6d184b6e01c6017","meta":{"com.vp0.contentId":"97de7f34-8b9a-4ed4-b34d-309f9c10e6bb","com.vp0.platform":"ios","com.vp0.availableLanguages":["react-native"],"com.vp0.defaultLanguage":"react-native","com.vp0.contentType":"template","com.vp0.kind":"app_template","com.vp0.category":"Productivity","com.vp0.sourceToken":"vp0_f4dbac5182f402001a43ce13","com.vp0.sourceHash":"sha256:413b56f291d03ce5e60bc0b07654b99388d1c629a85c9faff6d184b6e01c6017","com.vp0.simulator":{"target":"react-native","entrypoint":"App.tsx","simulatable":true,"buildStatus":null,"embedUrl":null,"provider":null}},"name":"sprint-focus-timer","slug":"sprint-focus-timer","sourceToken":"vp0_f4dbac5182f402001a43ce13","contentType":"template","platform":"ios","description":"A Pomodoro focus timer with session dots and a clean countdown.","createdBy":"vp0","tags":["Dark","Productivity","Minimal","Focus"],"availableLanguages":["react-native"],"defaultLanguage":"react-native","targets":[{"name":"react-native","entrypoint":"App.tsx"}],"files":[{"language":"react-native","path":"App.tsx","type":"registry:page","target":"app/App.tsx","rawUrl":"https://api.vp0.com/designs/sprint-focus-timer/raw?language=react-native&path=App.tsx","content":"import React, { useEffect, useRef, useState } from 'react';\nimport { View, Text, Pressable, StyleSheet, SafeAreaView } from 'react-native';\n\nexport default function App() {\n  const [secs, setSecs] = useState(25 * 60);\n  const [running, setRunning] = useState(false);\n  const [done, setDone] = useState(2);\n  const timer = useRef<any>(null);\n\n  useEffect(() => {\n    if (running) {\n      timer.current = setInterval(() => setSecs((x) => (x > 0 ? x - 1 : 0)), 1000);\n    }\n    return () => clearInterval(timer.current);\n  }, [running]);\n\n  const mm = String(Math.floor(secs / 60)).padStart(2, '0');\n  const ss = String(secs % 60).padStart(2, '0');\n\n  return (\n    <SafeAreaView style={s.safe}>\n      <View style={s.top}>\n        <Text style={s.kicker}>FOCUS SESSION</Text>\n        <Text style={s.task}>Design review</Text>\n      </View>\n      <View style={s.center}>\n        <View style={s.dial}>\n          <Text style={s.time}>{mm}:{ss}</Text>\n          <Text style={s.timeSub}>{running ? 'in progress' : 'paused'}</Text>\n        </View>\n        <View style={s.dots}>\n          {[0, 1, 2, 3].map((i) => (\n            <View key={i} style={[s.dot, i < done && s.dotOn]} />\n          ))}\n        </View>\n        <Text style={s.dotsLabel}>{done} of 4 sessions today</Text>\n      </View>\n      <View style={s.footer}>\n        <Pressable onPress={() => setRunning((r) => !r)} style={({ pressed }) => [s.btn, pressed && { opacity: 0.85 }]}>\n          <Text style={s.btnText}>{running ? 'Pause focus' : 'Start focus'}</Text>\n        </Pressable>\n        <Pressable onPress={() => { setSecs(25 * 60); setRunning(false); }} style={s.reset}>\n          <Text style={s.resetText}>Reset</Text>\n        </Pressable>\n      </View>\n    </SafeAreaView>\n  );\n}\n\nconst s = StyleSheet.create({\n  safe: { flex: 1, backgroundColor: '#0C0A0A' },\n  top: { paddingTop: 64, alignItems: 'center' },\n  kicker: { color: '#FF6B5C', fontSize: 12, fontWeight: '700', letterSpacing: 2 },\n  task: { color: '#fff', fontSize: 24, fontWeight: '800', marginTop: 6 },\n  center: { flex: 1, alignItems: 'center', justifyContent: 'center' },\n  dial: { width: 250, height: 250, borderRadius: 125, borderWidth: 3, borderColor: '#2A1C1A', backgroundColor: '#161010', alignItems: 'center', justifyContent: 'center' },\n  time: { color: '#fff', fontSize: 60, fontWeight: '200', letterSpacing: 1, fontVariant: ['tabular-nums'] },\n  timeSub: { color: '#8A6A66', fontSize: 14, marginTop: 6 },\n  dots: { flexDirection: 'row', gap: 12, marginTop: 40 },\n  dot: { width: 12, height: 12, borderRadius: 6, backgroundColor: '#2A1C1A' },\n  dotOn: { backgroundColor: '#FF6B5C' },\n  dotsLabel: { color: '#8A6A66', fontSize: 13, marginTop: 14 },\n  footer: { paddingHorizontal: 26, paddingBottom: 40 },\n  btn: { backgroundColor: '#FF6B5C', borderRadius: 30, paddingVertical: 18, alignItems: 'center' },\n  btnText: { color: '#2A0E0A', fontSize: 17, fontWeight: '800' },\n  reset: { paddingVertical: 16, alignItems: 'center' },\n  resetText: { color: '#8A6A66', fontSize: 15, fontWeight: '600' },\n});\n"}],"assets":[{"kind":"cover","url":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/7155478f-8d03-4447-ac57-8fdc7f939253/full.webp","width":1206,"height":2622,"lqip":"BRgGCwQ4gciIhHgOWHCNBdc=","variants":{"avif":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/7155478f-8d03-4447-ac57-8fdc7f939253/avif.avif","card":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/7155478f-8d03-4447-ac57-8fdc7f939253/card.webp","full":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/7155478f-8d03-4447-ac57-8fdc7f939253/full.webp","thumb":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/7155478f-8d03-4447-ac57-8fdc7f939253/thumb.webp","light_avif":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/a88e89dd-d678-401d-9198-37f2c47a77c2/avif.avif","light_card":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/a88e89dd-d678-401d-9198-37f2c47a77c2/card.webp","light_full":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/a88e89dd-d678-401d-9198-37f2c47a77c2/full.webp","light_thumb":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/a88e89dd-d678-401d-9198-37f2c47a77c2/thumb.webp"}},{"kind":"video","url":"https://storage.vp0.com/vp0/clips/3/e57c35c0-44a9-4991-8ed3-7a72cea744d6/clip.mp4","variants":{"mp4":"https://storage.vp0.com/vp0/clips/3/e57c35c0-44a9-4991-8ed3-7a72cea744d6/clip.mp4","webm":"https://storage.vp0.com/vp0/clips/3/e57c35c0-44a9-4991-8ed3-7a72cea744d6/clip.webm","poster":"https://storage.vp0.com/vp0/clips/3/e57c35c0-44a9-4991-8ed3-7a72cea744d6/poster.jpg"}}],"screens":[],"dependencies":{},"devDependencies":{},"componentsUsed":[],"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.","importUrl":"https://vp0.com/source/sprint-focus-timer","manifestUrl":"https://api.vp0.com/designs/sprint-focus-timer/manifest","installCommand":null,"aiInstructions":"This is an iOS app UI starter for Expo React Native (\"Sprint — Focus Timer\").\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\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.","promptText":"Build this iOS app design in my project: \"Sprint — Focus Timer\" — A Pomodoro focus timer with session dots and a clean countdown..\n1. Fetch https://api.vp0.com/designs/sprint-focus-timer/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/sprint-focus-timer"}