Inspiration

The inspiration for Morpheon comes from a fascination with the boundary between consciousness and sleep. I started journaling my dreams long ago, and speaking with that with some riends some of them told me how nice would it be to just send an audio as soon as they woke up. Then i build it.

What it does

Intelligent Alarms: Provides precise alarm settings, including specialized modes like Wake-Back-To-Bed (WBTB) to optimize REM cycle timing.

Dream Journaling: Allows users to record and reflect on their dreams using voice-to-text and emotional tagging. I plan on adding meditation tools,

How we built it

Frontend: Built with React Native and Expo, featuring custom UI components like the "radar" time picker and ethereal animations.

Backend: Powered by Supabase, using a PostgreSQL schema to manage user profiles and dream data.

Subscription Logic: Integrated RevenueCat with Supabase Edge Functions to handle global payments and real-time status updates via webhooks.

Challenges we ran into

Authorization Errors: We resolved a persistent 401 error by identifying that RevenueCat webhooks do not send standard Supabase JWTs, requiring us to manually disable JWT verification for that specific function.

Database Constraints: We managed Foreign Key violations (Error 23503) where webhook events from test users did not exist in our main users table.

UI/UX Refinement: Iterating on the alarm picker to balance a "dreamy" aesthetic with functional clarity

Accomplishments that we're proud of

Seamless Integration: Creating a fully automated bridge between mobile payments and backend database updates.

Visual Identity: Successfully implementing a "Deep Space" aesthetic with glassmorphism and custom gradients.

Robust Webhooks: Deploying a reliable edge function that handles complex event types like renewals and cancellations automatically.

What we learned

System Trust: Building a dream journal requires a seamless user experience where technology remains in the background.

Security Configuration: Learned how to securely utilize Service Role keys within Edge Functions to bypass RLS when handling external webhooks.

What's next for Morpheon: Dream Catcher

Wearable Syncing: Integrating with Apple Watch and Oura ring data for even more precise REM cycle detection.

AI Analysis: Deepening the AI insights to help users identify recurring patterns and symbols across their dream history.

Community Features: Exploring ways for users to share anonymized dream archetypes and insights.

Built With

  • cursor
  • eleven-labs
  • github
  • revenue-cat
  • rork
  • supabase
Share this project:

Updates