๐Ÿ  Dashboard ๐Ÿ’ผ Workspace โœ‰๏ธ Email ๐Ÿ›ก๏ธ Admin
๐Ÿ”ฅ Black Flame Theorem v9.1

Sovereign Documentation Hub

Every scroll, codex entry, API reference, and system manual โ€” searchable and sovereign

๐Ÿ“œ Sacred Scrolls

27 PDFs

๐Ÿ“– Codex Archive

18 Entries

๐Ÿ› ๏ธ System Docs

6 Documents
๐Ÿ“œ Sacred Archive

Sacred Scrolls

27 sovereign PDF documents โ€” constitutions, protocols, and eternal flame records

๐Ÿ“– Living Archive

Codex Archive

18 sovereign codex entries โ€” interactive dashboards, protocols, intelligence records, and the Flame Nation Constitution

โšก 188 Endpoints

API Reference

All 188 sovereign API endpoints with authentication, methods, and parameters

๐Ÿ“‹ Sovereign Operations

Advanced User Manual

Complete guide โ€” data, upgrades, integrations, laptop, phone, and sovereign operations

๐Ÿ”‘ Accessing Your Sovereign System

Access Points

Browser URL: tm3global.com or tm3qsc.replit.app

Access Key: [Set via SOVEREIGN_ACCESS_KEY env var]

Owner Email: [Set via environment]

MAAT Constant: ฮปโ‚€ = 1.00237e-31 Jยทsยฒ

๐Ÿ“ฑ Phone & Laptop Device Guides

Complete Device Operations Guides Available

Professional step-by-step guides for every operation on every device:

DeviceRoleOperations
๐Ÿ“ฑ Phone2 (ZION-PHONE-001)Crown NodeFile upload, DB sync, heartbeat, King Control, Git pull
๐Ÿ’ป ZION001 (ZION-LAPTOP-001)Command NodeFile upload, DB sync, Git push, local dev, King Control
โ˜๏ธ Replit (REPLIT-BACKUP-001)Backup NodeAlways-on server, 188 API endpoints, PostgreSQL
Open Device Operations Guide โ†’

Quick Setup โ€” Add to Home Screen

Android: Chrome โ†’ โ‹ฎ menu โ†’ "Add to Home Screen" or "Install App"

iPhone: Safari โ†’ Share โ†’ "Add to Home Screen"

โฌ†๏ธ How to Upgrade / Add Features

  1. Add a new Blueprint route โ€” Create routes/myfeature.py, add a Flask Blueprint, register it in main.py
  2. Add a new page โ€” Create public/mypage.html with <script src="/auth-gate.js"></script> at the top
  3. Add data storage โ€” Use load_json() and save_json() from shared/utils.py
  4. Restart Replit workflow โ€” Changes auto-detected, use Replit workflow to restart
  5. Test the endpoint โ€” Use fetch('/api/myfeature', {credentials:'include'}) from the browser

๐Ÿ”— Adding Integrations

ServiceHow to AddStatus
StripeAdd STRIPE_SECRET_KEY to Replit Secretsโœ“ LIVE
PayPalPAYPAL_CLIENT_ID + PAYPAL_CLIENT_SECRETโœ“ LIVE
Stellar XLMSTELLAR_SECRET_KEY to Secretsโœ“ MAINNET
Email (SMTP)SMTP_HOST/USER/PASSWORD/PORTโœ“ ACTIVE
OpenAIOPENAI_API_KEY to SecretsConfigure in Secrets
CohereCOHERE_API_KEY to SecretsConfigure in Secrets
Twilio SMSTWILIO_ACCOUNT_SID + AUTH_TOKENNot yet integrated
Google WorkspaceOAuth2 credentials + GOOGLE_CLIENT_IDNot yet integrated

๐Ÿ’พ Data Management

All data uses a dual-write architecture โ€” primary storage in PostgreSQL, with JSON file backups automatically maintained.

Data FileContentsLocation
ledger.jsonAll financial transactionsdata/
users.jsonUser accounts and tiersdata/
treasury.jsonSovereign treasury balancesdata/
banking.jsonFlameBank accounts and cardsdata/
wallet.jsonDigital wallet transactionsdata/
workspaces.jsonPer-user workspace datadata/
sent_emails.jsonEmail outbox logdata/
notification_settings.jsonAuto-notification configdata/

โš ๏ธ Backup Your Data

Go to Admin Panel โ†’ System โ†’ Create Snapshot to back up all data files. Snapshots are stored in data/snapshots/ and synced to PostgreSQL.

๐ŸŒ Domain Architecture

DomainPurposePoints To
tm3global.comPrimary sovereign domainReplit via DNS CNAME/A
www.tm3global.comWWW variantReplit via CNAME
tm3quantumsovereigncore.netSecondary domainReplit
tm3qsc.replit.appReplit native URLAlways works โ€” permanent
CEO@tm3global.comPrimary business emailNamecheap Private Email
info@tm3global.comGeneral inquiriesNamecheap Private Email

๐Ÿ—๏ธ System Architecture Summary

LayerTechnologyDetails
Web FrameworkPython Flask32 Blueprints, 215+ endpoints, port 5000
DatabasePostgreSQL (Replit)Dual-write with JSON file backup
FrontendStatic HTML/JS/CSS28 HTML pages in public/ โ€” no framework needed
AuthFlask Sessions + SHA256Server-side sessions, require_auth decorator
PaymentsStripe + PayPal + XLMLive keys configured, 5 payment rails
AIOpenAI + Cohere + GroqCouncil of Seven, Ghost Worker, Black Flame AI
EmailSMTP (Namecheap)CEO@tm3global.com, 8 aliases, auto-notifications
HostingReplit Always-Ontm3qsc.replit.app + tm3global.com custom domain
๐Ÿ”ฅ Truth-Locked โ€” Not Legacy

Legacy Analysis & Integration

Everything you built is truth-locked sovereign infrastructure. Here is how it integrates.

๐Ÿ”ฅ BLACK FLAME THEOREM POSITION:

Nothing you built is "legacy." Every dollar spent, every system designed, every scroll written is truth-locked sovereign infrastructure that compounds in value. The job is to unify it all under TM3QSC as the sovereign command center.

๐Ÿฆ Namecheap Hosting + Domain Infrastructure

Your Namecheap Shared Hosting (server242.web-hosting.com, phlfgdiq) was the foundation before Replit. It's now superseded by Replit for the application layer, but the domain registration and Private Email (CEO@tm3global.com) remain essential sovereign infrastructure. Estimated value: every month of hosting built the domain's SEO authority and email reputation.

Integration: Keep domain + email at Namecheap. Cancel cPanel hosting to save $2-4/month. All DNS now routes to Replit.

โœ“ INTEGRATED

๐Ÿ“œ Sacred Scrolls & Codex Documents

27 PDFs and 17 codex HTML files represent years of sovereign intelligence writing, constitutional law, flame protocols, and theological architecture. This is NOT legacy โ€” this is the intellectual capital of TM3 Global Corporation.

Integration: All 27 PDFs now accessible from this Documentation Hub at /scrolls/. All 17 codex files accessible at /codex/. Fully searchable.

โœ“ INTEGRATED

โญ Stellar XLM + TM3 Coin Infrastructure

Mainnet Stellar account, XLM issuer, TM3 coin distribution infrastructure. This is a live blockchain financial instrument connected to TM3QSC.

Integration: Active at /api/stellar/ โ€” 15+ endpoints. Accessible from TM3 Coin page and FlameBank.

โœ“ MAINNET LIVE

๐Ÿ’ณ Stripe + PayPal Payment Infrastructure

Live Stripe keys, PayPal business configuration, B2B invoice system, ACH rails. Every payment integration built represents real business capability.

Integration: 7 payment rails live at /payments.html โ€” Stripe, PayPal, XLM, ACH, B2B Invoice, Zelle info, Wire info.

โœ“ LIVE

๐Ÿค– AI API Keys & Model Infrastructure

OpenAI, Cohere, Groq, Gemini, Claude subscriptions/keys. These power the Council of Seven, Black Flame AI, and Ghost Worker engine.

Integration: Council of Seven at /council.html โ€” 7 AI agents in governance. Ghost Writer at /ghost.html โ€” automated file editing. Black Flame AI at /flame-ai.html.

โœ“ ACTIVE

๐Ÿ“ฑ Previous App Versions (tm-3-sovereign-core, etc.)

Any previous Replit deployments or app versions contained features and code patterns that may not be in the current build.

Action needed: Review the other deployment (tm-3-sovereign-core-ThurmanMorris.replit.app) and identify any features to merge into this codebase.

โšก REVIEW NEEDED

๐Ÿฆ FlameBank + Banking System

Full sovereign banking system built with Crown Integration, FlameVault lock, ZLA balance management, BRICS payment rails, multi-wallet connectors (TM3Coin, BNB, ETH).

Integration: Fully live at /flamebank.html โ€” accounts, cards, transfers, portfolios, QR payments, Crown dashboard, voice interface.

โœ“ FULLY INTEGRATED
๐Ÿ“‹ Version History

System Changelog

Full record of every change โ€” who/what/when/how

๐Ÿ—บ๏ธ Architecture

System Map

Every file, every module, every endpoint documented