OpenFS Enterprise Plan

From Derek Davis
Jump to navigationJump to search

OpenFS Enterprise Knowledge Platform[edit]

A complete enterprise AI knowledge system built on OpenFS principles: every piece of company knowledge — docs, conversations, research, decisions — lives in one queryable, AI-synthesized, bidirectionally synced graph.

<html> <style> .ep-section { margin:1.2em 0; } .ep-section h3 { color:#1e40af; border-bottom:2px solid #dbeafe; padding-bottom:.3em; margin-bottom:.6em; } .ep-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:.7em; margin:.5em 0; } .ep-card { border:1px solid #e2e8f0; border-radius:6px; padding:.8em; background:#fafbfc; } .ep-card h4 { margin:0 0 .3em; font-size:.9em; color:#1e40af; } .ep-card p { margin:0; font-size:.8em; color:#374151; line-height:1.5; } .badge { display:inline-block; font-size:.72em; padding:.1em .45em; border-radius:8px; margin-bottom:.3em; } .done { background:#dcfce7; color:#166534; } .build { background:#fef3c7; color:#92400e; } .plan { background:#ede9fe; color:#5b21b6; } .arch-box { font-family:monospace; background:#1e1e1e; color:#d4d4d4; padding:1em; border-radius:4px; font-size:.82em; line-height:1.8; margin:.8em 0; } .hl { color:#9cdcfe; } .hl2 { color:#4ec9b0; } .hl3 { color:#ce9178; } </style>

System Architecture

┌── Inputs (anything becomes knowledge) ──────────────────────┐
│ Telegram messages · Web editor · MW edits · File uploads · URLs │
└─────────────────────────┬───────────────────────────────────┘
                         ↓
@openfs/agent-wiki-mw  ← sync server (port 4322)
     ↓ pull      ↓ ingest     ↓ query
@openfs/wasm   IFileSystem (ls / cat / grep / ingest / search)
     ↓
@openfs/agent-wiki  ← LLM synthesis (Claude Haiku)
     ↓ push     ↓ category tag
MediaWiki   ← canonical display & edit layer (port 8082)
     ↓
┌── Outputs (knowledge surfaces everywhere) ───────────────────┐
│ Wiki pages · Telegram answers · REST API · Astro frontend · CLI │
└────────────────────────────────────────────────────────────┘

Package Build Plan

Done

@openfs/core + wasm

IFileSystem interface + in-browser SQLite. Foundation everything runs on.

Done

@openfs/agent-wiki

LLM synthesis pipeline. Ingest sources → synthesize wiki pages → query with citations.

Done

@openfs/agent-wiki-mw

MediaWiki ↔ OpenFS sync. Category tagging, synthesis map, Recent Changes, REST API on :4322.

Done

MediaWiki + Docker

Persistent SQLite volume, MonoBook skin, OpenFS Terminal page, setup automation.

Building Now

@openfs/bot-telegram

Telegram bot connected to sync server. Ask questions, ingest URLs, get page summaries, push edits back to wiki.

Building Now

@openfs/cli

openfs ls, cat, grep, ask, ingest, pull, push, shell. Single Bun binary. Works against any running sync server.

Next

@openfs/editor

Astro rich-text editor that saves directly to MW via agent-wiki-mw. WYSIWYG + markdown. Preview shows rendered wiki page.

Next

@openfs/ingestor

Background worker: ingest URLs, PDFs, Slack exports, GitHub repos, emails into OpenFS automatically.

Next

Enterprise Dashboard

Astro app: knowledge graph view, page health scores, synthesis quality, recent activity, team contributions.

Next

@openfs/agent-slack

Slack bot: same pattern as Telegram. /ask, /ingest, /wiki commands in any channel.

Telegram Bot Commands

/ask what is the IT Command Center?   ← query wiki with citations
/ingest https://example.com/doc   ← fetch URL + synthesize into wiki
/cat /wiki/it-command-center.md   ← read a specific page
/grep authentication   ← search across all wiki files
/pages   ← list all synthesized wiki pages
/sync   ← trigger recent changes sync
/status   ← show sync server health

// Also handles plain messages — routes to /ask automatically

CLI Commands

openfs ls [/wiki]   ← list pages
openfs cat <path>   ← read page content
openfs grep <query>   ← search with match snippets
openfs ask "question"   ← query AI with citations
openfs ingest <file|url>   ← add to knowledge base
openfs pull   ← pull all MW pages
openfs push   ← push OpenFS pages to MW
openfs shell   ← interactive REPL
openfs map   ← show link map
openfs recent   ← recent changes

Technology Choices

Runtime:   Bun (server + CLI + agent)
Frontend:  Astro (playground, editor, dashboard)
Wiki:     MediaWiki 1.43 + SQLite (baked + volume)
AI:      Claude Haiku (synthesis) + Claude Sonnet (agents)
Storage:  WASM SQLite (dev) / S3+Chroma (prod)
Bot:      Telegraf (Telegram) / Bolt (Slack)
Infra:   Docker Compose (local) / Fly.io or Railway (cloud)