Back to home

Help build the platform protecting LGBTQ+ voices.

Survival Pending is open source software built with urgency and care. Every contribution helps protect and amplify LGBTQ+ voices during critical times.

Your code could help someone share their story safely.

Getting Started

Prerequisites

  • Node.js 18+ and npm
  • PostgreSQL database (we recommend Neon)
  • Required API keys (see Environment Setup)

1. Clone the repository

git clone https://github.com/yourusername/survivalpending.git
cd survivalpending

2. Install dependencies

npm install

3. Set up environment variables

Create a `.env.local` file:

# Database
DATABASE_URL="postgresql://..."

# Authentication
JWT_SECRET="generate-a-secure-secret"

# AI Services
ANTHROPIC_API_KEY="your-claude-api-key"
GROQ_API_KEY="your-groq-api-key"
ELEVENLABS_API_KEY="your-elevenlabs-key"

# Security
TURNSTILE_SECRET_KEY="your-cloudflare-turnstile-key"

# Storage
BLOB_READ_WRITE_TOKEN="your-vercel-blob-token"

4. Initialize the database

npx prisma generate
npx prisma db push

5. Run the development server

npm run dev

Open http://localhost:3000 to see the application.

Available Scripts

npm run dev          # Start development server
npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint
npm run sync:dev    # Sync development data
npm run sync:prod   # Sync production data