DeafAUTH

DeafAUTH Repository Structure

πŸ“ Repository Overview

github.com/deafauth/deafauth              # Core identity compiler
github.com/pinkycollie/deafauth-ecosystem # Full MBTQ Universe integration
github.com/pinkycollie/auth-services      # Microservices architecture

1️⃣ github.com/deafauth/deafauth

Core DeafAUTH Identity Compiler

Framework-Agnostic Universal Identity System


🎯 What is DeafAUTH?

DeafAUTH is a universal identity compiler that aggregates authentication from multiple sources into a single Deaf-first identity hub.

Not a framework. Not a library. A protocol.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Your Existing Auth Systems             β”‚
β”‚  (Auth0, Google, Work SSO, School, IoT) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
               β–Ό
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β”‚  DeafAUTH  β”‚  ← Compiles ALL into ONE
         β”‚  Compiler  β”‚     with Deaf-first defaults
         β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜
                β”‚
                β–Ό
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚  One Identity         β”‚
    β”‚  Infinite Access      β”‚
    β”‚  Accessibility Synced β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start (Any Language)

JavaScript/TypeScript

import { DeafAUTH } from '@deafauth/core';

const deafauth = new DeafAUTH({
  apiUrl: 'https://api.deafauth.mbtq.dev'
});

// Register with Deaf-first defaults
const user = await deafauth.register({
  email: 'user@example.com',
  password: 'secure-password',
  name: 'John Doe'
});

// Automatically includes:
// - deaf_status: 'unspecified'
// - preferred_language: 'ASL'
// - communication_preference: 'visual'
// - accessibility_needs: []

Python

from deafauth import DeafAUTH

deafauth = DeafAUTH(api_url='https://api.deafauth.mbtq.dev')

user = deafauth.register(
    email='user@example.com',
    password='secure-password',
    name='John Doe'
)

cURL (REST API)

curl -X POST https://api.deafauth.mbtq.dev/v1/register \
  -H "Content-Type: application/json" \
  -d '{
    "email": "user@example.com",
    "password": "secure-password",
    "name": "John Doe"
  }'

Go

package main

import "github.com/deafauth/go-sdk"

func main() {
    client := deafauth.NewClient("https://api.deafauth.mbtq.dev")
    
    user, err := client.Register(deafauth.RegisterParams{
        Email:    "user@example.com",
        Password: "secure-password",
        Name:     "John Doe",
    })
}

PHP

<?php
require 'vendor/autoload.php';

use DeafAUTH\Client;

$deafauth = new Client('https://api.deafauth.mbtq.dev');

$user = $deafauth->register([
    'email' => 'user@example.com',
    'password' => 'secure-password',
    'name' => 'John Doe'
]);

Ruby

require 'deafauth'

client = DeafAUTH::Client.new(api_url: 'https://api.deafauth.mbtq.dev')

user = client.register(
  email: 'user@example.com',
  password: 'secure-password',
  name: 'John Doe'
)

πŸ—οΈ Architecture

DeafAUTH is protocol-first, not framework-specific.

Core Concepts

  1. Identity Compilation - Aggregate multiple auth sources
  2. Deaf-First Defaults - Accessibility preferences built-in
  3. Provider Agnostic - Works with Auth0, Google, Supabase, anything
  4. RESTful API - HTTP/JSON, works anywhere

API Endpoints

POST   /v1/register              # Create DeafAUTH identity
POST   /v1/login                 # Authenticate user
POST   /v1/validate-deaf         # Validate Deaf identity
POST   /v1/connect-system        # Link external auth system
GET    /v1/user/:id              # Get user profile
PATCH  /v1/user/:id              # Update preferences
DELETE /v1/user/:id              # Delete identity

OpenAPI Specification

Full API docs: api.deafauth.mtbq.dev/docs


πŸ”Œ Integration Patterns

Pattern 1: OAuth Wrapper

Wrap existing OAuth with DeafAUTH:

User β†’ Your App β†’ DeafAUTH β†’ Auth0/Google
                     ↓
              Deaf preferences
              stored & synced

Pattern 2: Identity Hub

Central hub for all authentications:

Work SSO ─┐
School   ─┼→ DeafAUTH β†’ Your App
IoT      ──     ↓
Banking  β”€β”˜   Single identity
            + Accessibility

Pattern 3: Microservices

Each service checks DeafAUTH:

Service A ─┐
Service B ─┼→ DeafAUTH API
Service C β”€β”˜  (validates token
              + returns prefs)

πŸ“¦ SDKs & Libraries

Language Package Install
JavaScript/TypeScript @deafauth/core npm install @deafauth/core
Python deafauth pip install deafauth
Go github.com/deafauth/go-sdk go get github.com/deafauth/go-sdk
PHP deafauth/php-sdk composer require deafauth/php-sdk
Ruby deafauth gem install deafauth
Rust deafauth cargo add deafauth
Java deafauth:sdk Maven/Gradle

🀝 Contributing

DeafAUTH is built BY and FOR the Deaf community.

We need:

Not needed:


πŸ“„ License

MIT License - Use freely, attribute appropriately




2️⃣ github.com/pinkycollie/deafauth-ecosystem

Complete MBTQ Universe Integration

Full-Stack Deaf-First Business Operating System


🌐 What is the DeafAUTH Ecosystem?

The complete MBTQ Universe where DeafAUTH is the identity layer integrated with:


πŸ—οΈ Repository Structure

deafauth-ecosystem/
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ deafauth/           # Identity compiler
β”‚   β”œβ”€β”€ fibonrose/          # Logging & validation
β”‚   β”œβ”€β”€ pinksync/           # Browser extension
β”‚   β”œβ”€β”€ magicians/          # AI agents
β”‚   └── dao/                # Governance system
β”‚
β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ api/                # REST API
β”‚   β”œβ”€β”€ websocket/          # Real-time sync
β”‚   └── workers/            # Background jobs
β”‚
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ web/                # Main web app
β”‚   β”œβ”€β”€ mobile/             # React Native
β”‚   └── desktop/            # Electron
β”‚
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ architecture/
β”‚   β”œβ”€β”€ deaf-research/      # Research aggregation
β”‚   └── community/          # Deaf voices
β”‚
└── infrastructure/
    β”œβ”€β”€ docker/
    β”œβ”€β”€ kubernetes/
    └── terraform/

πŸš€ Quick Start

git clone https://github.com/pinkycollie/deafauth-ecosystem.git
cd deafauth-ecosystem
docker-compose up

Option 2: Monorepo (pnpm)

pnpm install
pnpm dev

Option 3: Individual Services

# API
cd services/api && npm start

# Frontend
cd apps/web && npm start

# Workers
cd services/workers && python main.py

🧩 Components

DeafAUTH (Identity)

Fibonrose (Ethics & Logging)

PinkSync (Accessibility)

360 Magicians (AI)

DAO (Governance)


πŸ”§ Technology Stack

Flexible - Choose Your Stack:

Frontend Options

Backend Options

Database Options

Infrastructure Options


🎨 Design System

Framework-agnostic design tokens:

{
  "colors": {
    "primary": "#ff1493",
    "secondary": "#8a2be2",
    "success": "#00ff88",
    "warning": "#ffa500",
    "error": "#ff6b6b"
  },
  "typography": {
    "fontFamily": "Inter, system-ui, sans-serif",
    "scale": {
      "xs": "0.75rem",
      "sm": "0.875rem",
      "base": "1rem",
      "lg": "1.125rem",
      "xl": "1.25rem",
      "2xl": "1.5rem"
    }
  },
  "accessibility": {
    "minTouchTarget": "44px",
    "highContrast": true,
    "reducedMotion": "respected"
  }
}

🀝 Contributing

This is a monorepo for the complete ecosystem.

Contribution Areas:


πŸ“„ License

AGPL-3.0 (ecosystem must remain open-source)



3️⃣ github.com/pinkycollie/auth-services

Microservices Architecture

DeafAUTH Broken into Composable Services


🎯 What is auth-services?

DeafAUTH as independent microservices that can be deployed separately.

Use cases:


πŸ—οΈ Service Architecture

auth-services/
β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ identity/           # Core authentication
β”‚   β”œβ”€β”€ validation/         # Deaf identity validation
β”‚   β”œβ”€β”€ systems/            # External system connections
β”‚   β”œβ”€β”€ accessibility/      # Preference management
β”‚   β”œβ”€β”€ logging/            # Fibonrose integration
β”‚   └── notifications/      # Email/webhooks
β”‚
β”œβ”€β”€ gateway/                # API Gateway
β”œβ”€β”€ shared/                 # Shared libraries
└── infrastructure/         # Deployment configs

πŸš€ Services Overview

1. Identity Service

Port: 5001
Tech: Your choice (Node/Python/Go)
Purpose: Core authentication

POST /register
POST /login
POST /logout
GET  /user/:id

2. Validation Service

Port: 5002
Tech: Python (ML/AI heavy)
Purpose: Deaf identity validation

POST /validate-deaf
POST /validate-community
GET  /validation-status/:userId

3. Systems Service

Port: 5003
Tech: Node.js (API integrations)
Purpose: Connect external systems

POST /connect
GET  /connected/:userId
DELETE /disconnect/:systemId

4. Accessibility Service

Port: 5004
Tech: Any
Purpose: Manage preferences

GET  /preferences/:userId
PUT  /preferences/:userId
POST /sync-preferences

5. Logging Service

Port: 5005
Tech: Go (high-performance)
Purpose: Fibonrose logging

POST /log
GET  /logs/:userId
POST /blockchain-anchor

6. Notification Service

Port: 5006
Tech: Node.js
Purpose: Emails, webhooks

POST /email
POST /webhook
GET  /notifications/:userId

πŸ”Œ API Gateway

Single entry point for all services:

Client β†’ API Gateway (port 8080)
            ↓
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”
    ↓               ↓
Identity (5001)  Validation (5002)
    ↓               ↓
Systems (5003)   Accessibility (5004)
    ↓               ↓
Logging (5005)   Notifications (5006)

πŸš€ Deployment Options

Option 1: Docker Compose

docker-compose up
# All services start on localhost

Option 2: Kubernetes

kubectl apply -f k8s/
# Services auto-scale

Option 3: Serverless

# Each service as Lambda/Cloud Function
serverless deploy

Option 4: Traditional

# Manual service startup
cd services/identity && npm start
cd services/validation && python main.py
# etc...

πŸ”§ Service Communication

Option 1: REST

Services call each other via HTTP

Option 2: Message Queue

RabbitMQ/Redis for async communication

Option 3: gRPC

High-performance RPC

Option 4: GraphQL Federation

Unified GraphQL API

Your choice based on needs.


πŸ“Š Service Template

Each service follows the same structure:

service-name/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ controllers/
β”‚   β”œβ”€β”€ services/
β”‚   └── models/
β”œβ”€β”€ tests/
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ package.json (or requirements.txt)
└── README.md

πŸ§ͺ Testing

Each service has independent tests:

# Test individual service
cd services/identity
npm test

# Test all services
./scripts/test-all.sh

# Integration tests
npm run test:integration

πŸ“ˆ Monitoring

Each service exposes:

Centralized monitoring:


🀝 Contributing

Perfect for:

Each service can be:


πŸ“„ License

APACHE License


πŸ”— Comparison

Repo Best For Complexity Scale
deafauth/deafauth SDK users, simple integration Low Small-Medium
pinkycollie/deafauth-ecosystem Full product, monorepo Medium Medium-Large
pinkycollie/auth-services Enterprise, microservices High Large-Scale

🎯 Which Repo Should You Use?

Use deafauth/deafauth if:

Use deafauth-ecosystem if:

Use auth-services if:


πŸ“§ Contact

All repos maintained by: pinkycollie / MBTQ
Email: deafauth@mbtq.dev
Community: Built WITH the Deaf community, not FOR them


Remember: DeafAUTH is not about hearing people building β€œaccessibility tools.”
It’s about Deaf identity, culture, and autonomy in digital spaces.