{"id":"vp0.pulse-habit-ring","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":"Habit Tracking","com.vp0.platform":"ios","com.vp0.contentId":"ccde8414-d757-4599-8777-11e942f7f0c1","com.vp0.simulator":{"target":"react-native","embedUrl":null,"provider":null,"entrypoint":"App.tsx","buildStatus":null,"simulatable":true},"com.vp0.sourceHash":"sha256:f2f9c337df5316ea3c0b1b26b3e809353af3906164a52bd9d24fe3d693b31510","com.vp0.contentType":"template","com.vp0.sourceToken":"vp0_1950c3f6b75b7b0e15ff6dd3","com.vp0.defaultLanguage":"react-native","com.vp0.availableLanguages":["react-native","swiftui"]},"name":"pulse-habit-ring","slug":"pulse-habit-ring","tags":["Dark","Habit Tracking","Minimal"],"type":"registry:block","files":[{"path":"App.tsx","type":"registry:page","rawUrl":"https://api.vp0.com/designs/pulse-habit-ring/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 DATA = [\n  { id: 1, name: 'Morning stretch', icon: '🧘', streak: 14 },\n  { id: 2, name: 'Read 20 pages', icon: '📖', streak: 9 },\n  { id: 3, name: 'Deep work block', icon: '🎯', streak: 21 },\n  { id: 4, name: 'Walk outside', icon: '🚶', streak: 5 },\n  { id: 5, name: 'No screens after 10', icon: '🌙', streak: 3 },\n];\n\nexport default function App() {\n  const [done, setDone] = useState<Record<number, boolean>>({ 1: true });\n  const completed = Object.values(done).filter(Boolean).length;\n  const pct = Math.round((completed / DATA.length) * 100);\n  const toggle = (id: number) => setDone((d) => ({ ...d, [id]: !d[id] }));\n\n  return (\n    <SafeAreaView style={s.safe}>\n      <ScrollView contentContainerStyle={s.scroll} showsVerticalScrollIndicator={false}>\n        <Text style={s.kicker}>TUESDAY, 14 MAY</Text>\n        <Text style={s.h1}>Today</Text>\n\n        <View style={s.ringWrap}>\n          <View style={s.ring}>\n            <View style={[s.ringInner, { borderColor: pct > 0 ? '#7C5CFF' : '#26262E' }]}>\n              <Text style={s.ringPct}>{pct}%</Text>\n              <Text style={s.ringSub}>{completed} of {DATA.length}</Text>\n            </View>\n          </View>\n        </View>\n\n        {DATA.map((h) => {\n          const on = !!done[h.id];\n          return (\n            <Pressable key={h.id} onPress={() => toggle(h.id)} style={({ pressed }) => [s.row, pressed && s.pressed]}>\n              <View style={[s.iconBox, on && s.iconBoxOn]}>\n                <Text style={s.icon}>{h.icon}</Text>\n              </View>\n              <View style={s.rowMid}>\n                <Text style={[s.name, on && s.nameDone]}>{h.name}</Text>\n                <Text style={s.streak}>🔥 {h.streak} days</Text>\n              </View>\n              <View style={[s.check, on && s.checkOn]}>{on ? <Text style={s.checkMark}>✓</Text> : null}</View>\n            </Pressable>\n          );\n        })}\n        <View style={{ height: 24 }} />\n      </ScrollView>\n    </SafeAreaView>\n  );\n}\n\nconst s = StyleSheet.create({\n  safe: { flex: 1, backgroundColor: '#0B0B10' },\n  scroll: { padding: 22, paddingTop: 60 },\n  kicker: { color: '#7C5CFF', fontSize: 12, fontWeight: '700', letterSpacing: 1.5 },\n  h1: { color: '#fff', fontSize: 34, fontWeight: '800', marginTop: 4, letterSpacing: -0.5 },\n  ringWrap: { alignItems: 'center', marginVertical: 28 },\n  ring: { width: 168, height: 168, borderRadius: 84, backgroundColor: '#15151C', alignItems: 'center', justifyContent: 'center' },\n  ringInner: { width: 142, height: 142, borderRadius: 71, borderWidth: 9, alignItems: 'center', justifyContent: 'center' },\n  ringPct: { color: '#fff', fontSize: 40, fontWeight: '800', letterSpacing: -1 },\n  ringSub: { color: '#8A8A96', fontSize: 13, marginTop: 2 },\n  row: { flexDirection: 'row', alignItems: 'center', backgroundColor: '#14141B', borderRadius: 18, padding: 14, marginBottom: 12 },\n  pressed: { opacity: 0.7 },\n  iconBox: { width: 46, height: 46, borderRadius: 13, backgroundColor: '#1E1E27', alignItems: 'center', justifyContent: 'center' },\n  iconBoxOn: { backgroundColor: '#241F3D' },\n  icon: { fontSize: 22 },\n  rowMid: { flex: 1, marginLeft: 14 },\n  name: { color: '#EDEDF2', fontSize: 16, fontWeight: '600' },\n  nameDone: { color: '#6A6A78', textDecorationLine: 'line-through' },\n  streak: { color: '#8A8A96', fontSize: 13, marginTop: 3 },\n  check: { width: 28, height: 28, borderRadius: 14, borderWidth: 2, borderColor: '#33333E', alignItems: 'center', justifyContent: 'center' },\n  checkOn: { backgroundColor: '#7C5CFF', borderColor: '#7C5CFF' },\n  checkMark: { color: '#fff', fontWeight: '900', fontSize: 15 },\n});\n","language":"react-native"},{"path":"HabitRingView.swift","type":"registry:page","rawUrl":"https://api.vp0.com/designs/pulse-habit-ring/raw?language=swiftui&path=HabitRingView.swift","target":"app/HabitRingView.swift","content":"import SwiftUI\n\nstruct Habit: Identifiable {\n    let id = Int.random(in: 0...99999)\n    let name: String\n    let icon: String\n    var streak: Int\n    var done: Bool\n}\n\nstruct HabitRingView: View {\n    @State private var habits: [Habit] = [\n        Habit(name: \"Morning stretch\", icon: \"figure.cooldown\", streak: 14, done: true),\n        Habit(name: \"Read 20 pages\", icon: \"book\", streak: 9, done: false),\n        Habit(name: \"Deep work block\", icon: \"target\", streak: 21, done: false),\n        Habit(name: \"Walk outside\", icon: \"figure.walk\", streak: 5, done: false),\n        Habit(name: \"No screens after 10\", icon: \"moon\", streak: 3, done: false)\n    ]\n\n    private var completed: Int { habits.filter(\\.done).count }\n    private var progress: Double { habits.isEmpty ? 0 : Double(completed) / Double(habits.count) }\n\n    var body: some View {\n        ZStack {\n            Color(red: 0.04, green: 0.04, blue: 0.06).ignoresSafeArea()\n            ScrollView {\n                VStack(alignment: .leading, spacing: 16) {\n                    Text(\"TUESDAY, 14 MAY\")\n                        .font(.caption).bold().foregroundColor(Color(red: 0.49, green: 0.36, blue: 1))\n                    Text(\"Today\").font(.system(size: 34, weight: .heavy)).foregroundColor(.white)\n\n                    ZStack {\n                        Circle().stroke(Color.white.opacity(0.08), lineWidth: 9).frame(width: 150, height: 150)\n                        Circle()\n                            .trim(from: 0, to: progress)\n                            .stroke(Color(red: 0.49, green: 0.36, blue: 1), style: StrokeStyle(lineWidth: 9, lineCap: .round))\n                            .rotationEffect(.degrees(-90))\n                            .frame(width: 150, height: 150)\n                            .animation(.easeInOut, value: progress)\n                        VStack {\n                            Text(\"\\(Int(progress * 100))%\").font(.system(size: 36, weight: .heavy)).foregroundColor(.white)\n                            Text(\"\\(completed) of \\(habits.count)\").font(.footnote).foregroundColor(.gray)\n                        }\n                    }\n                    .frame(maxWidth: .infinity)\n                    .padding(.vertical, 20)\n\n                    ForEach($habits) { $habit in\n                        Button {\n                            habit.done.toggle()\n                            habit.streak += habit.done ? 1 : -1\n                        } label: {\n                            HStack(spacing: 14) {\n                                Image(systemName: habit.icon)\n                                    .font(.title3).frame(width: 46, height: 46)\n                                    .background(Color.white.opacity(0.06)).cornerRadius(13)\n                                    .foregroundColor(.white)\n                                VStack(alignment: .leading, spacing: 3) {\n                                    Text(habit.name).fontWeight(.semibold)\n                                        .strikethrough(habit.done)\n                                        .foregroundColor(habit.done ? .gray : .white)\n                                    Text(\"🔥 \\(habit.streak) days\").font(.footnote).foregroundColor(.gray)\n                                }\n                                Spacer()\n                                Image(systemName: habit.done ? \"checkmark.circle.fill\" : \"circle\")\n                                    .foregroundColor(habit.done ? Color(red: 0.49, green: 0.36, blue: 1) : .gray)\n                                    .font(.title2)\n                            }\n                            .padding(14)\n                            .background(Color.white.opacity(0.04)).cornerRadius(18)\n                        }\n                    }\n                }\n                .padding(22)\n            }\n        }\n    }\n}\n\n#Preview { HabitRingView() }\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":"Pulse — Habit Ring","assets":[{"url":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/6333ce4c-95cd-4741-b89d-2f4ee5923463/full.webp","kind":"cover","lqip":"xgcCAwANiQWXqYJH+mD6thU=","width":1206,"height":2622,"variants":{"avif":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/6333ce4c-95cd-4741-b89d-2f4ee5923463/avif.avif","card":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/6333ce4c-95cd-4741-b89d-2f4ee5923463/card.webp","full":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/6333ce4c-95cd-4741-b89d-2f4ee5923463/full.webp","thumb":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/6333ce4c-95cd-4741-b89d-2f4ee5923463/thumb.webp","light_avif":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/a77565ea-efdf-4db5-8345-e39609257896/avif.avif","light_card":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/a77565ea-efdf-4db5-8345-e39609257896/card.webp","light_full":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/a77565ea-efdf-4db5-8345-e39609257896/full.webp","light_thumb":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/a77565ea-efdf-4db5-8345-e39609257896/thumb.webp"}},{"url":"https://storage.vp0.com/vp0/clips/1/a1c99bf6-3eaf-4737-abd8-83d28308d933/clip.mp4","kind":"video","variants":{"mp4":"https://storage.vp0.com/vp0/clips/1/a1c99bf6-3eaf-4737-abd8-83d28308d933/clip.mp4","webm":"https://storage.vp0.com/vp0/clips/1/a1c99bf6-3eaf-4737-abd8-83d28308d933/clip.webm","poster":"https://storage.vp0.com/vp0/clips/1/a1c99bf6-3eaf-4737-abd8-83d28308d933/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":"HabitRingView.swift"}],"version":"1.0.0","category":"Habit Tracking","platform":"ios","createdAt":"2026-05-25T19:39:24.933Z","createdBy":"vp0","importUrl":"https://vp0.com/source/pulse-habit-ring","styleTags":["Dark","Minimal"],"updatedAt":"2026-05-25T19:39:24.933Z","categories":["Habit Tracking"],"promptText":"Build this iOS app design in my project: \"Pulse — Habit Ring\" — A calm daily habit tracker. Tap to complete and watch the ring fill..\n1. Fetch https://api.vp0.com/designs/pulse-habit-ring/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/pulse-habit-ring","sourceHash":"sha256:f2f9c337df5316ea3c0b1b26b3e809353af3906164a52bd9d24fe3d693b31510","contentType":"template","description":"A calm daily habit tracker. Tap to complete and watch the ring fill.","manifestUrl":"https://api.vp0.com/designs/pulse-habit-ring/manifest","sourceToken":"vp0_1950c3f6b75b7b0e15ff6dd3","dependencies":{},"installHints":{"cli":"npx vp0com add pulse-habit-ring --target react-native","mcp":"claude mcp add vp0 -- npx -y vp0-mcp","shadcn":"npx shadcn@latest add https://api.vp0.com/r/pulse-habit-ring.json","openInV0":"https://v0.dev/chat/api/open?url=https://api.vp0.com/r/pulse-habit-ring.json","downloadExpo":"https://api.vp0.com/export/pulse-habit-ring/expo.zip","defaultTarget":"react-native","downloadXcode":"https://api.vp0.com/export/pulse-habit-ring/xcode.zip"},"schemaVersion":"vp0-bundle.v1","aiInstructions":"This is an iOS app UI starter for Expo React Native (\"Pulse — Habit Ring\").\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   - HabitRingView.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":[]}