{"$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 vp0 add pulse-habit-ring --target react-native","openInV0":"https://v0.dev/chat/api/open?url=https://api.vp0.com/r/pulse-habit-ring.json"},"sourceHash":"sha256:f2f9c337df5316ea3c0b1b26b3e809353af3906164a52bd9d24fe3d693b31510","meta":{"com.vp0.contentId":"ccde8414-d757-4599-8777-11e942f7f0c1","com.vp0.platform":"ios","com.vp0.availableLanguages":["react-native","swiftui"],"com.vp0.defaultLanguage":"react-native","com.vp0.contentType":"template","com.vp0.kind":"app_template","com.vp0.category":"Habit Tracking","com.vp0.sourceToken":"vp0_1950c3f6b75b7b0e15ff6dd3","com.vp0.sourceHash":"sha256:f2f9c337df5316ea3c0b1b26b3e809353af3906164a52bd9d24fe3d693b31510","com.vp0.simulator":{"target":"react-native","entrypoint":"App.tsx","simulatable":true,"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":["react-native","swiftui"],"defaultLanguage":"react-native","targets":[{"name":"react-native","entrypoint":"App.tsx"},{"name":"swiftui","entrypoint":"HabitRingView.swift"}],"files":[{"language":"react-native","path":"App.tsx","type":"registry:page","target":"app/App.tsx","rawUrl":"https://api.vp0.com/designs/pulse-habit-ring/raw?language=react-native&path=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":"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/ce097a96-fd8d-4b9c-b46f-42e3bcfcdd23/full.webp","width":804,"height":1748,"lqip":"xgcCAwANiQaXqYJH+mD6thU=","variants":{"avif":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/ce097a96-fd8d-4b9c-b46f-42e3bcfcdd23/avif.avif","card":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/ce097a96-fd8d-4b9c-b46f-42e3bcfcdd23/card.webp","full":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/ce097a96-fd8d-4b9c-b46f-42e3bcfcdd23/full.webp","thumb":"https://storage.vp0.com/vp0/covers/ccde8414-d757-4599-8777-11e942f7f0c1/ce097a96-fd8d-4b9c-b46f-42e3bcfcdd23/thumb.webp"}},{"kind":"video","url":"https://storage.vp0.com/vp0/clips/1/70f27ce7-65dc-4ee3-b1ec-9bf839c6c363/clip.mp4","variants":{"mp4":"https://storage.vp0.com/vp0/clips/1/70f27ce7-65dc-4ee3-b1ec-9bf839c6c363/clip.mp4","webm":"https://storage.vp0.com/vp0/clips/1/70f27ce7-65dc-4ee3-b1ec-9bf839c6c363/clip.webm","poster":"https://storage.vp0.com/vp0/clips/1/70f27ce7-65dc-4ee3-b1ec-9bf839c6c363/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/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   - 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.","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/pulse-habit-ring (machine-readable JSON manifest: https://api.vp0.com/designs/pulse-habit-ring/manifest). Design: \"Pulse — Habit Ring\" — A calm daily habit tracker. Tap to complete and watch the ring fill.. Match the layout and styling exactly; it's an iOS UI starter, so add my own data/logic afterward."}