Skip to content

shreekardittakavi/HackTX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Polara - Your Financial North Star

Polara is a comprehensive government benefits optimization platform designed for retired, disabled, and veteran users. It uses an intuitive solar system metaphor to visualize and manage benefit eligibility across healthcare, housing, food, transportation, and financial assistance programs.

Features

  • ๐ŸŒŸ Solar System Dashboard: Interactive visualization with planets representing different benefit categories
  • ๐Ÿ—ฃ๏ธ Voice Commands: AI-powered voice assistant using Eleven Labs and Gemini API
  • ๐ŸŒ Multilingual Support: Available in 7 languages (English, Spanish, French, Chinese, Hindi, Tagalog, Vietnamese)
  • โ™ฟ Accessibility: Font size adjustment, color blindness filters, dyslexia-friendly fonts, high contrast mode
  • ๐Ÿ’ฐ Benefit Calculators: Real-time calculations for SSI, SNAP, Section 8, EITC, and more
  • ๐Ÿ”” Smart Alerts: Notifications for benefit changes, rule updates, and income adjustments

Technology Stack

Frontend

  • React + Vite
  • TailwindCSS for styling
  • Framer Motion for animations
  • Redux Toolkit for state management
  • react-i18next for internationalization
  • Axios for API calls

Backend

  • Node.js + Express
  • MongoDB + Mongoose ODM
  • JWT authentication
  • AES-256 encryption for sensitive data
  • Eleven Labs API for speech-to-text/text-to-speech
  • Google Gemini API for intent classification

Installation

Prerequisites

  • Node.js 18+
  • MongoDB (local or MongoDB Atlas)
  • Eleven Labs API key
  • Google Gemini API key

Backend Setup

  1. Navigate to backend directory:
cd backend
  1. Install dependencies:
npm install
  1. Create a .env file (use .env.example as template):
cp .env.example .env
  1. Configure your environment variables in .env:
PORT=5000
MONGODB_URI=mongodb://localhost:27017/polara
JWT_SECRET=your_jwt_secret_key_here
ENCRYPTION_KEY=your_32_character_encryption_key
ELEVEN_LABS_API_KEY=your_eleven_labs_api_key
GEMINI_API_KEY=your_gemini_api_key
NODE_ENV=development
  1. Start the backend server:
npm run dev

The backend will run on http://localhost:5000

Frontend Setup

  1. Navigate to frontend directory:
cd frontend
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev

The frontend will run on http://localhost:3000

API Keys

Eleven Labs API

  1. Sign up at elevenlabs.io
  2. Get your API key from the dashboard
  3. Add to backend .env file

Google Gemini API

  1. Visit Google AI Studio
  2. Create a new API key
  3. Add to backend .env file

MongoDB

  • Local: Install MongoDB locally and use mongodb://localhost:27017/polara
  • Cloud: Create a free cluster at MongoDB Atlas and use the connection string

Project Structure

HackTX/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ config/           # Database configuration
โ”‚   โ”œโ”€โ”€ models/           # Mongoose schemas
โ”‚   โ”œโ”€โ”€ routes/           # API routes
โ”‚   โ”œโ”€โ”€ middleware/       # Authentication middleware
โ”‚   โ”œโ”€โ”€ utils/            # Utility functions
โ”‚   โ””โ”€โ”€ server.js         # Express server
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ components/   # Reusable components
โ”‚   โ”‚   โ”œโ”€โ”€ pages/        # Page components
โ”‚   โ”‚   โ”œโ”€โ”€ store/        # Redux store and slices
โ”‚   โ”‚   โ”œโ”€โ”€ i18n/         # Translation files
โ”‚   โ”‚   โ”œโ”€โ”€ services/     # API services
โ”‚   โ”‚   โ”œโ”€โ”€ App.jsx       # Main app component
โ”‚   โ”‚   โ””โ”€โ”€ main.jsx      # Entry point
โ”‚   โ”œโ”€โ”€ public/           # Static assets
โ”‚   โ””โ”€โ”€ index.html        # HTML template
โ””โ”€โ”€ README.md

Benefit Categories

๐Ÿฅ Healthcare

  • Medicaid
  • Medicare
  • ACA Subsidies
  • TRICARE
  • VA Health Care
  • Ryan White HIV/AIDS Program
  • State Pharmaceutical Assistance Programs

๐Ÿ  Housing

  • Section 8 Housing Choice Vouchers
  • Public Housing
  • HUD-VASH (Veterans)
  • LIHEAP (Energy Assistance)
  • Emergency Rental Assistance
  • Weatherization Assistance
  • Property Tax Relief

๐ŸŽ Food

  • SNAP (Food Stamps)
  • WIC
  • Summer/Pandemic EBT
  • Senior Food Programs
  • Emergency Food Assistance

๐ŸšŒ Transportation

  • Non-Emergency Medical Transportation (NEMT)
  • Paratransit Services
  • Veterans Transportation
  • Transit Fare Subsidies
  • Vehicle Modification Grants

๐Ÿ’ฐ SSI & Taxes

  • Supplemental Security Income (SSI)
  • Social Security Disability Insurance (SSDI)
  • TANF
  • Earned Income Tax Credit (EITC)
  • Child Tax Credit (CTC)
  • State Tax Credits

Voice Commands

Try these voice commands:

  • "Show me healthcare benefits"
  • "Navigate to housing"
  • "Check my food benefits"
  • "Go to transportation"
  • "Open my profile"
  • "Calculate my benefits"

Accessibility Features

Font Size

  • Small, Medium, Large options
  • Applies globally across the application

Color Blindness Filters

  • Protanopia (Red-blind)
  • Deuteranopia (Green-blind)
  • Tritanopia (Blue-blind)

Additional Features

  • OpenDyslexic font option
  • High contrast mode
  • Full keyboard navigation
  • ARIA labels on all interactive elements
  • Voice narration support

Languages Supported

  • ๐Ÿ‡บ๐Ÿ‡ธ English
  • ๐Ÿ‡ช๐Ÿ‡ธ Spanish (Espaรฑol)
  • ๐Ÿ‡ซ๐Ÿ‡ท French (Franรงais)
  • ๐Ÿ‡จ๐Ÿ‡ณ Chinese (ไธญๆ–‡)
  • ๐Ÿ‡ฎ๐Ÿ‡ณ Hindi (เคนเคฟเคจเฅเคฆเฅ€)
  • ๐Ÿ‡ต๐Ÿ‡ญ Tagalog
  • ๐Ÿ‡ป๐Ÿ‡ณ Vietnamese (Tiแบฟng Viแป‡t)

Development

Running Tests

# Backend
cd backend
npm test

# Frontend
cd frontend
npm test

Building for Production

# Frontend
cd frontend
npm run build

# The build folder will contain optimized production files

Contributing

This project was created for HackTX. Contributions are welcome!

License

MIT License

Support

For support or questions, please contact the development team.


Polara - Your Financial North Star. Always in Orbit. โญ

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages