Files
cb2fa.com/core
EasyProTech LLC 088f1f8b27 📜 Fix empty files + Add v1.1.0 changelog entry
✅ Fixed Files:
• CHANGELOG.md - Added v1.1.0 (2025-06-28) mono-repo restructure
• LICENSE - MIT license with EasyProTech LLC copyright
• README.md - Platform overview with multi-implementation vision
• docs/architecture.md - Complete CB2FA architecture documentation
• core/README.md - Shared components overview (i18n, queue, types)

🎯 Version 1.1.0 Changes:
- Repo converted to mono-structure
- Matrix implementation moved to /matrix
- Core architecture documentation started

📊 All files now have proper content (not 1-byte empty files)
🌍 Ready for CB2FA platform expansion!
2025-06-28 08:07:22 +03:00
..

CB2FA Core Components

This directory contains shared components used across all CB2FA implementations.

🌍 Internationalization (i18n)

Location: ./i18n/

Shared translations for all CB2FA implementations supporting 7 languages:

  • 🇬🇧 English (default)
  • 🇷🇺 Russian
  • 🇩🇪 German
  • 🇨🇳 Chinese (Simplified)
  • 🇫🇷 French
  • 🇪🇸 Spanish
  • 🇹🇷 Turkish

Usage

import { t, availableLanguages } from '@cb2fa/core/i18n';

// Get translated message
const message = t('loginRequest');  // "🔐 Login Request"

// List available languages
console.log(availableLanguages);

🔄 Queue System

Location: ./queue/

Shared queue management for handling multiple simultaneous requests:

  • One active request at a time
  • Automatic queuing and processing
  • Timeout handling
  • Anti-spam protection

Usage

import { RequestQueue } from '@cb2fa/core/queue';

const queue = new RequestQueue({
  timeout: 15 * 60 * 1000, // 15 minutes
});

await queue.add(request);

🏗️ Types

Location: ./types/

Shared TypeScript types and interfaces:

interface LoginRequest {
  username: string;
  ip: string;
  userAgent: string;
  timestamp: Date;
}

interface ApprovalResponse {
  approved: boolean;
  timestamp: Date;
  approver?: string;
}

🔧 Utils

Location: ./utils/

Shared utility functions:

  • Input validation
  • Security helpers
  • Common formatting
  • Configuration loading

Note: Core components are designed to be platform-agnostic and reusable across all CB2FA implementations.