Cosmic Flow: Mobile App Platform
In development
Cosmic Flow brings menstrual cycle tracking and astrology together in a mobile experience. I'm building it independently, owning everything from product architecture and data modeling through backend development, AI integration, and the supporting frontend infrastructure.
I started with the system design, working through requirements, entities, API structure, and infrastructure before moving into implementation. The resulting data model has seven core entities. Five are persisted in MongoDB, while two are derived and managed in Redis with TTLs. MongoDB is a required dependency at startup, but Redis is optional, allowing the API to continue operating if the cache becomes unavailable rather than treating an outage as a critical failure.
Authentication and security are built into the foundation. Phone and SMS verification sits behind a provider abstraction, keeping authentication providers independent of the API's route logic. Sensitive profile fields are encrypted at rest, API endpoints are rate limited, and authentication, token handling, and error handling have dedicated test coverage. That coverage has already caught a couple of issues early in development.
I'm also working through how AI should fit into reading generation. Not every part of a reading needs an LLM call: cycle phase is identified through deterministic logic, and its reference content, including symptoms, energy patterns, and rest considerations, is reusable rather than regenerated for each user. AI is reserved for the dynamic, interpretive work: reading current planetary placements against a sun sign and synthesizing that with cycle context into a cohesive reading. Rather than generating each user's reading on demand, I'm exploring an overnight batch process that prepares fresh sign-level interpretations several days ahead, providing a buffer if a generation run fails. Individual readings can then be assembled from that pre-generated content without requiring a new generation call on every request.
The frontend architecture is designed around shared foundations. The React Native app and Next.js admin will use the same design system, including reusable components, typography, themes, design tokens, and icons. Keeping those resources in shared packages means improvements can carry across both applications rather than being implemented twice.
The project is currently in its early implementation stages, with backend development taking priority before the full frontend buildout. I'm keeping the initial release focused on getting the core experience and underlying architecture right before expanding the feature set.