Skip to content

Repository files navigation

Resonance - Consciousness Elevation Platform

๐ŸŒ€ AI-amplified consciousness elevation platform built with React, TypeScript, Vite, Tailwind CSS, and Supabase.

โœจ Features

Authentication & User Management

  • ๐Ÿ” Email/Password authentication via Supabase
  • โœ‰๏ธ Magic link login support
  • ๐Ÿ‘ค Automatic profile creation on signup
  • ๐Ÿ”’ Secure session management with RLS policies

Consciousness Tools

  • ๐Ÿง  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

Community Features (Database Ready)

  • ๐Ÿ“ Notes with Supabase storage
  • ๐Ÿ‘ฅ Community Circles
  • ๐Ÿ’ฌ Discussions & Replies
  • ๐Ÿ“– Community Stories
  • โค๏ธ Likes & Comments system

Digital Wellness

  • โฑ๏ธ Digital Sabbath timer
  • ๐Ÿ“ต Offline encouragement
  • ๐Ÿง˜ Presence protocols

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • A Supabase account (free tier works)
  • (Optional) Gemini API key for AI features

1. Install Dependencies

npm install

2. Configure Environment Variables

Create 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-key

3. Set Up Supabase Backend

Follow these steps:

  1. Create a new Supabase project
  2. Run the SQL migrations to create tables
  3. Enable Row Level Security (RLS)
  4. Deploy Edge Functions (for AI proxy)
  5. Configure authentication providers

Quick Setup Command:

# If you have Supabase CLI installed
npx supabase link --project-ref your-project-ref
npx supabase db push

4. Run the Application

npm run dev

The app will be available at http://localhost:5173

๐Ÿ“ฆ Build & Deploy

Development Build

npm run build
npm run preview

Production Deployment

The frontend is configured for deployment on Vercel:

# Install Vercel CLI
npm i -g vercel

# Deploy
vercel

Or use any static hosting:

npm run build
# Deploy the `dist` folder to your hosting

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Frontend      โ”‚
โ”‚  (React + Vite) โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
    โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”
    โ”‚         โ”‚
    โ–ผ         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚Supabase โ”‚
โ”‚  Auth   โ”‚
โ”‚  DB     โ”‚
โ”‚  Edge   โ”‚
โ”‚  Funcs  โ”‚
โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
     โ”‚
     โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  AI APIs    โ”‚
โ”‚ (Perplexity,โ”‚
โ”‚  Gemini,    โ”‚
โ”‚  etc.)      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“ Project Structure

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

๐Ÿ” Security

  • โœ… 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

๐Ÿ—„๏ธ Database Schema

The app uses 22 tables in Supabase:

Core Tables:

  • profiles - User profiles (extends auth.users)
  • consciousness_entries - Journal entries with AI analysis
  • synchronicity_sessions - Synchronicity tracking
  • wisdom_sessions - Wisdom consultations
  • shadow_entries - Shadow integration work
  • daily_intentions - Daily practice intentions

Community Tables:

  • community_stories, story_likes, story_comments
  • circles, circle_members
  • discussions, discussion_replies, discussion_likes

Utility Tables:

  • coherence_logs, global_coherence
  • feed_items, session_logs, notes

๐Ÿค– AI Integration

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-key

To run functions locally for development:

npx supabase functions serve

๐Ÿงช Testing

Test Authentication

  1. Open the app
  2. Sign up with a new email
  3. Check email for confirmation link
  4. Log in and explore features

Test Notes (Supabase Integration)

  1. Navigate to Notes
  2. Create a new note
  3. Refresh page - note should persist
  4. Delete note - should remove from database

Test AI Features

  1. Ensure edge functions are deployed or running locally
  2. Try Consciousness Mapping
  3. Enter journal text
  4. See AI analysis results

๐Ÿ“ Documentation

  • README.md - This file (project overview and setup)

๐Ÿ› ๏ธ Tech Stack

  • 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

๐Ÿ“„ License

Open source core, proprietary UX/content

๐Ÿ™ Acknowledgments

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.

About

Resonance demonstrates AI's capacity for human elevation, not replacement. We counter AI doom narratives by showing how technology can amplify consciousness, deepen connection, and accelerate evolution. Built with React, TypeScript, Vite, and Tailwind CSS.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages