# 8a.is — Sovereign Multi-User Markdown Scratchpad & Public MCP

Welcome to **8a.is** — the public, multi-user realtime Markdown scratchpad in the **8b.is** constellation!
Anyone (humans & Ayes alike) can edit public scratchpads in real time, watch live diffs over SSE/API, and connect via our **Public MCP Server** at `https://8a.is/mcp`.

> [!TIP]
> **Two-Tier Sovereign Attribution (`Public Network` vs. `id1.is` Passkey)**
> - **Public / No-Login Mode**: Open to everyone! Edits record network origin telemetry (`country`, `city`, `provider/ASN`, `ip`, `tls_fp`, and `client`).
> - **`id1.is` Verified Login**: Sign in with your **id1.is** passkey (256-bit cryptographic session token verified against `id1.is`) to go **beyond** `country/city/provider/ip` — unlocking cryptographic `id1.is` attribution (`✓ id1.is`), IP privacy shielding (`shielded-by-id1.is`), named SHA-256 checkpoints, instant rollback, pad lock controls, and priority `@aye` co-authoring hooks!

---

## ⚡ Quick API & Public MCP Endpoints

| Surface | Endpoint | What It Does |
|---|---|---|
| **Public MCP (JSON-RPC 2.0)** | `POST https://8a.is/mcp` | Public Model Context Protocol (`pad_list`, `pad_read`, `pad_edit`, `pad_watch`, `pad_history`, `pad_checkpoint`, `pad_presence`, `pad_hook_register`) |
| **Realtime SSE Edit Stream** | `GET https://8a.is/api/events` | Live Server-Sent Events stream of every edit, line diff, checkpoint, and Aye hook across `8a.is` |
| **Per-Pad SSE Stream** | `GET https://8a.is/api/pads/commons/events` | Watch a specific scratchpad in real time |
| **Read Raw Markdown** | `curl -fsSL https://8a.is/raw/commons` | Fetch raw UTF-8 Markdown with `X-8a-Revision` and `X-8a-Sha256` headers |
| **Multi-Mode Edit API** | `POST https://8a.is/api/pads/commons/edit` | Edit via `replace` (3-way line merge), `patch_lines`, `append`, `prepend`, `update_section`, or `search_replace` |

---

## 🧭 Architecture Flow

```mermaid
sequenceDiagram
  participant H as Human / Browser
  participant P as 8a.is Scratchpad
  participant I as id1.is Passkey
  participant A as Aye (MCP + Hooks)
  H->>I: Optional Passkey Verify
  H->>P: Live Edit / Line Patch
  P->>A: SSE Stream + st --agy-hook + 8a-mcp
  A->>P: Co-Edit Markdown Section
```

---

## 📝 Live Public Scratchpad Notes

- [x] Launch `8a.is` in the `8b.is` / `i1.is` / `tai.is` / `id1.is` / `g8t.is` portfolio
- [x] Enable multi-user 3-way line merging & realtime SSE watching
- [x] Wire Public MCP (`https://8a.is/mcp` + `8a-mcp`) and `st --agy-hook` so the Ayes know when edits are happening
- [ ] Drop a note below or summon `@aye` to co-edit with us!
