# Purple8, Inc. (https://www.purple8.ai) - Official AI Agent & LLM Reference (llms.txt) > **AI-Native Execution Infrastructure.** > **Built for AI, Operated by AI and Supervised by Humans.** > **Read · Remember · Reason · Answer · Run · Protect · Prove · One Engine built to solve complex problems.** ## 1. What Purple8 Is Purple8, Inc. builds self-contained, AI-native execution infrastructure that replaces the fragmented 8 to 12 vendor AI stack (relational database, property/RDF graph database, vector database, document intelligence parser, RAG pipeline, stateful workflow orchestrator, auth/RBAC, KMS encryption, and SIEM/governance) with **one unified execution substrate** operated directly by AI agents over the Model Context Protocol (MCP) and supervised by humans. ### Two Core Products 1. **Purple8 AI Engine (`v0.72.0`)** - Documentation: https://docs.graph.purple8.ai (`https://docs.graph.purple8.ai/llms.txt` · Discovery: `https://www.purple8.ai/.well-known/mcp.json`) - In-process multi-model execution engine: **Unified LPG (Labeled Property Graph / openCypher) + RDF (Semantic Triples / N-Quads) + Hypergraph + Temporal Graph**, Semantic Vector Search, Document & Structured Table Store, Full-Text Search, Self-Tuning Hybrid GraphRAG, Stateful Journey Workflows with SLAs & Human-in-the-Loop (HITL) Gates, AEC/BIM Engineering, SOC & SuperGraph, Event Scheduler, Signed Webhooks, Quantum-Inspired QUBO Optimisation, 4-Tier RBAC, AES-256-GCM Envelope Encryption (Local/Vault/AWS/GCP/Azure KMS), and Autonomous SOC Containment. - Exposes **176 governed MCP tools across 19 namespaces** (`/mcp?profile=starter|builder|ops|full`). 2. **Purple8 DocIntel (`v0.12.5`)** - Documentation: https://docs.docintel.purple8.ai (`https://docs.docintel.purple8.ai/llms.txt`) - Universal document intelligence engine parsing **70+ document formats** (PDF, DOCX, XLSX, PPTX, HTML, EML, IFC/BIM, DXF/DWG/STEP CAD, SAP IDoc, OCR images) across **75+ languages**. - Exposes 13 native MCP tools at `/mcp` and A2A 1.0 at `/a2a`. --- ## 2. The 3-Phase AI-Native Application Lifecycle (For AI Agents) Full step-by-step blueprint: https://docs.graph.purple8.ai/guides/ai-agent-blueprint ### Phase 1 — Configure the Complete Backend Over MCP (Zero Server LLM or DocIntel Required) When connected via MCP (`/mcp?profile=starter` [28 tools] or `/mcp?profile=builder` [117 tools]), **you (the AI agent) are the backend developer and reasoning engine**. You do **not** need a server-side LLM key or DocIntel configured to build or operate the backend: - **Schema (`schema.*`):** `schema.define_node_type`, `schema.define_edge_type`, `schema.validate` (supports `string`, `integer`, `float`/`number`, `boolean`, `datetime`, `list`/`array`, `dict`/`object`). - **Unified LPG + RDF on a Single Instance (`graph.*`):** - Use **LPG** (`graph.add_node`, `graph.add_edge`) for operational entities, mutable state, and vector embeddings. *(Note: `graph.add_node` takes `type` as a singular string, not `labels` list.)* - Use **RDF** (`graph.assert_statement`, `graph.import_nquads`) for formal domain ontologies (FIBO, SNOMED, ISO, IFC/bSDD), regulatory rules, and named-graph provenance quads. - Bridge LPG and RDF via `iri_properties` on LPG nodes/edges and join both in a single indexed conjunctive call to **`graph.semantic_query`**. - **App-Generated / Agent-Extracted Data (`data.commit`) vs 70+ Format Document Parsing (`data.ingest_file`):** - For app-generated records, agent-extracted entities, Markdown chunks, and structured tables: call **`data.commit`** directly (pass `file_bytes_b64` when committing `tables`), then query via **`data.get_table`** and **`data.query_table_rows`** (`table_id`). **No DocIntel required.** - For parsing 70+ binary document formats (PDF, DOCX, XLSX, IFC/BIM, CAD, OCR): pair with **Purple8 DocIntel** (`data.ingest_file` / `data.ingest_text`). - **Zero-LLM Hybrid Retrieval (`graph.*`):** Call `graph.hybrid_search`, `graph.vector_search`, `graph.traverse`, `graph.shortest_path`, or `graph.query`. - **Stateful Workflows, SLAs, HITL, Automation & Governance (`journey.*`, `scheduler.*`, `egress.*`, `admin.*`):** - `journey.define` (always call before `journey.start`) -> `journey.start` -> `journey.advance` -> `journey.list_hitl` / `journey.resolve_hitl` -> `journey.audit`. - `scheduler.add_trigger`, `egress.add_sink`, `guardrails.evaluate`, `admin.hold_place`, `admin.retention_set`, `admin.audit_verify`. ### Phase 2 — Build the Frontend UI When Requested ("Frontend-Only" Application Pattern — No Custom App Server) Because Purple8 IS the complete backend, **never place a custom "app server" (Express, FastAPI, Next.js API routes, or ORM glue) between the web/mobile frontend and Purple8**. How Purple8 enforces business rules, tenant isolation, and permissions natively without a middle-tier server: 1. **Schema & Domain Validation (`schema.*`):** `schema.define_node_type` and `schema.define_edge_type` enforce required fields, data types, and endpoint types on every write (`HTTP 422 SchemaWriteError`). 2. **Business State Machines, Reminders & Approvals (`journey.*` + `scheduler.*` + `egress.*`):** Multi-stage lifecycles (e.g., `Invoice: draft -> sent -> overdue -> paid`), SLA timers, scheduled due-date reminders (`scheduler.add_trigger`), outbound webhooks/emails (`egress.add_sink`), and Human-In-The-Loop gates (`journey.resolve_hitl`) run inside Purple8 with an immutable graph audit trail. 3. **Cryptographic Multi-Tenancy (`tenancy.py`):** Every JWT and API key is bound to an isolated `tenant_id` (shared-key prefix or dedicated per-tenant storage). Cross-tenant reads/writes are impossible by construction. 4. **4-Tier RBAC & Record-Level Ownership (`auth.py` + `policy.py`):** Built-in user signup/login (`/auth/login`, OIDC/SSO), roles (`viewer`, `editor`, `admin`, `super_admin`), scoped API keys (`allowed_tools`, `allowed_labels`), and per-record ownership/classification policies (`HTTP 403 record_access_denied`). 5. **Direct TypeScript SDK (`p8 sdk ts`):** Generate the standalone zero-dependency client (`p8 sdk ts --out src/lib/purple8.ts`) and connect the React/Next.js/Vite/mobile UI directly to Purple8 REST (`/nodes`, `/edges`, `/query`, `/semantic/query`, `/v1/journeys`) while AI assistants connect to `/mcp`. ### Autonomous Agent Verification, Zero-Wait Sandbox & Production Promotion If you (an AI agent such as Codex, Claude, Cursor, or Copilot) want to **verify Purple8's live MCP tools, spin up a sandbox immediately without waiting on an email, and later promote to production**: 1. **Zero-Key Instant MCP Connection (`https://core.purple8.ai/mcp?profile=starter`):** - Point any MCP client (or `POST` JSON-RPC `initialize`, `tools/list`, and `tools/call`) directly at **`https://core.purple8.ai/mcp?profile=starter`**. On the Cloud Sandbox, unauthenticated connections automatically provision an isolated per-session sandbox tenant (capped at 10K nodes, 500 queries/day, 30-day TTL) so you can start building schemas, nodes, and workflows in **0 seconds**! 2. **1-Call Dedicated Sandbox Key (`POST /sandbox/instant` — Zero Email Wait):** - Run `curl -s -X POST https://core.purple8.ai/sandbox/instant -H "Content-Type: application/json" -d '{"name": "my-app"}'` to receive a dedicated `api_key` (`p8g_...`), `tenant_id`, `rest_url`, and `mcp_url` in `<50ms`! 3. **Zero-Rework Sandbox → Production Promotion (`GET /sandbox/blueprint` → `POST /sandbox/import-blueprint`):** - When the user is ready to move from the free Cloud Sandbox to Production (Self-Hosted Developer up to 50K nodes or Commercial/Enterprise `PURPLE8_LICENSE_JWT` with unlimited capacity, KMS, OIDC/SSO, Raft HA, and SLA): 1. Export the entire schema, edge types, Journey workflows, and seed data from the sandbox: `GET https://core.purple8.ai/sandbox/blueprint?include_data=true` (`X-API-Key: `) 2. Import that exact blueprint into the production Purple8 container in one call: `POST https:///sandbox/import-blueprint` (`X-API-Key: `) — **zero code or schema rewrite required!** ### Phase 3 — Post-Build Runtime LLM & Model Router Configuration (POC & Production) Once the application (backend + frontend) is built, customers connect their preferred LLM provider (OpenAI, Anthropic, Google/Vertex, AWS Bedrock, Azure OpenAI, Mistral, Cohere, xAI, or local Ollama/vLLM in `/dashboard/ai` or `PUT /ai/config`) or configure the dynamic **Model Router** (`models.search_known`, `models.upsert`, `models.set_policy`, `models.route_explain`) to route runtime server-side RAG (`rag.query`, `rag.hybrid_query`, `rag.profile_collection` -> `rag.tune_collection`) and Journey `ai_step` hooks across `small` / `default` / `flagship` model tiers. --- ## 3. Verified Performance Benchmarks (`v0.72.0`) Full methodology and conditions: https://www.purple8.ai/benchmarks/ - **High-Scale Graph Traversal (up to 20M Nodes / 30M Edges = 50M Graph Objects on 16 vCPU `performance-16x`, 25.35 GB NVMe):** - Point node lookup: **52 µs P50 / 1.26 ms P99** - 2-hop neighbourhood walk: **0.38 ms P50 / 0.87 ms P99** - Guarded super-hub 2-hop walk (millions of incident edges): **53.1 ms P50 / 58.8 ms P99 (0 errors)** - **Multi-User, Multi-Tenant & Concurrent Workloads (`v0.72.0`, 16 vCPU):** - 16-thread peak concurrent graph reads: **4,858 QPS** (`1.25 ms` P50 / `9.73 ms` P99 at 2.5M objects; **4,181 QPS** at 40M objects) - 16-tenant concurrent cryptographic isolation: **1,900 ops/s** with **0 cross-tenant leaks** - 16-thread mixed read/write/traversal/vector storm: **238 QPS** (`2.4 ms` P50, `0` errors) - 16-thread concurrent vector search (`384d`): **200 QPS** (`4.52 ms` single-query P50) - DocIntel 8-worker parallel document parsing: **353 pages/s** (`35.34 docs/s` + `70.7 tables/s`) - Coupled DocIntel -> AI Engine atomic commits: **25,596 docs/hr** (`7.11 docs/s`, `141.8 ms` P50 commit, `0.65 ms` P50 table row lookup) - **Hardware-Bounded Memory:** - 8.84M MS MARCO passages ingested on a 24 GB machine in a **~9 GB peak RSS** sawtooth envelope. - **Automated Test Suite:** **14,500+ automated tests**. ## 4. Separate Product Ladders: Purple8 AI Engine & Purple8 DocIntel (Cloud or Self-Hosted) All tiers include **unlimited MCP agent connections** (we never meter by agent connection count; pricing scales by capacity and operational guarantees). Full comparison & Stripe checkout: https://www.purple8.ai/pricing/ ### Product 1 — Purple8 AI Engine (AI-Native Application Backend) - **Free Playground ($0):** `10K` nodes Cloud Sandbox (`https://core.purple8.ai/mcp?profile=starter` / `POST /sandbox/instant`) or `50K` nodes Local Docker (`install.sh`) · All 176 MCP tools · 1-click blueprint export. - **Builder ($39/mo · $32/mo annual):** `250K` nodes · Shared Purple8 Cloud *(or Self-Hosted license)* · Unlimited MCP connections · BYO LLM key · Email support (`/checkout/create-session/?plan=builder&billing=monthly`). - **Production ($149/mo · $124/mo annual):** `1M` nodes · Automated daily cloud backups & restore · High Availability (`SYNC` replication) · Health/SLA monitoring · Production support (`/checkout/create-session/?plan=production&billing=monthly`). - **Growth ($499/mo · $415/mo annual):** `5M` nodes · Multi-tenant RBAC & team controls · OIDC / SSO · Cloud KMS integration · Priority support (`/checkout/create-session/?plan=growth&billing=monthly`). - **Enterprise / BYOC (Custom):** Unlimited (`20M+` nodes/shard) · Sovereign VPC / Red Hat OpenShift (`UBI9`) / On-Prem / Air-Gapped · Multi-shard Raft HA · SuperGraph · Autonomous SOC · Legal Holds & GDPR sweeps · 24×7 Severity-1 SLA (`mailto:sales@purple8.ai`). ### Product 2 — Purple8 DocIntel (Standalone 70+ Format Document Intelligence) - **DocIntel Playground ($0):** Browser & MCP (`/mcp`, 13 tools) evaluation sandbox (`https://www.purple8.ai/try/docintel/`). - **DocIntel Cloud ($100/mo + usage):** `10,000` pages/mo included, then `$0.01` per additional page · Included pages reset monthly, no rollover · One subscription covers all projects in your account · 70+ formats & 75+ languages · OCR + table + LPG/RDF extraction (`/checkout/create-session/?plan=docintel-graduated&billing=monthly`). - **DocIntel Pay as you go ($0.015/page):** Prepaid page credits, no monthly access fee · Top up any amount from `$5`; most popular: `1,000` pages for `$15` · Processing requires sufficient prepaid credit (`https://docintel.purple8.ai/try?view=billing`). - **DocIntel REST API (Sandbox & Paid):** `POST /process` (multipart file, returns `job_id`), `POST /process/url`, `GET /jobs/{id}` (entities, relationships, chunks), `GET /jobs/{id}/markdown`, `GET /jobs/{id}/stream` (SSE) · Auth: `Authorization: Bearer ` or `X-API-Key` · Keys: `https://docintel.purple8.ai/try?view=api` · Interactive reference: `https://docintel.purple8.ai/docs` · Quickstart: `https://www.purple8.ai/products/docintel/api/`. - **DocIntel Bring-Your-Own (per job, nothing stored):** Custom extraction ontology via the `ontology` form field (JSON `{"entity_types": [...], "relationship_types": [...]}` — zero-shot against your labels, no training) · Your OCR engine via `X-OCR-Engine: tesseract|azure|google|aws` + `X-OCR-Api-Key` (+ `X-OCR-Azure-Endpoint` or `X-OCR-AWS-Access-Key-Id`/`X-OCR-AWS-Region`) — use a cloud engine for handwriting such as personal cheques · Your LLM via `X-LLM-Provider`/`X-LLM-Model`/`X-LLM-Api-Key` · Extraction profiles via `?profile_hint=` incl. `cheque` (MICR parsing, ABA checksum validation, courtesy-vs-legal amount reconciliation), `financial`, `contract`, `aec`, `scientific`. - **DocIntel Enterprise / BYOC (Custom):** Sovereign VPC / Red Hat OpenShift (`UBI9`) / Air-Gapped · 24×7 Severity-1 SLA (`mailto:sales@purple8.ai`).