An anonymous, low-bandwidth therapy platform for Sierra Leone. Uses asynchronous voice notes and text to connect users with verified counselors. Features avatar-based signup, encrypted messaging, and works seamlessly on 3G networks. Built as a PWA.
# SafeSpace Salone
An anonymous, low-bandwidth mental health therapy platform designed for Sierra Leone.
## Overview
Unlike Western apps that rely on expensive live video, SafeSpace Salone uses **asynchronous voice notes and text** (similar to WhatsApp) to connect users with verified counselors. It prioritizes data privacy and functions seamlessly on 3G networks.
**Built for the Hackathon** - This is a prototype demonstrating the concept of accessible mental health support for Sierra Leone.
## Features
### For Patients
- **Anonymous Sign-up**: Create accounts with fun avatars - no real names required
- **Topic Selection**: Choose from categories like Trauma, Anxiety, Addiction, and more
- **Urgency Levels**: Indicate how urgently you need support
- **Voice Notes**: Record and send voice messages for more personal communication
- **Text Messaging**: Simple text-based chat when voice isn't preferred
- **Offline Support**: Queue messages when offline, auto-send when back online
### For Counselors
- **Secure Dashboard**: View waiting and active conversations
- **Session Notes**: Private notes for each conversation (stored locally)
- **Patient Context**: See topic, urgency level, and conversation history
- **Real-time Updates**: Polling for new conversations
### Technical
- **PWA**: Installable as a mobile app with offline support
- **Low-Bandwidth**: Optimized for 3G networks
- **Dark Theme**: Calming, eye-friendly interface
- **Accessible**: Focus states, reduced motion support, screen reader friendly
## Tech Stack
| Category | Technology |
|----------|------------|
| Framework | Next.js 14+ (App Router) |
| Language | TypeScript |
| Styling | Tailwind CSS v4 |
| Database | Supabase (PostgreSQL) |
| Realtime | Supabase Realtime |
| Storage | Supabase Storage (voice notes) |
| Icons | Lucide React |
| PWA | @ducanh2912/next-pwa |
| UI Components | Custom + shadcn/ui inspired |
## Getting Started
### Prerequisites
- Node.js 18+
- npm or yarn
- Supabase acco …