{"$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 vp0 add sprint-focus-timer --target react-native","openInV0":"https://v0.dev/chat/api/open?url=https://api.vp0.com/r/sprint-focus-timer.json"},"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/e8982388-3f12-4159-8646-6e47c53bdbe7/full.webp","width":804,"height":1748,"lqip":"BRgGCwQ4gciIhHgOWHCNBdc=","variants":{"avif":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/e8982388-3f12-4159-8646-6e47c53bdbe7/avif.avif","card":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/e8982388-3f12-4159-8646-6e47c53bdbe7/card.webp","full":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/e8982388-3f12-4159-8646-6e47c53bdbe7/full.webp","thumb":"https://storage.vp0.com/vp0/covers/97de7f34-8b9a-4ed4-b34d-309f9c10e6bb/e8982388-3f12-4159-8646-6e47c53bdbe7/thumb.webp"}},{"kind":"video","url":"https://storage.vp0.com/vp0/clips/3/b444620b-1cfe-468c-91da-6de5b9579804/clip.mp4","variants":{"mp4":"https://storage.vp0.com/vp0/clips/3/b444620b-1cfe-468c-91da-6de5b9579804/clip.mp4","webm":"https://storage.vp0.com/vp0/clips/3/b444620b-1cfe-468c-91da-6de5b9579804/clip.webm","poster":"https://storage.vp0.com/vp0/clips/3/b444620b-1cfe-468c-91da-6de5b9579804/poster.jpg"}}],"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":"Recreate this iOS app design in my Expo React Native project. Fetch the full source, dependencies, and step-by-step integration instructions from https://vp0.com/source/sprint-focus-timer (machine-readable JSON manifest: https://api.vp0.com/designs/sprint-focus-timer/manifest). Design: \"Sprint — Focus Timer\" — A Pomodoro focus timer with session dots and a clean countdown.. Match the layout and styling exactly; it's an iOS UI starter, so add my own data/logic afterward."}