docs/domains/lilith/ (API notes, ADRs, deep topic guides) — reconciled here by linking, kept beside the code as supporting material rather than a second canonical source (§2, §13).Lilith is the Conversational AI and Consciousness Experience Platform. It delivers guided meditations, AI-powered spiritual conversations, real-time voice chat, RAG-based knowledge retrieval, TTS/STT, multi-persona AI support, subscription management, Web3 token economy, and immersive VR/AR meditation spaces — unified into a single wellness ecosystem across web, mobile, desktop, and immersive platforms.
Lilith is one of the largest domains in the Oshun monorepo: 78 packages under
apps/lilith/ (69 backend svc-* services plus web, mobile, desktop, CLI, and
the smart-contracts, seed-corpus, locales, and shared packages), 9 shared
libraries under libs/lilith/, and 5 client platforms. It sits at the
intersection of AI technology, spiritual wellness, creative expression, and Web3
— serving practitioners from their first five-minute guided session through
advanced multi-tradition learning paths, content creation, and community
leadership.
Platform Overview#
Architecture Scale#
The numbers below give a quick orientation to the domain's scope before diving into individual features:
| Metric | Value |
|---|---|
apps/lilith/ packages |
78 (69 svc-* services + bff, web, mobile, desktop, cli, contracts, seed-corpus, locales, shared) |
| Shared libraries | 9 (libs/lilith/) |
| Client platforms | 5 (Web, Mobile, Desktop, CLI, VR/AR) |
| Subscription tiers | 4 (Free, Premium, Creator, Enterprise) |
| Databases | PostgreSQL, Redis, Elasticsearch, MinIO |
| Languages and frameworks | Next.js, React Native, Electron, Fastify, GraphQL, Solidity |
Service Clusters#
The 69 svc-* services are grouped functionally. The clustering reflects the
domain's breadth: a new engineer working on subscription billing (Commerce) and
one working on voice sessions (Voice and Audio) are working in largely separate
service namespaces with clearly bounded concerns:
| Cluster | Examples |
|---|---|
| Core Platform | BFF gateway, conversation, AI/LLM, auth, content, media, notifications |
| AI and Knowledge | svc-ai, svc-indexer (retrieval delegated to Sophia) |
| Meditation and Wellness | Meditation core, group sessions, breathwork, yoga, journal, daily content |
| Voice and Audio | TTS, STT, voice pipeline, WebRTC SFU, audio handoff |
| Content and Delivery | Catalog, curricula, review, licensing, content verification, rights |
| Web3 and Blockchain | Token, staking, DAO, DeFi, cross-chain bridge, IPFS, settlement |
| Immersive | VR/AR metaverse |
| Infrastructure | Observability, multi-region resilience, safety automation, sync |
Technology Stack#
The table below lists the primary technology at each layer of the stack. Choices favor TypeScript end-to-end, Fastify for high-throughput microservices, and React-based clients for maximum code sharing across web and mobile:
| Layer | Technologies |
|---|---|
| API Gateway | Fastify + Mercurius (GraphQL) |
| Microservices | Fastify 4/5 with @lilith/fastify-core |
| Web Client | Next.js 14, React 18, TailwindCSS, Radix UI, Three.js, Zustand |
| Mobile | React Native 0.73, React Navigation, Track Player |
| Web3 | ethers.js, wagmi/viem (web), Hardhat + Foundry (contracts) |
| Databases | PostgreSQL (Knex), Redis, Elasticsearch |
| AI | LLM orchestration via @isis/client; Sophia-backed retrieval |
| Voice | AWS Polly / Chatterbox (TTS), WebRTC SFU |
| Auth | JWT, WebAuthn/FIDO2, TOTP, argon2id password hashing |
| Observability | OpenTelemetry, Jaeger, Elasticsearch, Prometheus |
| Testing | Vitest, Playwright, Detox (mobile E2E), Storybook, Chromatic |
Shared Library Ecosystem (9 Libraries)#
libs/lilith/ holds nine packages that provide Lilith-specific shared
infrastructure. Cross-cutting concerns (config, errors, logging, metrics,
tracing, testing, types) come from monorepo-wide @oshun/* packages rather than
Lilith-local libraries, keeping the libs/lilith/ packages focused on
Lilith-specific concerns:
| Library | Description |
|---|---|
@lilith/common |
Audit logger, CSPRNG ID generation, HTTP status map, language detection, session store, server/service templates |
@lilith/continuous-video-policy |
Crisis-frame, narrative-cadence, persona-cap, sensitive-topic, and strobe policy checks for continuous video sessions |
@lilith/event-publisher |
Typed Lilith domain-event publishing to @oshun/event-bus |
@lilith/event-handlers |
Cross-domain event subscriptions (Bellona, Isis, Sophia, Yemaya) with WebSocket fan-out |
@lilith/fastify-core |
Fastify service bootstrap: health routes, error handler, middleware registry |
@lilith/sophia-adapter |
Knowledge-access, knowledge-graph, and embedding adapters bridging Lilith to Sophia |
@lilith/sdk |
TypeScript client (APIClient, LilithApiClient) plus generated OpenAPI types |
@lilith/partner-sdk |
Partner-facing SDK with auth flows |
@lilith/service-lib |
LilithLogger, type-safety validator, typed test helpers and mocks |
Platform Access#
Lilith is available on every major platform, giving users the freedom to practice wherever they are. Each client platform shares the same backend services and user account, so switching devices requires no manual sync.
Client Applications#
| Platform | Framework | Key Capabilities |
|---|---|---|
| Web | Next.js 14 PWA | 3D visualization (Three.js/BabylonJS/R3F), Web3 wallet (wagmi/viem), Storybook design system, i18n (next-intl) |
| Mobile | React Native 0.73 (iOS/Android) | Audio recording, WebRTC, biometric auth, haptic feedback, push notifications, offline downloads, health data integration |
| Desktop | Electron | Full-featured desktop client with native OS integration and offline capability |
| CLI | Commander.js | Scripted meditation workflows and developer utilities |
| VR/AR | svc-metaverse |
Immersive 3D meditation spaces, avatar interaction, spatial audio |
Web Features#
- Progressive Web App (PWA) — Installable on any device from the browser; works offline with service-worker caching and receives push notifications like a native app.
- 3D Visualizations — Rich 3D meditation environments rendered via Three.js, BabylonJS, and React Three Fiber (R3F) directly in the browser without plugins.
- Real-Time AI Chat — AI responses stream word-by-word via Server-Sent Events (SSE) for a natural conversational feel rather than waiting for full responses.
- Web3 Wallet Connection — Connect MetaMask, WalletConnect, or other wallets via wagmi/viem; access token-gated content and participate in DAO governance.
- Storybook Design System — Radix UI components with Tailwind CSS; consistent visual language across all interface surfaces; components developed and tested in Storybook with visual regression via Chromatic.
- Internationalization — next-intl with full RTL (right-to-left) layout support for Arabic, Hebrew, and other RTL languages.
Mobile Features#
- Native Biometric Authentication — Face ID, Touch ID, and fingerprint login via the device's secure enclave; no password required for returning users.
- Background Audio Playback — Continue meditating while the screen is off or while using other apps; Track Player handles native audio session management and lock-screen controls.
- Haptic Feedback — Vibration patterns synchronized with breathing exercises create a tactile rhythm guide without requiring eyes on the screen.
- Offline Downloads — Download meditation sessions, courses, and teachings as encrypted bundles that play without any network connection.
- Health Data Integration — Apple HealthKit and Google Fit integration pulls heart rate and HRV (Heart Rate Variability) data into session tracking and provides post-session insights.
- Push Notifications — Meditation reminders, streak alerts, and community notifications delivered natively via the device notification system.
- WebRTC Voice Chat — High-quality, low-latency real-time voice communication for group meditation sessions.
- Detox E2E Test Suite — Automated end-to-end tests run on real devices and simulators for every release via Detox.
AI Conversations#
Conversational AI (svc-conversation, svc-ai)#
Conversations are the primary interface through which users engage with Lilith's
AI layer. The system supports multiple AI personas with distinct personalities
and tradition focuses; conversations are organized into named, resumable
threads; and responses stream word-by-word over SSE so the user begins reading
immediately. The svc-ai service handles LLM orchestration and can parse
uploaded documents (PDFs, Office files, HTML, Markdown) for in-context
discussion.
| Feature | Description |
|---|---|
| Multi-Persona Support | Choose from multiple AI personas, each with a distinct personality, expertise domain, and spiritual tradition focus — a Zen teacher persona responds very differently from a Stoic philosopher persona |
| Threaded Conversations | Organize discussions into named threads for focused exploration of specific topics; resume any thread later with full context preserved |
| Real-Time Streaming | AI responses stream word-by-word via SSE; reading begins immediately rather than waiting for the full response to generate |
| Document Understanding | Upload PDFs, Office documents, HTML pages, and Markdown files; the AI reads and discusses the uploaded content in context |
| Context-Aware Responses | AI draws on the complete conversation history and user preference profile for continuity; references earlier exchanges naturally |
| Safety Guardrails | svc-moderation screens every AI response for unsafe, harmful, or inappropriate content before it is delivered to the user |
AI Knowledge System (Sophia-backed retrieval)#
Rather than maintaining its own vector stores and ingestion pipelines, Lilith
delegates all knowledge retrieval to the Sophia domain via
@lilith/sophia-adapter. This design keeps the spiritual corpus and knowledge
graph management in a single shared platform while letting Lilith focus on
session experience and persona logic.
| Feature | Description |
|---|---|
| Retrieval-Augmented Generation (RAG) | AI responses are grounded in a curated spiritual and wellness knowledge corpus; Lilith reaches this corpus through Sophia's retrieval APIs instead of Lilith-owned RAG microservices |
| Semantic Search | Find teachings using meaning-based search rather than keyword matching; searches for "calming the mind" find content about "mental stillness" even without exact word overlap |
| Knowledge Graph | An interconnected concept graph of spiritual traditions, practices, teachers, and documents exposed through Sophia's entity APIs |
| Unified Retrieval Platform | Search, grounded answer generation, and document lookup are centralized in Sophia so Lilith does not maintain parallel vector, ingestion, and graph services |
| Source Attribution | AI responses include citations to the source documents behind each claim so users can explore primary materials directly |
Spiritual Guidance (svc-spiritual-guidance)#
Beyond general AI chat, svc-spiritual-guidance provides personalized advisory
conversations calibrated to the user's spiritual tradition. The advisor draws on
the Sophia knowledge graph and respects the user's stated practice path rather
than offering generic responses:
| Feature | Description |
|---|---|
| AI Spiritual Advisor | Personalized spiritual guidance conversations with configurable tradition focus; the advisor draws on the knowledge graph and respects the user's stated path |
| Tradition-Aware Counsel | Guidance calibrated to the specific tradition the user is exploring — Buddhist, Stoic, Sufi, Vedantic, or eclectic; references authoritative teachers within each tradition |
| Life Questions | Explore existential, philosophical, and ethical questions with AI support that draws on multiple wisdom traditions for multi-perspective responses |
| Practice Recommendations | AI suggests specific meditation techniques, readings, and practices tailored to the user's stated needs, current mood, and practice history |
Meditation and Wellness#
Meditation Sessions (svc-meditation-core, svc-meditation-experience)#
The meditation core handles mode selection and safety screening before handing off to the experience service for actual session delivery. Three session lengths (5, 12, and 20 minutes) let users fit practice into any schedule, while AI-generated sessions personalize content on demand rather than drawing from a fixed catalog:
| Feature | Description |
|---|---|
| Guided Meditations | Professionally narrated guided sessions spanning stress relief, sleep preparation, focus enhancement, compassion cultivation, grief processing, and more; all reviewed by qualified teachers before publication |
AI-Generated Meditations (svc-meditation-generation) |
Personalized meditations generated on demand by AI based on the user's current mood, available time, stated intention, and practice history; unique every time |
| Timer Meditations | Silent meditation timer with configurable intervals, multiple bell sounds, and ambient soundscape mixing for practitioners who prefer unguided practice |
| Session Safety Checks | Built-in safety screening ensures meditations are appropriate for the user's self-reported mental and emotional state; certain intensive practices are restricted for users in crisis states |
| Mode Selection | Three session modes — Quick Reset (5 min), Guided Practice (12 min), and Deep Dive (20 min) — selected by preference, available time, or experience level |
| Session Completion | Mark sessions complete with actual duration, a 1-5 rating, notes, and an optional post-session journal prompt that fires automatically |
Group Meditation (svc-group-meditation)#
Group sessions use WebSocket coordination to align audio playback sub-second across all participants, creating a genuine sense of shared practice across geographic distance:
| Feature | Description |
|---|---|
| Live Group Sessions | Real-time synchronized meditation with other users; all participants begin together and hear the same guidance audio at the same moment |
| Synchronized Guidance | Sub-second synchronization of audio across all participants regardless of geographic location; uses WebSocket coordination to align playback |
| Group Energy Display | Visual representation of how many people are meditating together right now; creates a sense of collective practice even across physical distance |
| Session Scheduling | Schedule group sessions with calendar invitations; friends and community members receive invitations and can confirm attendance |
| Teacher-Led Groups | Verified and certified teachers can host and lead live group meditation sessions with up to thousands of simultaneous participants |
Breathwork (svc-breathwork)#
The breathwork service extends beyond a simple timer. HRV is a clinically recognized measure of autonomic nervous system health and a standard metric in breathwork research; Lilith surfaces it through HealthKit/Google Fit integration during sessions:
| Feature | Description |
|---|---|
| Technique Library | Box breathing, 4-7-8 breathing, Wim Hof method, coherence breathing, alternate nostril breathing, and more; each with step-by-step instructions and scientific context |
| Visual Breath Guide | Animated expanding/contracting visual that guides inhale, hold, and exhale phases so users can follow timing without counting |
| Haptic Breath Cues | Mobile haptic pulses synchronized with breathing phases; enables eyes-closed practice without audio |
| Biometric Integration | Real-time heart rate and HRV (Heart Rate Variability — the variation in time between heartbeats used as a stress and recovery indicator) tracking during breathwork via HealthKit/Google Fit |
| Progress Tracking | Session history, cumulative breathwork minutes, technique-specific streaks, and HRV trend visualization over time |
Yoga Practice (svc-yoga-practice)#
| Feature | Description |
|---|---|
| Guided Yoga Sessions | Step-by-step yoga practice with pose-by-pose narrated guidance including alignment cues and safety modifications |
| Pose Library | Comprehensive database of yoga poses with detailed instructions, common mistakes, contraindications, and illustrated reference images |
| Difficulty Levels | Sessions calibrated across a clear beginner-through-advanced spectrum with appropriate modifications offered for each level |
| Sequence Builder | Drag-and-drop custom yoga sequence builder from the pose library with duration estimation and balance analysis |
| Practice History | Complete session log with total minutes practiced, poses covered, practice frequency, and multi-week streak tracking |
Voice and Audio#
Text-to-Speech (svc-tts)#
svc-tts uses AWS Polly as its primary synthesis engine with S3 audio caching
to avoid re-synthesizing identical text. The service selects voice
characteristics contextually — slower and warmer for sleep sessions, clearer and
more measured for philosophical teaching:
| Feature | Description |
|---|---|
| Natural Voice Synthesis | AI responses and meditation narrations read aloud with warm, natural-sounding voices via AWS Polly (primary TTS), Chatterbox (high-quality fallback) |
| Multiple Voice Options | Selection of voices suited to different contexts — calm and slow for sleep meditations, warm and encouraging for breathwork, clear and measured for philosophical teaching |
| Speed Control | Adjust speech rate from 0.5× to 2× to match the user's preferred listening pace |
| Background Music Mixing | Voice guidance automatically layered over ambient soundscapes and background music with volume balancing that ensures narration remains intelligible |
Speech-to-Text (svc-stt)#
| Feature | Description |
|---|---|
| Voice Input | Speak to the AI conversational interface rather than typing; activates with a tap-and-hold or wake word |
| Real-Time Transcription | Words transcribed and sent to the AI as they are spoken rather than waiting for a complete utterance; the AI begins processing earlier |
| Multi-Language Recognition | Speech recognition across the full set of supported platform languages; model selection adapts to detected language automatically |
Voice Conversations (svc-voice-pipeline)#
The duplex voice pipeline combines svc-stt, AI conversation, svc-tts, and
WebRTC into a seamless voice-first interaction. An SFU (Selective Forwarding
Unit) routes audio streams between participants without mixing them on the
server, which minimizes latency for group sessions:
| Feature | Description |
|---|---|
| Duplex Voice Pipeline | Full-duplex voice conversation with the AI — speak and hear responses simultaneously without push-to-talk; feels like a phone call rather than a walkie-talkie |
| WebRTC Voice Chat | High-quality, low-latency real-time voice communication for user-to-user and group session audio via a selective forwarding unit (SFU — a server that routes audio streams between participants without mixing them, minimizing latency) |
Cross-Device Audio Handoff (svc-audio-handoff) |
Seamlessly transfer audio playback from phone to Bluetooth speaker to headphones without interrupting the session |
| Voice-Guided Meditation | Complete meditation sessions delivered entirely through voice with no screen interaction required; hands-free practice while walking or lying down |
Knowledge and Learning#
Curricula and Courses (svc-curricula)#
Curricula are multi-session structured paths designed for progressive skill building. Each lesson tracks completion state independently so users can pause and resume at any point, and the platform issues certificates once course requirements are met:
| Feature | Description |
|---|---|
| Structured Learning Paths | Multi-session courses organized by topic, tradition, and difficulty; designed for progressive skill building over days or weeks |
| Progress Tracking | Completion status for every lesson, module, and course with percentage completion and estimated time remaining |
| Bookmarks and Highlights | Save specific passages and revisit them from a personal highlights collection; highlights are searchable |
| Certificates of Completion | Earn platform-issued certificates after meeting course completion requirements; downloadable as PDFs |
Knowledge Catalog (svc-catalog)#
The catalog is the browse surface for Lilith's content library. Knowledge curation and the concept graph are managed in Sophia's knowledge platform, while the catalog service provides the user-facing search and browse experience:
| Feature | Description |
|---|---|
| Searchable Catalog | Browse and search the full library of teachings, meditations, and content across all traditions with relevance-ranked results |
| Category Organization | Content organized across multiple axes: tradition, topic (stress/sleep/focus), difficulty, format (audio/text/video), and duration |
| Data Lineage | Every piece of content has a traceable provenance chain — who created it, which teacher or tradition it comes from, and how it was adapted or translated |
| Curated Corpus | Knowledge curation and graph stewardship now live in Sophia's knowledge platform rather than a Lilith-local curator-admin service |
Knowledge Ingestion and Indexing (svc-indexer)#
The indexer service manages Lilith's own content indices while delegating the broader spiritual corpus to Sophia. Crawling, enrichment, and the retrieval graph are Sophia's responsibility; Lilith retains only the indices it needs for its own catalog search:
| Feature | Description |
|---|---|
| Document Ingestion Pipeline | Knowledge ingestion now runs through Sophia's ingestion and search pipeline; Lilith consumes the resulting search and document APIs |
| Search Index Management | Lilith retains its own content indexing where needed, while Sophia owns the retrieval corpus indices and graph-backed knowledge views |
| Crawling Integration | External corpus crawling and enrichment live in Sophia rather than Lilith-local ingestion services |
Scholar Notes (svc-notes)#
Scholar notes let users build a personal knowledge layer on top of the platform content. Notes are full-text indexed for search and can be linked across the knowledge base, creating a personal graph connecting user insights to source material:
| Feature | Description |
|---|---|
| Highlight and Annotate | Annotate any piece of content with personal highlights and margin notes; rich-text annotations with link support |
| Learning Journals | Maintain a structured learning journal connected to specific courses and content items; track insights and questions as they arise |
| Note Organization | Tag and organize notes with custom taxonomies for easy retrieval; notes are full-text indexed for search |
| Cross-Reference | Link personal notes to related content across the knowledge base; creates a personal knowledge graph connecting your insights to source material |
Journaling and Reflection#
Journaling is tightly integrated with meditation: a prompt fires automatically after every session, mood is tracked before and after to measure impact, and all entries are encrypted at rest and never used for model training without explicit consent:
| Feature | Description |
|---|---|
| Free-Form Journaling | Write freely about experiences, feelings, and daily reflections with a distraction-free rich text editor |
| Prompted Journaling | AI-generated prompts that guide deeper reflection based on recent meditation sessions, mood entries, and personal history |
| Post-Meditation Journal | Automatic journal prompt appears after completing any meditation session; captures insights while they are fresh |
| Mood Tracking | Record emotional state on multiple dimensions before and after sessions; visualize mood trends over days, weeks, and months |
| Search and Filter | Full-text search across all journal entries with filters for date range, mood tag, keyword, and linked content |
| Privacy Protection | All journal entries encrypted at rest; entries are visible only to the user and are never used for model training without explicit consent |
Content Discovery#
Content discovery combines Elasticsearch-powered search, AI-based recommendations, and curated daily delivery to surface relevant content at every touchpoint:
| Feature | Description |
|---|---|
| Personalized Recommendations | AI-powered content suggestions based on practice history, stated goals, mood patterns, and explicit preferences; accuracy improves over time as the system learns individual patterns |
Daily Content Delivery (svc-daily-content) |
A freshly curated meditation or teaching delivered every day, personalized to the user's current journey stage and preferences |
| Category Browsing | Explore content by need: stress relief, sleep improvement, focus and productivity, gratitude, anxiety management, relationship health, creativity |
| Teacher Profiles | Discover content by specific teachers; browse their full contribution library, tradition background, and teaching philosophy |
| Duration Filters | Find meditations by available time: 5, 10, 15, 20, 30, and 45+ minute options for every context |
| Trending and Popular | See what the global community is practicing most this week; organic community wisdom surfaces high-quality content |
| Full-Text Search | Elasticsearch-powered full-text search across all content metadata, descriptions, and transcriptions with millisecond response times |
Content Review (svc-review, svc-teacher-blessing)#
A two-tier review process gates new content before it reaches users: human moderators check quality and safety for all content, while sacred content from specific lineages requires approval from a verified teacher in that tradition:
| Feature | Description |
|---|---|
| Ratings and Reviews | Rate meditations 1-5 and leave written reviews; a verified-practice badge requires having completed the session before reviewing |
| Human Review System | All new content goes through human moderator review before being published; catches quality and safety issues before users encounter them |
| Teacher Blessing | Traditional and sacred content from specific lineages requires approval from a verified teacher in that tradition before publication |
Community Features#
Social Features#
The social layer lets practitioners share their journey, learn from others, and practice together. Community translation contributions make the platform accessible in languages not yet officially supported:
| Feature | Description |
|---|---|
| User Profiles | Public profiles showing practice streaks, total hours meditated, earned achievement badges, and featured favorite content |
| Follow System | Follow teachers and fellow practitioners to see their recent completions, achievements, and content recommendations in your feed |
| Activity Feed | Community feed showing meditation completions, milestones, and achievements from accounts you follow; motivating social proof of practice |
| Shared Meditation | Invite specific friends to join a synchronized meditation session at a scheduled time; practice together remotely |
| Community Translation | Community members contribute translations of content and interface strings for languages not yet officially supported; translations verified by bilingual moderators |
Real-Time Chat#
Community chat is delivered via WebSocket with sub-100 ms message delivery. DOMPurify sanitization on all user-submitted content prevents XSS injection attacks:
| Feature | Description |
|---|---|
| WebSocket Chat | Real-time messaging between users and within group meditation sessions; sub-100ms message delivery |
| Threaded Discussions | Organize community conversations into topic-focused threads; prevents noise and makes important discussions findable |
| Moderation Tools | Automated content screening plus manual moderation tools for community managers; configurable sensitivity thresholds |
| Input Sanitization | All user-submitted content sanitized with DOMPurify before storage and display to prevent XSS (Cross-Site Scripting) injection attacks |
Immersive Experiences#
VR/AR Meditation Spaces (svc-metaverse)#
The metaverse service renders fully immersive 3D environments for meditation. Spatial audio — birds, water, bells positioned in 3D space — reinforces the sense of presence. Premium environments are unlockable via subscription or token purchase, giving the Web3 economy a tangible experiential utility:
| Feature | Description |
|---|---|
| Virtual Meditation Rooms | Fully immersive 3D meditation environments: ancient forests, mountaintop temples, cosmic void, underwater coral reefs, sacred geometry spaces — each with responsive ambient sound |
| Avatar Presence | Represent yourself in virtual meditation spaces with a customizable avatar; see other practitioners' avatars meditating in the same shared space |
| Spatial Audio | 3D positional audio creates a genuine sense of place — birds sound directional, water rushes from the left, bells ring from overhead |
| Group VR Sessions | Meditate simultaneously with others in shared virtual spaces; genuine presence without physical co-location |
| Environment Selection | Choose from an expanding library of themed virtual environments per session; unlockable premium environments via subscription or token purchase |
3D Visualizations#
3D visuals are rendered using Three.js, BabylonJS, and React Three Fiber
directly in the browser via WebGL. Fractal art is a product-level capability (no
longer backed by a standalone svc-generative-fractal service), while
interactive mandalas respond to the user's biometric and meditation state in
real time:
| Feature | Description |
|---|---|
| Three.js / BabylonJS / R3F | Rich interactive 3D graphics rendered in the browser using WebGL; works on all modern browsers without plugins |
| Generative Fractals | Fractal-style visuals remain a product capability, but they are no longer backed by a standalone svc-generative-fractal microservice |
| Interactive Mandalas | Generative mandala art that responds to the user's biometric input (heart rate, breathing pattern) and meditation state; unique to each session |
| Cosmic Journeys | Guided visual journeys through stars, nebulae, and abstract conceptual landscapes synchronized with narration and ambient music |
Avatar Customization (svc-avatar-cosmetic)#
The avatar cosmetics marketplace creates a seasonal collectible economy around virtual identity. Token-gated items give Lilith token holders exclusive cosmetic access, creating tangible utility for token ownership beyond governance:
| Feature | Description |
|---|---|
| Avatar Creator | Design your virtual representation with body shape, skin tone, facial features, hair, and clothing options |
| Cosmetic Marketplace | Purchase avatar skins, accessories, clothing collections, and environment themes with platform currency or Lilith tokens |
| Seasonal Collections | Limited-edition cosmetic items released in sync with seasons, solstices, equinoxes, and lunar cycles; creates collectibility and time-based engagement |
| Token-Gated Cosmetics | Exclusive avatar items and environments available only to Lilith token holders; creates tangible token utility beyond governance |
Creator Economy#
Creator Tools (svc-content-licensing, svc-content-verification, svc-rights-management)#
The creator economy lets practitioners publish and monetize their own guided meditations, yoga sequences, and spiritual teachings. Licensing terms are configurable per creator, and rights enforcement is automated — content played beyond licensed scope is blocked automatically and the rights holder is notified:
| Feature | Description |
|---|---|
| Content Upload | Upload guided meditations, spiritual teachings, yoga sequences, courses, and multimedia content through a guided submission wizard with automatic format validation |
| Content Licensing | Set licensing terms for how your uploaded content may be used — personal use only, commercial use permitted, derivative works allowed, with configurable pricing per license type |
| Rights Management | Automated license enforcement gates; content played beyond licensed scope is blocked and the rights holder is notified automatically |
| Content Verification | Platform verifies content authenticity and checks for unauthorized reproductions of copyrighted material before publishing |
| Royalty Tracking | Real-time dashboard showing cumulative earnings, engagement metrics per content item, and payout history |
| AI Generation Integration | AI-powered image and video generation tools are routed through Lilith's BFF and shared Isis/RunComfy integrations rather than a dedicated svc-comfyui service |
Monetization#
Creators can configure payout method and schedule independently, choosing bank transfer, crypto, or Lilith tokens, with a minimum threshold to avoid fragmented micro-payouts:
| Feature | Description |
|---|---|
Royalty Payments (svc-creator-royalty) |
Earn royalties whenever a subscribed user engages with your content; payment rate scales with subscriber tier and engagement depth |
| Creator Tiers | Creators unlock additional distribution, promotion, and tool access as their audience and content quality grow |
| Revenue Reports | Granular earnings breakdowns by individual content item, time period, user geography, and engagement source |
| Payout Management | Configure payout method (bank transfer, crypto, Lilith tokens) and schedule (weekly, monthly) with a configurable minimum payout threshold |
Web3 and Token Economy#
Native Token (svc-native-token, svc-token-core)#
The native token is the economic unit that connects subscriptions, creator earnings, governance, and premium content access. A built-in non-custodial wallet and fiat on-ramp let users engage with the token economy without needing a third-party wallet app:
| Feature | Description |
|---|---|
| Platform Token | Native utility token for the Lilith ecosystem; used for purchasing content, tipping creators, accessing exclusive features, and participating in governance |
| Token Wallet | Built-in non-custodial wallet for managing token balances without needing a third-party wallet app |
Fiat On/Off Ramp (svc-fiat-ramp) |
Buy tokens directly with credit card or bank transfer via regulated payment rails; cash out token balances back to fiat currency |
Micro-Transactions (svc-micro-transaction) |
Pay small amounts of tokens for individual content items, leave tips for teachers, or purchase single-use cosmetics without full subscription |
Token-Gated Access (svc-token-access, svc-token-verification)#
Token-gated access uses on-chain cryptographic verification — the gate cannot be spoofed because it checks actual token balances on the blockchain rather than relying on a database flag:
| Feature | Description |
|---|---|
| Exclusive Content | Premium guided sessions, advanced courses, and master classes available only to token holders above a configurable threshold |
| Token Verification | Cryptographic on-chain verification of token holdings for access gates; trustless and cannot be spoofed |
| NFT-Gated Experiences | Unique meditation environments, special teacher sessions, and limited-run content unlocked by ownership of specific NFTs; creates collectible access rights |
Staking and DeFi (svc-staking-mechanism, svc-defi-integration)#
| Feature | Description |
|---|---|
| Token Staking | Lock tokens in a staking contract to earn platform yield and unlock premium features; longer lock periods earn higher rates |
| DeFi Integration | Opt-in connection to decentralized finance protocols for additional yield opportunities on staked tokens; fully user-controlled |
Cross-Chain Bridge (svc-cross-chain-bridge) |
Transfer tokens between Ethereum mainnet, Polygon, and other supported EVM chains with minimal bridge fees |
IPFS Storage (svc-ipfs-integration) |
High-value content stored on the InterPlanetary File System (IPFS — a decentralized peer-to-peer file storage network) for permanence independent of platform infrastructure |
DAO Governance (svc-dao-governance)#
All governance votes, proposals, and treasury transactions are recorded on-chain and publicly viewable, ensuring the community-governed treasury is accountable to all token holders:
| Feature | Description |
|---|---|
| Community Voting | Token holders vote on platform feature priorities, content policy changes, and treasury allocations with vote weight proportional to token holdings |
| Governance Proposals | Any token holder above a minimum threshold can submit proposals for community debate and formal voting |
| Treasury Management | Community-governed treasury funds creator grants, infrastructure, and platform development; all expenditures require governance approval |
| Transparent Execution | All governance votes, proposals, and treasury transactions recorded on-chain and publicly viewable |
Transaction Management (svc-transaction-core, svc-transaction-manager, svc-settlement)#
The transaction infrastructure coordinates payment across multiple rails and ensures creator royalties are settled reliably on schedule regardless of transaction volume:
| Feature | Description |
|---|---|
| Transaction History | Complete chronological history of all token transactions — purchases, staking deposits, rewards, tips, and transfers |
Payment Orchestration (svc-payment-orchestrator) |
Coordinates payment processing across multiple rails (credit card, crypto, in-app purchase) and routes each transaction to the appropriate provider; handles retries and failure recovery |
Settlement Orchestration (svc-settlement) |
Automated settlement of creator royalty payments and platform revenue shares on a configurable schedule; ensures creators are paid on time regardless of transaction volume |
| Multi-Currency Support | Support for ETH, MATIC, platform token, and other approved ERC-20 tokens within the platform wallet |
Blockchain Smart Contracts (apps/lilith/contracts) |
Solidity contracts for EVM chains: an ERC-1155 AccessToken for subscription/access tokens, an ERC-721 ContentLicenseNFT, a CreatorRoyalties registry, a RoyaltyLicenseManager marketplace hub, and IdentityReputation and ContentProvenance contracts; built with Hardhat and Foundry |
Account and Identity#
Authentication (svc-auth, svc-auth-orchestrator)#
svc-auth is one of Lilith's most comprehensive services (164 source files). It
supports the full range of modern authentication patterns: argon2id password
hashing (memory-hard and GPU-cracking-resistant), WebAuthn passkeys
(phishing-resistant by design), TOTP and SMS OTP for two-factor, QR-code device
pairing, and OAuth federated login. The auth orchestrator coordinates multi-step
flows and enforces auth policy per subscription tier:
| Feature | Description |
|---|---|
| Email/Password | Traditional email and password authentication with argon2id hashing (a memory-hard algorithm resistant to GPU-accelerated cracking attacks) |
| WebAuthn/FIDO2 Passkeys | Passwordless login using biometric-backed passkeys stored in the device's secure enclave; phishing-resistant by design |
| TOTP Two-Factor Authentication | Time-based one-time password two-factor authentication via authenticator apps (Google Authenticator, Authy) |
| QR Code Login | Scan a QR code displayed on a new device with an authenticated mobile device to log in without entering credentials again |
| Cross-Platform Auth | A single account works seamlessly across web, mobile, desktop, CLI, and VR; session state synchronized across all active devices |
| Auth Orchestrator | The svc-auth-orchestrator coordinates multi-step authentication flows (e.g., password + TOTP + biometric) and manages auth policy per subscription tier |
Profile Management#
| Feature | Description |
|---|---|
User Preferences (svc-user-preferences) |
Customize meditation style preferences, default session duration, background sound preferences, notification schedule, and interface theme |
| Language Selection | Choose preferred interface language with automatic detection from browser locale; applies immediately without page reload |
| Privacy Settings | Control which profile elements are visible to the community — practice streaks, achievements, and activity feed can each be made private independently |
| Data Export | Download a complete export of all personal data (meditation history, journal entries, notes, preferences) at any time in standard JSON format |
Personalization and Progress#
Progress Tracking (svc-progress-sync)#
Progress data syncs across all devices in real time and includes 50+ achievement badges for milestones. Streak logic includes a configurable grace period for missed days, acknowledging that daily practice is a goal, not a punitive requirement:
| Feature | Description |
|---|---|
| Practice Streaks | Track consecutive days of meditation practice; streak breaks are forgiven with a configurable grace period for missed days |
| Session History | Complete chronological log of all meditation sessions with duration, mode, content, rating, and any post-session journal entry |
| Achievement Badges | 50+ achievement badges for milestones: first session, 7-day streak, 30-day streak, first group session, 100 total hours, tradition explorer, and more |
| Statistics Dashboard | Visual charts of total meditation time, sessions per week, average session duration, mood trends, and practice consistency over customizable time ranges |
| Cross-Device Sync | Progress data synchronized across all devices in real time; completing a session on mobile immediately reflects on the web dashboard |
Biometric Integration (svc-biometric)#
Biometric data is anonymized, encrypted, and never shared with advertisers. Its purpose is to give users an objective view of how their practice affects their physiology over time:
| Feature | Description |
|---|---|
| Heart Rate Monitoring | Pull resting and active heart rate data from Apple HealthKit or Google Fit to track cardiovascular response to meditation practice |
| HRV Tracking | Heart rate variability data correlated with meditation sessions to objectively measure practice effectiveness over time |
| Stress Level Indicators | Biometric-informed stress level estimate shown before and after sessions; enables users to see measurable improvement |
| Health Data Privacy | All biometric data anonymized and encrypted; never sold, shared with advertisers, or used without explicit user consent |
Personalized Recommendations#
Recommendations improve over time as the system learns from implicit engagement signals (completion rate, replays, skips) in addition to explicitly stated goals and mood entries:
| Feature | Description |
|---|---|
| AI-Powered Suggestions | Collaborative filtering combined with content-based recommendation using practice history, stated goals, and implicit engagement signals |
| Time-of-Day Awareness | Morning recommendations emphasize energizing focus practices; evening recommendations emphasize wind-down and sleep preparation |
| Mood-Based Selection | Select current mood from a simple palette to instantly surface appropriate content for the user's present state |
| Goal-Based Paths | Set wellness goals (better sleep, reduced anxiety, more focus, increased compassion) to receive a guided multi-week curriculum path |
Offline and Cross-Device#
Offline Access (svc-offline)#
Downloaded content is stored as encrypted bundles tied to the user's account. License enforcement applies offline: content downloaded on a Premium plan becomes inaccessible after a subscription downgrade until the device reconnects and re-validates:
| Feature | Description |
|---|---|
| Download for Offline | Download individual meditations, complete courses, and teaching documents for playback without any network connection |
| Encrypted Download Bundles | Downloaded content stored as encrypted bundles tied to the user's account; prevents unauthorized redistribution of premium content |
| License Enforcement | Offline downloads respect subscription tier — content downloaded on a Premium plan is inaccessible after downgrading until reconnected and re-validated |
| Automatic Sync on Reconnection | Any session completions, journal entries, or preference changes made while offline sync automatically when network access is restored |
Cross-Device Continuity (svc-sync, svc-real-time-sync)#
Cross-device sync uses CRDT algorithms (Conflict-free Replicated Data Types) to
merge concurrent edits made on multiple devices without data loss or manual
conflict resolution. The dedicated svc-real-time-sync service manages all
WebSocket connections for sync:
| Feature | Description |
|---|---|
| Seamless Handoff | Start a meditation on your phone and continue from the exact same point on your desktop or tablet without any manual sync step |
Audio Handoff (svc-audio-handoff) |
Transfer audio playback from phone speaker to Bluetooth headphones to smart speaker mid-session without interruption |
| Bookmark Sync | Reading positions, bookmarks, and highlights sync instantly across all active devices via WebSocket push |
| CRDT-Based Conflict Resolution | Cross-device data conflicts resolved using CRDT algorithms (Conflict-free Replicated Data Types) so concurrent edits on different devices always merge correctly without data loss |
Real-Time Sync Service (svc-real-time-sync) |
Dedicated service managing WebSocket connections for all real-time data synchronization; handles connection management, reconnection, and backpressure |
Notifications and Daily Content#
Notification System (svc-notification)#
The notification service balances user engagement against notification fatigue. New content alerts from followed teachers are capped at once per day, and streak alerts are sent only in the evening when a streak is at risk — not as indiscriminate push blasts:
| Feature | Description |
|---|---|
| Meditation Reminders | Configurable daily reminder notifications at a user-chosen time to anchor the practice habit |
| Streak Alerts | Notification sent in the evening when a user has not yet meditated and is about to break their streak |
| New Content Alerts | Opt-in notifications when new content from followed teachers is published; delivered at most once per day to prevent noise |
| Community Notifications | Updates about scheduled group sessions, community events, direct messages, and mentions |
| Push and Email Delivery | Push notifications for mobile devices; email fallback for users who have disabled mobile push |
Daily Content (svc-daily-content)#
The daily content service personalizes each day's selection based on the user's practice history, recent mood, and current streak stage. Seasonal collections align with solstices, equinoxes, lunar phases, and culturally significant spiritual dates to keep content timely and contextually resonant:
| Feature | Description |
|---|---|
| Daily Meditation | A new meditation curated by the platform each day, balanced across different traditions and techniques to prevent habit narrowing |
| Personalized Selection | Daily content selection adapts to the user's practice history, recent mood entries, current streak stage, and stated goals |
| Daily Quote | A short wisdom excerpt from the knowledge graph delivered with each day's content selection to seed reflection |
| Seasonal Content | Special content collections released in alignment with seasons, solstices, equinoxes, lunar phases, and significant cultural and spiritual dates |
Subscription Plans#
The four subscription tiers define what each user segment can access. Free gives enough to experience the platform; Premium unlocks the full catalog and offline use; Creator adds the ability to publish and monetize; Enterprise adds team management, advanced analytics, and partner API access:
| Feature | Free | Premium | Creator | Enterprise |
|---|---|---|---|---|
| Basic meditations | Yes | Yes | Yes | Yes |
| Daily content | Limited | Unlimited | Unlimited | Unlimited |
| Full content catalog | No | Yes | Yes | Yes |
| Offline downloads | No | Yes | Yes | Yes |
| Ad-free experience | No | Yes | Yes | Yes |
| AI conversations | Limited (5/day) | Unlimited | Unlimited | Unlimited |
| Group meditations | Join only | Host + Join | Host + Join | Host + Join |
| Create and monetize content | No | No | Yes | Yes |
| Royalty tracking | No | No | Yes | Yes |
| Team features | No | No | No | Yes |
| Advanced analytics | No | No | No | Yes |
| Partner API access | No | No | No | Yes |
| Dedicated support | No | No | No | Yes |
Tiered Subscription Management (svc-tiered-subscription)#
The tiered subscription service handles plan changes, prorations, trial periods, and grace periods. It integrates with the payment orchestrator for billing and emits subscription change events that gate-unlock or gate-restrict feature access across all services immediately on plan change.
Payment Options#
| Method | Availability |
|---|---|
| Credit/Debit Card | All plans |
| Crypto Payment | All plans (via fiat on-ramp) |
| Lilith Token Payment | Premium and above |
| In-App Purchase | iOS App Store and Google Play billing |
Accessibility and Localization#
Language Support (svc-language-detection)#
Language detection uses the browser locale on first visit and stores the
preference in svc-user-preferences. Adding a new locale requires only
translation files — no code changes — because the string system is built on
next-intl with full coverage:
| Feature | Description |
|---|---|
| Multi-Language Interface | Interface available in multiple languages with full string coverage via next-intl; adding a new locale requires only translation files |
| Auto Language Detection | Browser locale detected automatically on first visit; user can override at any time without losing other preferences |
| Community Translation | Community members contribute translations for unsupported languages through a moderated translation portal; translations verified by bilingual volunteers |
| RTL Support | Complete right-to-left layout mirroring for Arabic, Hebrew, Farsi, and other RTL languages; layout flips correctly at the CSS level |
Accessibility#
All accessibility features meet WCAG standards. The prefers-reduced-motion
media query is respected system-wide, and all layout uses relative font units so
system font size scaling does not break the interface:
| Feature | Description |
|---|---|
| Screen Reader Support | Full ARIA attribute coverage; tested with VoiceOver (iOS/macOS) and TalkBack (Android) for complete navigation without visual reference |
| Keyboard Navigation | Every interactive element reachable and operable via keyboard alone; visible focus indicators on all focusable elements |
| High Contrast Mode | Enhanced contrast variant meets WCAG AAA contrast ratio requirements; activates based on system preference |
| Adjustable Text Size | Respects system font size settings; all layout uses relative units so scaling does not break the interface |
| Reduced Motion | All animations respect the prefers-reduced-motion media query; no animations play for users who have opted into reduced motion |
Privacy and Data Governance#
Privacy is a first-class concern throughout Lilith's design. Journal entries, health data, and conversation history are encrypted at rest with AES-256 and in transit with TLS 1.3. Consent is managed per category (research, voice-cloning, analytics, blockchain) and is independently revocable at any time:
| Feature | Description |
|---|---|
Data Anonymization (svc-anonymization) |
Analytics and research data anonymized at the collection point; personal identifiers stripped before any aggregation or export |
Consent Management (svc-consent-management) |
Explicit granular consent required for research participation, voice cloning, analytics tracking, and blockchain transactions; each category independently revocable at any time |
Data Governance Policy (svc-data-governance) |
Centralized enforcement of data retention policies, access logging, and data residency requirements across all services; ensures compliance with regional data protection laws |
| GDPR and CCPA Compliance | Full compliance with GDPR (European Union) and CCPA (California); right to access, portability, correction, and erasure all supported via self-service |
| Input Sanitization | All user-submitted content sanitized with DOMPurify before display to prevent XSS injection |
| Encrypted Storage | Sensitive data (journal entries, health data, conversation history) encrypted at rest using AES-256 and in transit using TLS 1.3 |
| Audit Logging | Complete tamper-evident audit trail of all data access and modification operations; retained for 90 days by default |
Platform Infrastructure#
Observability and Reliability#
The infrastructure services operate beneath the user-facing feature surface,
providing the reliability guarantees the wellness platform depends on. All
services inherit OpenTelemetry tracing through @lilith/service-lib; the
observability service collects and surfaces those traces alongside Prometheus
metrics and structured logs:
| Service | Description |
|---|---|
Observability (svc-observability) |
Centralized OpenTelemetry trace collection, Prometheus metrics aggregation, and structured log indexing; surfaces performance regressions and error rate spikes in real time |
Multi-Region Resilience (svc-multi-region-resilience) |
Automated failover between geographic regions when a region becomes unhealthy; maintains service availability during regional outages without manual intervention |
Operational Excellence (svc-operational-excellence) |
Continuous operational monitoring including SLO (Service Level Objective) tracking, error budget alerting, automated runbook execution for known failure patterns, and post-incident report generation |
Error Handling (svc-error-handler) |
Centralized error classification, structured error response formatting (RFC 7807 Problem Details), and error event propagation to the observability pipeline |
Safety Automation#
Safety runs at two layers: svc-moderation screens content in real time at
upload and submission; svc-safety-automation runs scheduled scans across the
entire content library to catch safety regressions when AI safety models are
updated:
| Service | Description |
|---|---|
Safety Automation (svc-safety-automation) |
Automated content safety checks that run on a scheduled basis across the entire content library, not just at upload time; catches safety regressions when safety models are updated |
Moderation (svc-moderation) |
Real-time content moderation for user-generated chat messages, comments, and uploaded content using configurable keyword lists, AI classifiers, and human escalation queues |
Developer and Partner Access#
Lilith exposes a fully typed TypeScript SDK (@lilith/sdk) auto-generated from
its OpenAPI specifications, along with a separate partner-facing SDK
(@lilith/partner-sdk) for enterprise integration teams. The BFF's GraphQL
interface lets clients request exactly the data shape they need, while REST
endpoints cover all platform operations:
| Feature | Description |
|---|---|
TypeScript SDK (@lilith/sdk) |
Fully typed client library for programmatic access to all Lilith APIs; auto-generated from OpenAPI specifications for guaranteed accuracy |
Partner SDK (@lilith/partner-sdk) |
SDK for third-party integrations with pre-built authentication flows, rate limiting, and webhook delivery; designed for enterprise integration teams |
Partner API (svc-partner-api) |
Dedicated API service for approved integration partners with higher rate limits, partner-specific endpoints, and partner analytics |
| GraphQL API | Flexible Mercurius-powered GraphQL interface at the BFF gateway; enables clients to request exactly the data shape they need |
| REST API | RESTful endpoints for all platform operations with OpenAPI 3.0 documentation |
| Webhook Support | Receive real-time event notifications for integration: session completions, achievement unlocks, new content, subscription changes |
| OpenAPI Documentation | Auto-generated and always-current API documentation available at /api/docs |
Domain Events#
Lilith exchanges domain events over the monorepo @oshun/event-bus (Redis
Streams) via @lilith/event-publisher and @lilith/event-handlers. Events are
the primary mechanism for notifying other domains of Lilith activity without
direct service-to-service coupling.
Published by Lilith (10 events, from LilithEventTypes):
The ten outbound events cover meditation lifecycle, journaling, progress, teacher interactions, and offline downloads. Each event routes to the domains that care about it: Hathor (narrative world), Isis (generation), and Sophia (knowledge platform):
| Event | Default targets | Trigger |
|---|---|---|
lilith.meditation.started |
hathor, isis | User started a meditation |
lilith.meditation.completed |
hathor, sophia | User completed a meditation |
lilith.meditation.generated |
isis, sophia | An AI meditation was generated |
lilith.journal.created |
sophia | A journal entry was created |
lilith.journal.updated |
sophia | A journal entry was updated |
lilith.session.started |
publisher default | An app session started |
lilith.session.ended |
publisher default | An app session ended |
lilith.progress.updated |
hathor, sophia | Streak / milestone / level progress |
lilith.teacher.interaction |
isis, sophia | A teacher/persona interaction |
lilith.content.downloaded |
publisher default | Content downloaded for offline use |
Consumed by Lilith (8 events, from LILITH_SUBSCRIPTIONS):
The eight inbound subscriptions let Lilith react to activity in other domains — typically by invalidating caches and broadcasting updates to connected WebSocket clients. Crucially, these handlers do not write to authoritative storage; they are fan-out-only:
| Event | Source | Action taken |
|---|---|---|
bellona.build.completed |
Bellona | Invalidate caches, broadcast, notify the initiating user |
bellona.export.ready |
Bellona | Invalidate caches, broadcast, notify the initiating user |
isis.job.progress |
Isis | Broadcast generation progress to connected clients |
isis.job.completed |
Isis | Invalidate caches, broadcast completion |
isis.job.failed |
Isis | Broadcast failure, notify the initiating user |
isis.asset.generated |
Isis | Invalidate asset caches, broadcast asset:generated, notify |
sophia.index.updated |
Sophia | Invalidate cached search results, announce fresh knowledge |
yemaya.project.updated |
Yemaya | Broadcast project updates to connected clients |
Lilith's event handlers fan out to WebSocket clients; they do not write to authoritative storage.
Generative Art#
ComfyUI Integration#
AI image and video generation routes through shared Isis/RunComfy integrations
rather than a Lilith-local svc-comfyui service. This means Lilith benefits
from Isis's GPU infrastructure and generation queue management without
duplicating those resources:
| Feature | Description |
|---|---|
| AI Image Generation | Create meditation-themed and sacred geometry artwork using ComfyUI-compatible workflow pipelines (ComfyUI is a node-based interface for running Stable Diffusion and other generative AI models) |
| AI Video Generation | Generate short contemplative video loops via RunComfy cloud infrastructure; no local GPU required |
| Custom Workflow Templates | Pre-built workflow templates for mandalas, fractal art, sacred geometry, nature landscapes, and atmospheric meditation backdrops |
| Shared Execution Platform | Execution is brokered through shared Isis/RunComfy integrations rather than a Lilith-local svc-comfyui app |
Generative Fractal Visualizations#
Fractal art is generated mathematically in real time and modulated by the user's biometric state. The parameters — complex number coordinates, iteration depth, color mapping, zoom level — can be adjusted interactively or driven automatically by the session's progression:
| Feature | Description |
|---|---|
| Real-Time Fractal Generation | Mathematically generated fractal art (Mandelbrot, Julia, Newton, burning ship fractals) evolving continuously in real time during meditation sessions |
| Interactive Parameter Control | Adjust complex number coordinates, iteration depth, color mapping, and zoom level to explore infinite fractal landscapes |
| Meditation-Responsive Visuals | Fractal parameters modulated by the user's biometric input and real-time meditation state; the visual becomes a mirror of internal state |
| Export and Share | Save fractal visualizations as high-resolution static images or short video clips for sharing on social platforms |
Source Verification#
This file was checked against the actual codebase: the 78 apps/lilith/
packages (69 svc-* services + bff, web, mobile, desktop, cli, contracts,
seed-corpus, locales, shared), the 9 libs/lilith/ libraries, the
@lilith/event-publisher / @lilith/event-handlers event catalogs, the BFF
route registration, and the Solidity sources under
apps/lilith/contracts/contracts/. Counts, the library list, the event tables,
and the smart-contract list reflect that inventory; capabilities with no backing
service in the codebase have been removed. Lilith owns the
consciousness/spiritual experience surface; Tara owns the App Store-safe
meditation product, Shakti owns physical training, and Sophia supplies knowledge
grounding.