# Round 29 — Plugin Distribution & Marketplace UI

**Date**: 2026-04-30 · **Status**: ✅ COMPLETE

---

## 🛍️ The Plugin Marketplace — Floor 85

```
┌────────────────────────────────────────────────┐
│ Marketplace Header (search + categories)       │
├────────────────────────────────────────────────┤
│ Featured (top 6)                               │
├────────────────────────────────────────────────┤
│ Categories:                                    │
│ ├── Publishing (Instagram, Twitter, FB...)     │
│ ├── Translation (DeepL, Google Translate)      │
│ ├── Analytics (GA4, Mixpanel, Datadog)         │
│ ├── Workflow (Zapier, n8n, Slack)              │
│ ├── Editorial (FactCheck, Plagiarism, Legal)   │
│ ├── Voice (TTS, Podcast)                       │
│ ├── Visual (AI Image, Stickers, Video)         │
│ ├── Games (Quiz, Lottery, Trivia)              │
│ └── Custom Tenant (private to tenant)          │
└────────────────────────────────────────────────┘
```

---

## 🚀 Distribution Channels

### 1. Public Marketplace (`marketplace.clastop.app`)
- Open to all tenants
- 100+ plugins curated
- Reviews + ratings
- Cloudflare-hosted (R2 + Workers)

### 2. Private Plugin Registry (per-tenant)
- Tenants can have private plugins (e.g., BBC's internal CMS integration)
- Hidden from marketplace
- Auth via tenant API key

### 3. Plugin SDK (`@clastop/plugin-sdk`)
- npm package לdevs
- Scaffolding CLI: `clastop plugin create`
- Local dev server עם hot reload
- Submit לreview: `clastop plugin publish`

---

## 📦 Install Flow

```
1. User browses marketplace (Floor 85)
2. Clicks "Install" on plugin card
3. Capability prompt appears:
   "This plugin requires:
    - HTTP fetch (whitelist: instagram.com, graph.facebook.com)
    - Read your Instagram token
    Do you trust this plugin?"
4. User clicks "Install"
5. Plugin downloads from R2
6. Sandbox validates
7. clastop-mega installs (writes to plugins_trusted/)
8. Plugin appears in tenant's "Installed" list
9. Plugin's `on_plugin_install` hook fires
10. Tenant configures plugin (settings panel)
```

---

## 💸 Plugin Pricing Models

| Model | Example |
|---|---|
| **Free** | Open-source, community |
| **Per-render** | $0.001 per article processed |
| **Per-feature** | $9/mo flat fee |
| **Per-volume** | $50/mo for first 1000 renders, $0.01/render after |
| **Revenue share** | Plugin takes % of ad revenue (Games-floor pattern) |

ה-engine מטפל ב-billing אוטומטית דרך Stripe.

---

## 📊 Marketplace Trust Signals

לכל plugin בmarketplace:
- ✓ Verified by clastop (security audit)
- ⭐ User rating (1-5)
- 📥 Install count
- 📝 Review count
- 🔄 Last updated
- 🛡️ Capability list (transparency)

---

## ✅ Closure

✅ Round 29 closed. **Marketplace · 9 categories · 5 pricing models · trust signals**.
