Spaces:
Running
Running
|
Download docs/INDEX.md from Benaah/MicProtocol: direct link, hf CLI and curl.
- Browser
- Download file 6.97 kB
-
https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/docs/INDEX.md
- Command line
-
hf download hf://spaces/Benaah/MicProtocol/docs/INDEX.md
-
curl -L -o INDEX.md https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/docs/INDEX.md
6.97 kB
MicProtocol Documentation
Welcome to MicProtocol β a domain-driven podcast guest management platform with a fully self-hostable integration stack.
This index is the entry point for every doc in this repository. Read top-to-bottom for newcomers; jump to a section when you know what you need.
Audience Map
| You are⦠| Start here |
|---|---|
| New engineer onboarding | Getting Started β Architecture |
| Operator running the stack | Self-Hosted Stack β Operations Runbook |
| Frontend / mobile developer | API Reference β Architecture |
| Backend / integrations engineer | Architecture β Webhooks β Third-Party & Self-Hosted Integrations |
| Security reviewer | Security & Compliance β Webhooks |
| ML / CLIP engineer | CLIP Scoring Engine |
| Recording / media engineer | Recording Infrastructure |
| QA / synthetic-agent author | Synthetic Agents Testing below |
| Product / exec | Design Blueprint |
Documentation Map
Foundations
- Getting Started β prerequisites, full local setup, first-run checklist.
- Architecture β modular monolith, bounded contexts, tech stack rationale, system diagram.
- Design Blueprint β executive-level technical design, DDD, African-market context, roadmap.
- Database Schema β ERD, key constraints, index strategy.
- Domain Workflows β guest state machine, asset collection, outreach cadence, production pipeline.
- Subdomain Routing β every workspace gets
<slug>.micprotocol.io(sentry-style); DNS, TLS, local dev, reserved list.
Applications
| App | Description | Code | App README |
|---|---|---|---|
@micprotocol/api |
NestJS backend (tRPC + REST + Socket.io) | apps/api |
apps/api/README.md |
@micprotocol/web |
Next.js 14 host dashboard + guest portal | apps/web |
(in repo) |
@micprotocol/admin |
Next.js platform-admin app | apps/admin |
apps/admin/README.md |
@micprotocol/mobile |
Expo React Native app | apps/mobile |
apps/mobile/README.md, apps/mobile/FEATURES.md |
Packages
| Package | Purpose |
|---|---|
@micprotocol/shared-types |
Domain enums and Zod schemas consumed by API, Web, Mobile, Admin |
@micprotocol/ui |
Cross-platform React UI primitives (Web + Mobile) |
@micprotocol/tsconfig |
Shared TypeScript configs (base, nextjs, nestjs) |
@micprotocol/eslint-config |
Shared ESLint config |
Services
| Service | Description | Doc |
|---|---|---|
clip-scorer (Python) |
Multimodal CLIP/audio/transcript scoring engine | clip-scoring.md |
mic-realtime (Erlang/OTP) |
Chat fanout, presence, live domain events | mic-realtime below |
Integrations
- Self-Hosted Stack β unified ops guide for the entire self-hosted fleet (Postgres, Redis, MinIO, Cal.com, Formbricks, Documenso, Chatwoot, Listmonk, Umami, LiveKit, Mailhog).
- Third-Party & Self-Hosted Integrations β per-integration purpose, ports, API clients, webhook endpoints, security.
- Webhooks β full HTTP reference for every webhook MicProtocol receives, including auth, idempotency, and side effects.
- Formbricks Runbook β deep-dive operational runbook for the Formbricks v4 stack.
Subsystems
- CLIP Scoring Engine β three-axis scoring, fusion, distributed locking, cost analysis, troubleshooting.
- Recording Infrastructure β local-first double-ender, Green Room diagnostics, edge post-processing.
Operations
- Deployment & Scaling β environment strategy, scaling triggers, Dockerfiles, CI/CD.
- Operations Runbook β day-to-day ops, monitoring, incident response, disaster recovery.
- Security & Compliance β auth, RLS, secrets, GDPR/POPIA/NDPR, audit logging.
- API Reference β REST + tRPC endpoint catalog by domain.
- Verified Guest Network β two-sided marketplace, reputation engine, search, booking requests. (See also
apps/api/src/network/README.md.)
Synthetic Agents Testing
The repo ships an end-to-end synthetic agent framework that simulates real users across five workspaces to find auth, isolation, validation, and privilege bugs.
- Code:
scripts/synthetic-agents/ - Manifest:
scripts/synthetic-agents/agents-manifest.json(5 workspace agents + 1 admin agent) - Scenarios: 8 scenario modules in
scripts/synthetic-agents/scenarios/:- Workspace lifecycle (
workspace-lifecycle.ts) - Podcast operations (
podcast-operations.ts) - Guest pipeline (
guest-pipeline.ts) - Outreach sequences (
outreach-sequences.ts) - Booking & recording (
booking-recording.ts) - Verified network (
verified-network.ts) - Admin operations (
admin-operations.ts) - Cross-workspace isolation (
cross-workspace.ts)
- Workspace lifecycle (
- Reporter:
scripts/synthetic-agents/lib/reporter.ts(pattern-matches known weakness categories) - Run:
pnpm agents:run(full pipeline) orpnpm agents:orchestrator(API-only) - Output:
scripts/synthetic-agents/test-report.txt,scripts/synthetic-agents/weaknesses.json
Conventions
- File an issue or PR against
docs/*for documentation changes. - Mermaid diagrams (
mermaid) render natively in GitHub, GitLab, and most static-site generators. - Code references use
path:lineso they're clickable in IDEs and GitHub. - "Self-hosted" refers to any service the docker-compose fleet runs; "third-party" refers to externally-hosted APIs the API code calls (Clerk, Resend, Cloudflare R2, NVIDIA NIM, DeepSeek, Moonshot, Stripe, Paystack, M-Pesa, Africa's Talking, Twilio, Google/Outlook calendars).
Repo Entry Points
- Top-level README:
/README.md - Agent notes:
/AGENTS.md - Workspace config:
/pnpm-workspace.yaml - Turbo pipeline:
/turbo.json - Full stack Docker Compose:
/docker-compose.yml - Coolify override:
/docker-compose.coolify.yml - Podman override (synthetic agents):
/scripts/synthetic-agents/podman-compose.yml - Environment template:
/.env.example - Coolify env template:
/.env.example.coolify