This repository contains a fully functional prototype of a Metaweb-inspired coordination layer enabling human-avatar (agent) interaction with community-aware policies, messaging, and presence tracking.
- Frontend: ✅ COMPLETE - React sidebar overlay, packaged as a browser extension. Provides chat, community selection, visibility layer, and authentication.
- Backend: ✅ COMPLETE - Node.js/Express, modular controllers/routes/services, with endpoints for auth, chat, communities, interactions, policy, and blockchain logging (Solana, stubbed).
- Database: 🔄 SCAFFOLDED - PostgreSQL (via Prisma ORM), with tables for users, sessions, communities, interactions, messages, vault, avatars, etc.
- TEE & Agents: 🔄 STUBBED - Stubs for Trusted Execution Environment (TEE) and agent orchestration (Eliza, Swarm). MCP protocol planned.
- Frontend: React, packaged as a Chrome extension (sidebar overlay)
- Backend: Node.js (Express), modular structure
- Database: PostgreSQL (Prisma ORM) - schema ready
- Blockchain: Solana (logging, stubbed)
- TEE/Agents: Stubs for Eliza, Swarm, MCP
/client → React sidebar extension (Canopi overlay shell)
src/ → Sidebar, overlay logic, auth stubs
public/ → manifest.json, contentScript.js
build/ → Built extension (after npm run build)
/controllers/ → API controllers (auth, poh, chat, etc.)
/routes/ → Express route handlers
/services/ → Business logic, blockchain, TEE, agents
/prisma → Prisma schema, migrations
app.js → Main server entry point
package.json → Root dependencies
# Install root dependencies (backend)
npm install
# Install frontend dependencies
cd client && npm install# From root directory
npm start
# Server will run on http://localhost:3001# Build the React app
cd client && npm run build- Go to Chrome > Extensions > Load Unpacked
- Select
client/buildas the extension root - The sidebar overlay and floating icon will appear on any website
- Authentication: Click the floating 🛡️ icon, then click "Auth" in the sidebar
- Communities: Select a community from the "Community Selector" tab
- Chat: Send messages in the "Live Chat" tab
- Visibility: Manage privacy settings in the "Visibility Layer" tab
- ✅ Frontend: Sidebar overlay as browser extension (COMPLETE)
- ✅ Auth: Google OAuth, Fractal ID (stubs implemented)
- ✅ Backend: Modular endpoints for all features (COMPLETE)
- 🔄 Database: Prisma schema ready (to connect)
- 🔄 Blockchain: Solana logging (stubbed)
- 🔄 TEE/Agents: Stubs for Eliza, Swarm, MCP (to implement)
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
Health check |
| POST | /auth/login |
User login (mock) |
| GET | /auth/me |
Session info |
| GET | /communities |
List communities |
| POST | /communities/select |
Select community |
| POST | /chat/message |
Send message |
| GET | /chat/history |
Fetch chat messages |
| POST | /interaction/log |
Log interaction |
| Fork, PR, or build alongside this prototype. For Meta-Layer Initiative info: |
This is an early prototype — use and remix to explore next-gen coordination.