๐ AI-amplified consciousness elevation platform built with React, TypeScript, Vite, Tailwind CSS, and Supabase.
- ๐ Email/Password authentication via Supabase
- โ๏ธ Magic link login support
- ๐ค Automatic profile creation on signup
- ๐ Secure session management with RLS policies
- ๐ง Consciousness Mapping - AI analyzes journal entries to reflect your frequency
- ๐ฎ Synchronicity Engine - Generate meaningful coincidences and resources
- ๐ Ancient Wisdom - Bridge traditional wisdom to modern situations
- ๐ Shadow Integration - Compassionate exploration of blind spots
- ๐ฐ Consciousness Feed - Curated consciousness insights
- ๐ซ Daily Intentions - Generate and track daily practices
- ๐ Collective Coherence - Track global consciousness metrics
- ๐๏ธ Radical Transparency - See exactly how the AI works
- ๐ Notes with Supabase storage
- ๐ฅ Community Circles
- ๐ฌ Discussions & Replies
- ๐ Community Stories
- โค๏ธ Likes & Comments system
- โฑ๏ธ Digital Sabbath timer
- ๐ต Offline encouragement
- ๐ง Presence protocols
- Node.js 18+ and npm
- A Supabase account (free tier works)
- (Optional) Gemini API key for AI features
npm installCreate a .env file in the project root:
# Supabase Configuration (get from your Supabase project)
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-keyFollow these steps:
- Create a new Supabase project
- Run the SQL migrations to create tables
- Enable Row Level Security (RLS)
- Deploy Edge Functions (for AI proxy)
- Configure authentication providers
Quick Setup Command:
# If you have Supabase CLI installed
npx supabase link --project-ref your-project-ref
npx supabase db pushnpm run devThe app will be available at http://localhost:5173
npm run build
npm run previewThe frontend is configured for deployment on Vercel:
# Install Vercel CLI
npm i -g vercel
# Deploy
vercelOr use any static hosting:
npm run build
# Deploy the `dist` folder to your hostingโโโโโโโโโโโโโโโโโโโ
โ Frontend โ
โ (React + Vite) โ
โโโโโโโโโโฌโโโโโโโโโ
โ
โโโโโโดโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโ
โSupabase โ
โ Auth โ
โ DB โ
โ Edge โ
โ Funcs โ
โโโโโโฌโโโโโ
โ
โผ
โโโโโโโโโโโโโโโ
โ AI APIs โ
โ (Perplexity,โ
โ Gemini, โ
โ etc.) โ
โโโโโโโโโโโโโโโ
resonance-web/
โโโ src/
โ โโโ components/ # React components
โ โ โโโ Auth.tsx # Login/Signup page
โ โ โโโ Notes.tsx # Notes with Supabase
โ โ โโโ ... # Feature components
โ โโโ lib/
โ โ โโโ supabase.ts # Supabase client
โ โ โโโ AuthContext.tsx # Auth provider
โ โโโ api/
โ โ โโโ client.ts # API client for backend
โ โโโ utils/
โ โ โโโ supabase/ # Supabase utilities
โ โโโ assets/ # Images and icons
โ โโโ App.tsx # Main app component
โ โโโ main.tsx # Entry point
โ โโโ index.css # Global styles
โโโ supabase/
โ โโโ functions/ # Edge Functions
โ โ โโโ perplexity-proxy/
โ โ โโโ generate-daily-intentions/
โ โโโ config.toml # Supabase config
โโโ public/
โ โโโ favicon.ico # Brand icon
โโโ .env # Environment variables (not committed)
โโโ .env.vite # Vite environment (example)
โโโ package.json
โโโ vite.config.ts
โโโ tailwind.config.js
โโโ tsconfig.json
- โ Row Level Security (RLS) enabled on all tables
- โ
User data isolated by
user_id - โ API keys stored server-side only
- โ Rate limiting on backend endpoints (30 req/min)
- โ Secure authentication with Supabase
- โ JWT-based session management
The app uses 22 tables in Supabase:
Core Tables:
profiles- User profiles (extends auth.users)consciousness_entries- Journal entries with AI analysissynchronicity_sessions- Synchronicity trackingwisdom_sessions- Wisdom consultationsshadow_entries- Shadow integration workdaily_intentions- Daily practice intentions
Community Tables:
community_stories,story_likes,story_commentscircles,circle_membersdiscussions,discussion_replies,discussion_likes
Utility Tables:
coherence_logs,global_coherencefeed_items,session_logs,notes
The application uses Supabase Edge Functions as a secure proxy to interact with AI APIs (like Perplexity AI or Gemini). This ensures that API keys are never exposed to the client.
To deploy the functions to your Supabase project:
npx supabase functions deploy consciousness-ai
npx supabase secrets set PERPLEXITY_API_KEY=your-keyTo run functions locally for development:
npx supabase functions serve- Open the app
- Sign up with a new email
- Check email for confirmation link
- Log in and explore features
- Navigate to Notes
- Create a new note
- Refresh page - note should persist
- Delete note - should remove from database
- Ensure edge functions are deployed or running locally
- Try Consciousness Mapping
- Enter journal text
- See AI analysis results
README.md- This file (project overview and setup)
- Frontend: React 18, TypeScript, Vite, Tailwind CSS
- Backend: Supabase Edge Functions (Deno)
- Database: Supabase (PostgreSQL)
- Authentication: Supabase Auth
- AI: Google Gemini API / Perplexity API
- Icons: Lucide React
- Deployment: Vercel-ready
Open source core, proprietary UX/content
Built with intention to amplify human consciousness through technology.
North Star: "We succeed when you trust yourself more, not the AI more."
Need help? Check the documentation files or open an issue.