Felt Sense is an AI Assistant that helps you navigate your emotional life through patient natural conversations and emotional intelligence.
Felt Sense is a modern web application that provides an AI-powered emotional support companion. It combines speech recognition, natural language processing, LLM intelligence and voice synthesis to create a seamless conversational experience focused on emotional well-being.
- ποΈ Speech-to-text transcription using Deepgram
- π€ Advanced AI responses powered by Claude 3.5 Sonnet
- π Natural voice synthesis via OpenAI TTS
- π Secure authentication with WorkOS AuthKit
- πΎ Persistent conversation history
- π― Real-time emotional analysis and support
- Frontend: Next.js, React, TailwindCSS
- Backend: Next.js API routes (serverless)
- Database: Neon (Postgres)
- Authentication: WorkOS AuthKit
- AI/ML:
- Claude 3.5 Sonnet (LLM)
- Deepgram (Speech-to-Text)
- OpenAI TTS (Text-to-Speech)
felt-sense/
βββ docker/ # Container configuration
βββ prisma/ # Database schema and migrations
βββ src/
β βββ app/ # Next.js app router pages and components
β β βββ api/ # API route handlers
β β βββ auth/ # Authentication related components
β β βββ chat/ # Chat interface pages
β β βββ components/ # Reusable React components
β β βββ store/ # State management (Zustand)
β β βββ page.tsx # Landing page with hero section
β β βββ layout.tsx # Root layout with metadata
β βββ lib/ # Core application logic
β β βββ api/ # API client functions
β β βββ db/ # Database interactions
β β βββ utils/ # Utility functions for AI services
β βββ types/ # TypeScript type definitions
β βββ middleware.ts # Auth protection & routing middleware
βββ public/ # Static assets
βββ .env # Environment variables (gitignored)
βββ config files # Various configuration files at root
The application uses Next.js API routes for serverless backend functionality:
-
Authentication (
/api/auth/
)GET /api/auth
- Get current sessionGET /api/auth/callback
- Handle OAuth callback
-
Language Model (
/api/LLM/
)POST /api/LLM
- Process conversations with Claude 3.5 Sonnet
-
Speech-to-Text (
/api/stt/
)POST /api/stt
- Convert audio to text using Deepgram
-
Text-to-Speech (
/api/tts/
)POST /api/tts
- Generate speech from text using OpenAI TTS
- Clone the repository:
git clone https://github.com/your-repo/felt-sense.git
cd felt-sense
- Install dependencies:
npm install
- Set up environment variables:
cp .env.example .env
Required environment variables:
- DATABASE_URL="your-neon-db-url"
- WORKOS_API_KEY="your-workos-key"
- WORKOS_CLIENT_ID="your-workos-client-id"
- ANTHROPIC_API_KEY="your-claude-api-key"
- DEEPGRAM_API_KEY="your-deepgram-key"
- OPENAI_API_KEY="your-openai-key"
- Initialize the database:
npx prisma generate
npx prisma migrate dev
- Start the development server:
bun run dev
or
npm run dev
- Access the application at
http://localhost:3000
.