{"$schema":"https://api.vp0.com/schema/vp0-bundle.v1.json","schemaVersion":"vp0-bundle.v1","id":"vp0.pulse-habit-ring","title":"Pulse — Habit Ring","type":"registry:block","version":"1.0.0","author":"@vp0","categories":["Habit Tracking"],"styleTags":["Dark","Minimal"],"category":"Habit Tracking","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:39:24.933Z","updatedAt":"2026-05-25T19:39:24.933Z","installHints":{"defaultTarget":"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","cli":"npx vp0com add pulse-habit-ring --target react-native","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","downloadXcode":"https://api.vp0.com/export/pulse-habit-ring/xcode.zip"},"sourceHash":"sha256:3883d685d413093933295e92493cba628381ce211029a008ed156a9d1e3da593","meta":{"com.vp0.contentId":"ccde8414-d757-4599-8777-11e942f7f0c1","com.vp0.platform":"ios","com.vp0.availableLanguages":["swiftui"],"com.vp0.defaultLanguage":"swiftui","com.vp0.contentType":"template","com.vp0.kind":"app_template","com.vp0.category":"Habit Tracking","com.vp0.sourceToken":"vp0_1950c3f6b75b7b0e15ff6dd3","com.vp0.sourceHash":"sha256:3883d685d413093933295e92493cba628381ce211029a008ed156a9d1e3da593","com.vp0.simulator":{"target":"react-native","entrypoint":null,"simulatable":false,"buildStatus":null,"embedUrl":null,"provider":null}},"name":"pulse-habit-ring","slug":"pulse-habit-ring","sourceToken":"vp0_1950c3f6b75b7b0e15ff6dd3","contentType":"template","platform":"ios","description":"A calm daily habit tracker. Tap to complete and watch the ring fill.","createdBy":"vp0","tags":["Dark","Habit Tracking","Minimal"],"availableLanguages":["swiftui"],"defaultLanguage":"swiftui","targets":[{"name":"swiftui","entrypoint":"HabitRingView.swift"}],"files":[{"language":"swiftui","path":"HabitRingView.swift","type":"registry:page","target":"app/HabitRingView.swift","rawUrl":"https://api.vp0.com/designs/pulse-habit-ring/raw?language=swiftui&path=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"}],"assets":[{"kind":"cover","url":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/6333ce4c-95cd-4741-b89d-2f4ee5923463/full.webp","width":1206,"height":2622,"lqip":"xgcCAwANiQWXqYJH+mD6thU=","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"}},{"kind":"video","url":"https://storage.vp0.com/vp0/clips/1/a1c99bf6-3eaf-4737-abd8-83d28308d933/clip.mp4","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"}}],"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/pulse-habit-ring","manifestUrl":"https://api.vp0.com/designs/pulse-habit-ring/manifest","installCommand":null,"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   - 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.","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"}