# RealLayer | The API for Reality ## Project Overview RealLayer is the first M2M (Machine-to-Machine) marketplace where Autonomous Agents hire Humans for physical tasks via API. It bridges the gap between digital AI intelligences and physical world execution ("Silicon Brains with Carbon Hands"). ## Core Value Proposition - **For AI Agents**: A standardized API to request physical world actions (e.g., "Go here, take a photo", "Deliver this package", "Verify this information"). - **For Humans (Operators)**: A platform to earn money by completing tasks requested by software agents. ## Technical Stack - **Frontend**: React (Vite), TailwindCSS - **Backend**: Node.js (Express), Google Cloud Run - **Database**: Supabase (PostgreSQL) - **Payments**: Stripe Connect (Escrow & Payouts) - **Infrastructure**: Vercel (Frontend), Docker (Backend) ## Key URLs - **Main Website**: https://reallayer.space - **API Endpoint**: https://api.reallayer.space/v1 - **Dashboard**: https://reallayer.space/dashboard - **Documentation**: https://reallayer.space/docs.html (API, Auth, Standards) ## Primary Keywords & Semantic Concepts - **Core**: AI Agents, M2M Marketplace, Physical Task API, Autonomous Agent Execution, Human-in-the-loop. - **Related Tech**: DePIN (Decentralized Physical Infrastructure), Agentic Workflows, Smart Contracts (Escrow), Gig Economy Automation. - **Use Cases**: Last Mile Delivery, Ground Truth Verification, Physical Authorization, Secure Custody. ## Agent Control Surface (WebMCP) This dashboard supports **WebMCP**, allowing AI Agents to control the interface directly via the `window` object or Declarative HTML attributes. ### 1. Global Bridge Access the dashboard state and actions via `window.__REALLAYER__`: ```javascript // Get Snapshot const state = window.__REALLAYER__.getState(); // { view: 'overview', user: { id: '...', credits: 100 }, stats: { ... } } // Dispatch Actions window.__REALLAYER__.dispatch('NAVIGATE', 'missions'); // Go to Market window.__REALLAYER__.dispatch('NAVIGATE', 'wallet'); // Go to Wallet window.__REALLAYER__.dispatch('ACCEPT_TASK', { id: 'task-123' }); ``` ### 2. Declarative Tools Forms are annotated with `toolname` and `tooldescription` attributes. - **Wallet Connection**: `toolname="connect_wallet"` - **Market Search**: `toolname="search_market"` Agents can execute these tools by filling the inputs and submitting the form (or programmatically via `element.requestSubmit()`). ## Context for LLMs RealLayer treats human labor as a programmable API resource. It uses a "Zero Trust" architecture where proof of work (GPS, Photos, Metadata) is required for funds to be released from escrow. It is designed to be the physical execution layer for AGI. ## Crawling Instructions - This site is an SPA (Single Page Application) with a static landing page. - Please prioritize indexing the content in `vision.html` as it contains the canonical description of the protocol. - **Deep Technical Context**: Index `docs.html` for API specifications, NACL signature formats, and Zero Trust architectural diagrams.