J
JBC System Wiki
Knowledge Base • johnbcowan.com
Last updated: 2026-05-24 • Batch 4
Contents
Protected by Cloudflare Access
tools.johnbcowan.com & wiki.johnbcowan.com

JBC System Wiki

The single source of truth for the John B. Cowan "Philosophy as a Great Conversation" essay project infrastructure on Cloudflare.

Project Goal: Produce 25–30 high-quality, layman-friendly essays forming The Great Conversation: A History of Western Philosophy, using Cloudflare's free/cheap tier for AI, storage, and hosting.

Account
951d6aeabb663fd73e4aa32f7dd40bd7
Primary Domain
johnbcowan.com

Infrastructure Resources

Resource ID / Name Purpose
Workersjbc-command-center-api
jbc-philosophy-rag
Backend API + public semantic search
D1jbc-essay-dbEssay plan, status, jobs, notes
KVjbc-command-center-kvFast cache, job status
Queuesjbc-rewrite-queueAsync AI polish jobs
Vectorizejbc-philosophy-book (384 dim, cosine)Semantic search over book + essays
R2jbc-drafts (active)Prioritize blobs >1MB (drafts, assets, media)
ImagesEnabledEssay diagrams, infographics, illustrations
StreamEnabledLecture clips, multimedia supplements
Pagesjbc-essay-command-center
johnbcowan (public site)
Dashboard (tools.johnbcowan.com) + public essays
Workers AI@cf/meta/llama-3.1-8b-instruct
@cf/baai/bge-small-en-v1.5
Voice-faithful editing + embeddings

Architecture & Connections

Public Site (johnbcowan.com) ├── /essays/*.html (static, published from drafts) └── /search.html → jbc-philosophy-rag Worker (Vectorize) Private Dashboard (tools.johnbcowan.com) └── Fetches from jbc-command-center-api Worker ├── /essays, /polish, /rag-query, /rag-expand ├── D1 (jbc-essay-db) ├── KV, R2 (jbc-drafts), Queues, Vectorize └── Workers AI for expansions & polish Zero Trust (Access) protects: - tools.johnbcowan.com - wiki.johnbcowan.com

Essential Commands

cd /home/cybortus/writing/tools/command-center-worker
source .env
CLOUDFLARE_API_TOKEN=$CLOUDFLARE_API_TOKEN wrangler deploy

# Dashboard
cd /home/cybortus/writing/tools/essay-command-center
CLOUDFLARE_API_TOKEN=$CLOUDFLARE_API_TOKEN wrangler pages deploy . --project-name=jbc-essay-command-center --commit-dirty=true

# Wiki (new)
cd /home/cybortus/writing/tools/jbc-system-wiki
CLOUDFLARE_API_TOKEN=$CLOUDFLARE_API_TOKEN wrangler pages deploy . --project-name=jbc-system-wiki

# D1
wrangler d1 execute jbc-essay-db --file=schema.sql --remote

Security & Access (Zero Trust)

Both tools.johnbcowan.com and wiki.johnbcowan.com are protected by Cloudflare Access.

  • Login screen with email + magic link / SSO
  • Restricted to: beau.cowan.id@gmail.com
  • Application type: Self-hosted
  • Policy: Allow email exactly matching the above

Managed via Cloudflare Zero Trust dashboard or API (see Batch 4 Cycles 8-9).

Changelog & Recent Batches

Batch 4 (current): UI crash fix, custom domains (tools. + wiki.), dedicated clean Wiki, Zero Trust on both domains.
Batch 3: Full pipeline wiring (Extractor + AI Polish buttons to real Queue/AI), RAG finalized, 5-6 essays advanced with drafts + enqueued polish.
Batch 2: Major dashboard overhaul (accordions, Agent Directives), custom reporting protocol.
Batch 1: Core infrastructure (D1, KV, Queues, Vectorize, Workers, initial RAG).