Skip to content

sofia-vas/sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sync - Couple's Shared Chat MVP

A secure, AI-powered chat application designed for couples to communicate with AI reflection and clarification.

πŸ—οΈ Architecture

  • Mobile App: React Native (Expo)
  • Website: Next.js (App Router)
  • API: Node.js + TypeScript (Fastify) + PostgreSQL
  • AI: OpenAI with custom orchestrator
  • Security: JWT, CORS, RLS, AES-GCM encryption

πŸ“ Monorepo Structure

/app-mobile/     # React Native (Expo)
/website/        # Next.js site + /demo trial chat
/services/api/   # Fastify API + OpenAPI YAML
/services/ai/    # Orchestrator, prompts, evals
/packages/ui/    # Shared UI tokens/components
/packages/types/ # Shared TS types + generated client
/infra/          # DB migrations, env templates, KMS helpers
/docs/           # RFCs, runbooks, openapi.yaml

πŸš€ Quick Start

# Install dependencies
npm install

# Start development servers
npm run dev

# Run tests
npm run test

# Build for production
npm run build

πŸ”’ Security Features

  • Encryption at rest: AES-GCM on sensitive columns
  • EU-only resources: All data processing in EU region
  • Delete-only retention: No data export, only deletion
  • Safety boundaries: AI content filtering and boundary detection
  • Turn-taking enforcement: No simultaneous typing

πŸ“‹ Development Milestones

  • M0 - Scaffold & Contracts
  • M1 - Auth + Couples
  • M2 - Sessions & Messages
  • M3 - AI Orchestrator
  • M4 - Safety & Boundary
  • M5 - Survey + Delete
  • M6 - Website
  • M7 - Polish

πŸ§ͺ Testing

  • Unit: RLS, crypto, validators
  • Integration: Long-poll correctness, boundary lock, survey, delete
  • E2E: Full flow couple β†’ session β†’ AI card β†’ boundary β†’ survey β†’ delete
  • Security: CI fails if plaintext content logged
  • Performance: 200 concurrent sessions, p95 <1.5s

πŸ“– Documentation

See /docs/ for detailed documentation including:

  • API specifications (OpenAPI)
  • Database schema
  • Security guidelines
  • Deployment procedures
  • Master Prompt - Development guidelines and milestone requirements

About

AI-Powered Couple Communication Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published