{"$schema":"https://api.vp0.com/schema/vp0-bundle.v1.json","schemaVersion":"vp0-bundle.v1","id":"vp0.lunar-sleep","title":"Lunar — Sleep","type":"registry:block","version":"1.0.0","author":"@vp0","categories":["Dashboard","Sleep"],"styleTags":["Dark"],"category":"Sleep","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.835Z","updatedAt":"2026-05-25T19:40:48.835Z","installHints":{"defaultTarget":"react-native","mcp":"claude mcp add vp0 -- npx -y vp0-mcp","shadcn":"npx shadcn@latest add https://api.vp0.com/r/lunar-sleep.json","cli":"npx vp0 add lunar-sleep --target react-native","openInV0":"https://v0.dev/chat/api/open?url=https://api.vp0.com/r/lunar-sleep.json"},"sourceHash":"sha256:df5b457a7e1ebe799d4bf5167fd157476557e2c21f0e44059bdcf7e700f37eff","meta":{"com.vp0.contentId":"6b639f67-a265-4f53-aeba-f8dae34813eb","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":"Sleep","com.vp0.sourceToken":"vp0_9157273f827c060529b76a63","com.vp0.sourceHash":"sha256:df5b457a7e1ebe799d4bf5167fd157476557e2c21f0e44059bdcf7e700f37eff","com.vp0.simulator":{"target":"react-native","entrypoint":"App.tsx","simulatable":true,"buildStatus":null,"embedUrl":null,"provider":null}},"name":"lunar-sleep","slug":"lunar-sleep","sourceToken":"vp0_9157273f827c060529b76a63","contentType":"template","platform":"ios","description":"Last night at a glance: a sleep score, stage timeline, and weekly rhythm.","createdBy":"vp0","tags":["Dark","Dashboard","Sleep"],"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/lunar-sleep/raw?language=react-native&path=App.tsx","content":"import React from 'react';\nimport { View, Text, ScrollView, StyleSheet, SafeAreaView } from 'react-native';\n\nconst STAGES = [\n  { label: 'Awake', h: 16, c: '#3A3F5C' },\n  { label: 'REM', h: 46, c: '#6C8BFF' },\n  { label: 'Light', h: 70, c: '#4A5BA8' },\n  { label: 'Deep', h: 38, c: '#2E3A78' },\n];\nconst NIGHTS = [62, 78, 71, 84, 69, 88, 81];\n\nexport default function App() {\n  return (\n    <SafeAreaView style={s.safe}>\n      <ScrollView contentContainerStyle={s.scroll} showsVerticalScrollIndicator={false}>\n        <Text style={s.kicker}>LAST NIGHT</Text>\n        <Text style={s.h1}>You slept well</Text>\n\n        <View style={s.scoreCard}>\n          <View style={s.scoreRing}>\n            <Text style={s.score}>88</Text>\n            <Text style={s.scoreLabel}>sleep score</Text>\n          </View>\n          <View style={s.scoreMeta}>\n            <View style={s.metaRow}><Text style={s.metaIcon}>🛏️</Text><Text style={s.metaText}>11:24 PM</Text></View>\n            <View style={s.metaRow}><Text style={s.metaIcon}>☀️</Text><Text style={s.metaText}>7:02 AM</Text></View>\n            <View style={s.metaRow}><Text style={s.metaIcon}>⏱️</Text><Text style={s.metaText}>7h 38m</Text></View>\n          </View>\n        </View>\n\n        <Text style={s.section}>Sleep stages</Text>\n        <View style={s.stages}>\n          {STAGES.map((st) => (\n            <View key={st.label} style={s.stageCol}>\n              <View style={s.stageBarWrap}>\n                <View style={[s.stageBar, { height: st.h * 1.6, backgroundColor: st.c }]} />\n              </View>\n              <Text style={s.stageLabel}>{st.label}</Text>\n            </View>\n          ))}\n        </View>\n\n        <Text style={s.section}>This week</Text>\n        <View style={s.week}>\n          {NIGHTS.map((n, i) => (\n            <View key={i} style={s.nightCol}>\n              <View style={[s.nightBar, { height: n * 1.1 }]} />\n              <Text style={s.nightLabel}>{'SMTWTFS'[i]}</Text>\n            </View>\n          ))}\n        </View>\n      </ScrollView>\n    </SafeAreaView>\n  );\n}\n\nconst s = StyleSheet.create({\n  safe: { flex: 1, backgroundColor: '#080A14' },\n  scroll: { padding: 22, paddingTop: 60 },\n  kicker: { color: '#6C8BFF', fontSize: 12, fontWeight: '700', letterSpacing: 1.5 },\n  h1: { color: '#fff', fontSize: 30, fontWeight: '800', marginTop: 4 },\n  scoreCard: { flexDirection: 'row', alignItems: 'center', backgroundColor: '#0F1322', borderRadius: 22, padding: 22, marginTop: 22 },\n  scoreRing: { width: 116, height: 116, borderRadius: 58, borderWidth: 8, borderColor: '#6C8BFF', alignItems: 'center', justifyContent: 'center' },\n  score: { color: '#fff', fontSize: 38, fontWeight: '800' },\n  scoreLabel: { color: '#7A85B8', fontSize: 11, marginTop: 2 },\n  scoreMeta: { flex: 1, marginLeft: 24, gap: 12 },\n  metaRow: { flexDirection: 'row', alignItems: 'center' },\n  metaIcon: { fontSize: 16, width: 28 },\n  metaText: { color: '#C9CEE8', fontSize: 16, fontWeight: '600' },\n  section: { color: '#fff', fontSize: 18, fontWeight: '700', marginTop: 30, marginBottom: 16 },\n  stages: { flexDirection: 'row', justifyContent: 'space-around', alignItems: 'flex-end', backgroundColor: '#0F1322', borderRadius: 18, padding: 20, height: 170 },\n  stageCol: { alignItems: 'center', justifyContent: 'flex-end' },\n  stageBarWrap: { justifyContent: 'flex-end', height: 120 },\n  stageBar: { width: 40, borderRadius: 10 },\n  stageLabel: { color: '#7A85B8', fontSize: 12, marginTop: 10 },\n  week: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'flex-end', height: 130 },\n  nightCol: { alignItems: 'center', justifyContent: 'flex-end' },\n  nightBar: { width: 30, borderRadius: 8, backgroundColor: '#4A5BA8' },\n  nightLabel: { color: '#7A85B8', fontSize: 12, marginTop: 8 },\n});\n"}],"assets":[{"kind":"cover","url":"https://storage.vp0.com/vp0/covers/6b639f67-a265-4f53-aeba-f8dae34813eb/8e1b2691-ef85-4605-8cc0-8fdc9f03e8ba/full.webp","width":804,"height":1748,"lqip":"R/cFCwArqBeoemEJx2t/rPY=","variants":{"avif":"https://storage.vp0.com/vp0/covers/6b639f67-a265-4f53-aeba-f8dae34813eb/8e1b2691-ef85-4605-8cc0-8fdc9f03e8ba/avif.avif","card":"https://storage.vp0.com/vp0/covers/6b639f67-a265-4f53-aeba-f8dae34813eb/8e1b2691-ef85-4605-8cc0-8fdc9f03e8ba/card.webp","full":"https://storage.vp0.com/vp0/covers/6b639f67-a265-4f53-aeba-f8dae34813eb/8e1b2691-ef85-4605-8cc0-8fdc9f03e8ba/full.webp","thumb":"https://storage.vp0.com/vp0/covers/6b639f67-a265-4f53-aeba-f8dae34813eb/8e1b2691-ef85-4605-8cc0-8fdc9f03e8ba/thumb.webp"}},{"kind":"video","url":"https://storage.vp0.com/vp0/clips/5/cdfd9811-e003-40e7-a7c9-07d05ef227d3/clip.mp4","variants":{"mp4":"https://storage.vp0.com/vp0/clips/5/cdfd9811-e003-40e7-a7c9-07d05ef227d3/clip.mp4","webm":"https://storage.vp0.com/vp0/clips/5/cdfd9811-e003-40e7-a7c9-07d05ef227d3/clip.webm","poster":"https://storage.vp0.com/vp0/clips/5/cdfd9811-e003-40e7-a7c9-07d05ef227d3/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/lunar-sleep","manifestUrl":"https://api.vp0.com/designs/lunar-sleep/manifest","installCommand":null,"aiInstructions":"This is an iOS app UI starter for Expo React Native (\"Lunar — Sleep\").\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/lunar-sleep (machine-readable JSON manifest: https://api.vp0.com/designs/lunar-sleep/manifest). Design: \"Lunar — Sleep\" — Last night at a glance: a sleep score, stage timeline, and weekly rhythm.. Match the layout and styling exactly; it's an iOS UI starter, so add my own data/logic afterward."}