How mapleprivacylabs/maple works
Maple is a monorepo of related but independently operated products: the shipped Research client, SDKs, hosted sign-in, desktop Agent prototype, local proxy, and updater. A principal user workflow is using Research chat through the frontend and Maple SDK to reach OpenSecret services; the Agent prototype also offers desktop and ACP entry points to task-oriented agent sessions. The graph preserves documented product boundaries and major capabilities. Some subsystems are represented from the README and file tree rather than sampled implementation; those relationships are labeled as documented or left unlinked where wiring is not shown.
Main entry points: main.tsx TypeScript SDK · app.tsx Research frontend · desktop.rs Agent desktop · client.ts Encrypted transport
Components 20
Research client
- Research frontend
apps/maple-research/frontend/src/app.tsx - Research native app
apps/maple-research/frontend/src-tauri/src/lib.rs
Agent prototype
- Agent desktop
apps/maple-agent/app/src/desktop.rs - Agent process modes
apps/maple-agent/app/src/main.rs - Agent task service
apps/maple-agent/crates/maple-agent/src/agent/tasks.rs - Agent runtime
apps/maple-agent/crates/maple-agent/src/agent/runtime.rs - Pi coding session
apps/maple-agent/crates/pi-coding-agent/src/agent_session.rs - Agent session store
apps/maple-agent/crates/pi-coding-agent/src/store.rs - Shared local host
apps/maple-agent/app/src/host.rs - Backend facade
apps/maple-agent/app/src/backend.rs
SDK and services
- TypeScript SDK
sdk/src/lib/main.tsx - Rust SDK
sdk/rust/src/client.rs - Attestation and PCR
sdk/src/lib/attestation.ts - Encrypted transport
sdk/src/lib/transportV2/client.ts - OpenSecret services
- OpenAI-compatible proxy
proxy/src/proxy.rs - Updater service
services/updates/src/worker.ts
Hosted authentication
- Hosted sign-in site
apps/maple-auth/src/auth-site/main.tsx - Desktop OAuth transport
apps/maple-auth/src/services/desktopOAuthTransport.ts
Other components
- Maple user
Connections 18
- Maple user → Research frontend: uses
README.md - Research frontend → TypeScript SDK: initializes SDK
apps/maple-research/frontend/src/app.tsx - TypeScript SDK → Attestation and PCR: authenticates
sdk/src/lib/main.tsx - TypeScript SDK → Encrypted transport: uses transport
sdk/src/lib/main.tsx - Encrypted transport → Attestation and PCR: verifies peer
sdk/src/lib/transportV2/client.ts - TypeScript SDK → OpenSecret services: calls services
README.md - Research frontend → Research native app: runs natively
README.md - Maple user → Hosted sign-in site: signs in
README.md - Hosted sign-in site → Desktop OAuth transport: uses OAuth flow
apps/maple-auth/src/auth-site/main.tsx - Maple user → Agent desktop: uses agent
README.md - Agent desktop → Backend facade: calls backend
apps/maple-agent/app/src/desktop.rs - Backend facade → Shared local host: connects IPC
apps/maple-agent/app/src/backend.rs - Agent process modes → Agent desktop: starts desktop
apps/maple-agent/app/src/main.rs - Agent process modes → OpenAI-compatible proxy: starts proxy
apps/maple-agent/app/src/main.rs - Agent task service → Agent runtime: uses runtime
apps/maple-agent/crates/maple-agent/src/agent/tasks.rs - Pi coding session → Agent session store: persists session
apps/maple-agent/crates/pi-coding-agent/src/agent_session.rs - Maple user → Updater service: gets updates
README.md - Rust SDK → Encrypted transport: uses transport
sdk/rust/src/client.rs