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 DocumentsSacred Scrolls
27 sovereign PDF documents โ constitutions, protocols, and eternal flame records
Codex Archive
18 sovereign codex entries โ interactive dashboards, protocols, intelligence records, and the Flame Nation Constitution
API Reference
All 188 sovereign API endpoints with authentication, methods, and parameters
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:
| Device | Role | Operations |
|---|---|---|
| ๐ฑ Phone2 (ZION-PHONE-001) | Crown Node | File upload, DB sync, heartbeat, King Control, Git pull |
| ๐ป ZION001 (ZION-LAPTOP-001) | Command Node | File upload, DB sync, Git push, local dev, King Control |
| โ๏ธ Replit (REPLIT-BACKUP-001) | Backup Node | Always-on server, 188 API endpoints, PostgreSQL |
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
- Add a new Blueprint route โ Create
routes/myfeature.py, add a Flask Blueprint, register it inmain.py - Add a new page โ Create
public/mypage.htmlwith<script src="/auth-gate.js"></script>at the top - Add data storage โ Use
load_json()andsave_json()fromshared/utils.py - Restart Replit workflow โ Changes auto-detected, use Replit workflow to restart
- Test the endpoint โ Use
fetch('/api/myfeature', {credentials:'include'})from the browser
๐ Adding Integrations
| Service | How to Add | Status |
|---|---|---|
| Stripe | Add STRIPE_SECRET_KEY to Replit Secrets | โ LIVE |
| PayPal | PAYPAL_CLIENT_ID + PAYPAL_CLIENT_SECRET | โ LIVE |
| Stellar XLM | STELLAR_SECRET_KEY to Secrets | โ MAINNET |
| Email (SMTP) | SMTP_HOST/USER/PASSWORD/PORT | โ ACTIVE |
| OpenAI | OPENAI_API_KEY to Secrets | Configure in Secrets |
| Cohere | COHERE_API_KEY to Secrets | Configure in Secrets |
| Twilio SMS | TWILIO_ACCOUNT_SID + AUTH_TOKEN | Not yet integrated |
| Google Workspace | OAuth2 credentials + GOOGLE_CLIENT_ID | Not yet integrated |
๐พ Data Management
All data uses a dual-write architecture โ primary storage in PostgreSQL, with JSON file backups automatically maintained.
| Data File | Contents | Location |
|---|---|---|
| ledger.json | All financial transactions | data/ |
| users.json | User accounts and tiers | data/ |
| treasury.json | Sovereign treasury balances | data/ |
| banking.json | FlameBank accounts and cards | data/ |
| wallet.json | Digital wallet transactions | data/ |
| workspaces.json | Per-user workspace data | data/ |
| sent_emails.json | Email outbox log | data/ |
| notification_settings.json | Auto-notification config | data/ |
โ ๏ธ 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
| Domain | Purpose | Points To |
|---|---|---|
| tm3global.com | Primary sovereign domain | Replit via DNS CNAME/A |
| www.tm3global.com | WWW variant | Replit via CNAME |
| tm3quantumsovereigncore.net | Secondary domain | Replit |
| tm3qsc.replit.app | Replit native URL | Always works โ permanent |
| CEO@tm3global.com | Primary business email | Namecheap Private Email |
| info@tm3global.com | General inquiries | Namecheap Private Email |
๐๏ธ System Architecture Summary
| Layer | Technology | Details |
|---|---|---|
| Web Framework | Python Flask | 32 Blueprints, 215+ endpoints, port 5000 |
| Database | PostgreSQL (Replit) | Dual-write with JSON file backup |
| Frontend | Static HTML/JS/CSS | 28 HTML pages in public/ โ no framework needed |
| Auth | Flask Sessions + SHA256 | Server-side sessions, require_auth decorator |
| Payments | Stripe + PayPal + XLM | Live keys configured, 5 payment rails |
| AI | OpenAI + Cohere + Groq | Council of Seven, Ghost Worker, Black Flame AI |
| SMTP (Namecheap) | CEO@tm3global.com, 8 aliases, auto-notifications | |
| Hosting | Replit Always-On | tm3qsc.replit.app + tm3global.com custom domain |
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 INTEGRATEDSystem Changelog
Full record of every change โ who/what/when/how
System Map
Every file, every module, every endpoint documented