Sync workspace source: rank tracker module + routes, Grid DB admin page, flaskfactory AI probe + analytics zone, nav.js v16 Blog pill, template refresh
c8c30b4 Download templates/tech_stack.html from deanpowers/blind-monkeys: direct link, hf CLI and curl.
- Browser
- Download file 7.85 kB
-
https://huggingface.co/deanpowers/blind-monkeys/resolve/main/templates/tech_stack.html
- Command line
-
hf download hf://deanpowers/blind-monkeys/templates/tech_stack.html
-
curl -L -o tech_stack.html https://huggingface.co/deanpowers/blind-monkeys/resolve/main/templates/tech_stack.html
7.85 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Tech Stack β Blind Monkeys</title> | |
| <meta name="description" content="The Blind Monkeys tech stack: static sites on Google Cloud Storage with CDN, Flask services on Cloud Run, Cloud Storage as the data layer, Secret Manager, Cloud Scheduler, Cloudflare, Bybit, and Telegram."> | |
| <link rel="stylesheet" href="/css/nav.css?v=4"> | |
| <link rel="icon" type="image/svg+xml" href="/static/favicon.svg"> | |
| <style> | |
| * { box-sizing: border-box; } | |
| body { background: #0d1117; color: #e6edf3; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 0; line-height: 1.65; } | |
| .page-content { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; } | |
| h1 { font-size: 32px; margin: 0 0 6px; letter-spacing: -0.5px; } | |
| .tagline { color: #f0b90b; font-size: 16px; font-weight: 600; margin: 0 0 32px; } | |
| .summary { background: #1e2329; border-left: 4px solid #f0b90b; padding: 18px 22px; border-radius: 8px; margin: 0 0 40px; font-size: 15px; color: #c9d1d9; } | |
| h2 { font-size: 18px; color: #f0b90b; margin: 32px 0 10px; font-weight: 700; } | |
| h3 { font-size: 15px; color: #e6edf3; margin: 18px 0 6px; font-weight: 700; } | |
| p, li { color: #c9d1d9; font-size: 15px; } | |
| ul { padding-left: 22px; } | |
| li { margin-bottom: 6px; } | |
| table { border-collapse: collapse; width: 100%; margin: 14px 0 6px; font-size: 14px; } | |
| th, td { border: 1px solid #21262d; padding: 8px 12px; text-align: left; } | |
| th { color: #f0b90b; font-weight: 700; } | |
| code { background: #161b22; border: 1px solid #21262d; border-radius: 5px; padding: 1px 6px; font-size: 13px; color: #f0b90b; font-family: 'SF Mono', Monaco, monospace; } | |
| .pull { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 16px 20px; margin: 20px 0; font-size: 15px; color: #e6edf3; font-style: italic; } | |
| a { color: #f0b90b; text-decoration: none; } | |
| a:hover { text-decoration: underline; } | |
| .back { margin-top: 40px; padding-top: 24px; border-top: 1px solid #21262d; color: #8b949e; font-size: 13px; text-align: center; } | |
| .breadcrumbs { margin: 0 0 14px 0; font-size: 13px; color: #8b949e; } | |
| .breadcrumbs a { color: #8b949e; text-decoration: none; } | |
| .breadcrumbs a:hover { color: #f0b90b; text-decoration: underline; } | |
| .breadcrumbs .bc-sep { margin: 0 6px; color: #484f58; } | |
| .breadcrumbs .bc-current { color: #e6edf3; } | |
| @media (max-width: 640px) { .breadcrumbs { display: none; } } | |
| </style> | |
| </head> | |
| <body> | |
| <nav class="nav-bar"> | |
| <div class="nav-brand">π Blind Monkeys</div> | |
| <div class="nav-links"> | |
| <a href="/" class="nav-link">π Home</a> | |
| <a href="/scan/" class="nav-link">π Scan</a> | |
| <a href="/settings/" class="nav-link">βοΈ Settings</a> | |
| </div> | |
| </nav> | |
| <div class="page-content"> | |
| <div class="breadcrumbs"><a href="/">Home</a><span class="bc-sep">βΊ</span><span class="bc-current">Tech Stack</span></div> | |
| <h1>Tech Stack</h1> | |
| <p class="tagline">Managed services, minimal moving parts, billed only for actual use.</p> | |
| <div class="summary"> | |
| Blind Monkeys runs on Google Cloud with two architectures: static marketing sites served straight from Cloud Storage buckets through a global CDN load balancer, and a dynamic trading platform built as containerized Flask services on Cloud Run. Cloudflare fronts everything for DNS, security, and analytics. | |
| </div> | |
| <h2>1. Static sites β Cloud Storage + Global Load Balancer</h2> | |
| <p>The zojax family of sites and gyumri.coffee are pure static hosting:</p> | |
| <ul> | |
| <li><b>Google Cloud Storage buckets</b> hold the HTML/CSS/JS β one bucket per site or subdomain</li> | |
| <li>Buckets are configured as websites (main page suffix <code>index.html</code>) and publicly readable via <code>objectViewer</code></li> | |
| <li>A <b>Global HTTPS Load Balancer</b> routes each hostname to its bucket through <b>Backend Buckets with CDN</b> β content cached at Google edge locations worldwide</li> | |
| <li><b>Google-managed SSL certificates</b> cover all domains; an HTTPβHTTPS redirect URL map handles port 80</li> | |
| <li>A shared <code>shared/</code> bucket serves common stylesheets and scripts so all sites use identical styling and fonts</li> | |
| </ul> | |
| <p><b>Why:</b> zero maintenance, no servers, near-zero cost, effectively unlimited scale for content that changes occasionally.</p> | |
| <h2>2. The dynamic platform β Flask on Cloud Run</h2> | |
| <table> | |
| <tr><th>Service</th><th>Region</th><th>Role</th></tr> | |
| <tr><td>Main site</td><td>us-central1</td><td>All pages, auth, analytics, cron triggers, AI-visibility checker</td></tr> | |
| <tr><td>Scanner</td><td>europe-west1</td><td>Coin scanning β rising coins, grid opportunities, market regime detection</td></tr> | |
| <tr><td>Trader</td><td>europe-west1</td><td>Bybit API integration β grid bots, futures orders, compounding, position tracking</td></tr> | |
| </table> | |
| <p>The scanner and trader talk to each other over authenticated internal HTTP β score weights flow from trader to scanner; scan results flow from scanner to trader. Subdomains map to Cloud Run services via domain mappings (<code>scan.</code>, <code>charts.</code>, <code>thumbnails.</code>, <code>positions.</code>).</p> | |
| <h2>3. GCS buckets as the data layer</h2> | |
| <p>The main data bucket is mounted into the service as a volume at <code>/data</code> and accessed through a transparent storage adapter β identical code runs on local disk in development and GCS in production. It holds user accounts, settings, scan results, learned score-weight history, grid bot records, P/L history, equity snapshots, and AI-visibility answer history.</p> | |
| <h2>4. Supporting Google Cloud services</h2> | |
| <ul> | |
| <li><b>Secret Manager</b> β all credentials as versioned secrets (Bybit keys, Telegram token, Cloudflare tokens, Turnstile, SMTP password, cron secret, eight LLM API keys), injected at deploy time, never stored in code</li> | |
| <li><b>Cloud Scheduler</b> β the cron backbone: 15-minute scan jobs, alert flushing, and the daily AI-visibility check, all calling secret-protected endpoints</li> | |
| <li><b>Cloud Logging</b> β every request and trade event queryable from the terminal</li> | |
| </ul> | |
| <h2>5. External integrations</h2> | |
| <ul> | |
| <li><b>Cloudflare</b> β DNS for all zones, Turnstile CAPTCHA on contact forms, and the GraphQL Analytics API powering the visitor and crawler panels</li> | |
| <li><b>Bybit API</b> β spot and USDT-perpetual futures trading, grid bots, wallet queries</li> | |
| <li><b>Telegram Bot API</b> β multi-channel alerting (new grids, closures, profits, futures events)</li> | |
| <li><b>Seven LLM APIs</b> β OpenAI, Anthropic, Perplexity, Gemini, DeepSeek, xAI, and Mistral, probed daily by the AI visibility checker</li> | |
| <li><b>Google Analytics + tawk.to</b> β per-site analytics and live chat; <b>Zoho SMTP</b> for contact-form email</li> | |
| </ul> | |
| <h2>6. Dev workflow</h2> | |
| <ul> | |
| <li>Source lives in two repos at git.sr.ht</li> | |
| <li>Deploy is a single <code>gcloud run deploy --source</code> command per service β Cloud Build containerizes and ships it</li> | |
| <li>Frontend is server-rendered templates with vanilla JS β no framework, no build step</li> | |
| </ul> | |
| <div class="pull"> | |
| The philosophy of the stack mirrors the trading philosophy: fully managed, self-healing, minimal moving parts β every component scales to zero and bills only for actual use. | |
| </div> | |
| <div class="back"> | |
| <a href="/">β Back to Home</a> · <a href="/faq">FAQ</a> | |
| </div> | |
| </div> | |
| <script src="/css/nav.js?v=16"></script> | |
| </body> | |
| </html> | |