Appearance
Vela LabsInternal Knowledge Base
Everything you need to understand VelaPay — vision, architecture, decisions, milestones, and investor preparation.
Everything you need to understand VelaPay — vision, architecture, decisions, milestones, and investor preparation.
Project: VelaPay — privacy-first subscription billing protocol on Solana.
Current milestone: v1.8 Advanced Billing Features — all 3 phases (45–47) verified complete. 28 plans, 69 requirements satisfied.
Total shipped: 8 milestones fully shipped (v1.0–v1.7), v1.8 verified complete. 47 phases, 206+ plans, 529+ commits since March 29, 2026.
Workspace: 11 directories in vela-labs — 9 product repos + internal-wiki + .planning ops layer. Every repo has an independent deploy lifecycle. The workspace runs on Bun (TypeScript repos), Anchor 0.32.1 (Rust), and Cloudflare (infra backbone).
What matters most: The transfer-hook mandate system lets merchants pull exactly what was agreed — and nothing more. If that breaks, everything breaks.
These pages prepare the narrative, numbers, and competitive positioning for investor conversations.
| Page | What you'll find |
|---|---|
| One-Pager → | Single-page investment thesis — problem, solution, traction, ask |
| Investor FAQ → | Anticipated questions with rehearsed answers |
| Talking Points → | Key messages ranked by conversation type |
| Competitive Landscape → | Who else is trying recurring payments on Solana and why they fall short |
| Market Thesis → | Why subscription billing on-chain is a $275B+ opportunity with zero incumbents |
| Value Proposition → | What VelaPay does that nothing else can |
The product is a billing primitive. These pages explain how it works end-to-end.
| Page | What you'll find |
|---|---|
| Project Vision → | Why Vela exists, what it enables, where it's going |
| Architecture → | Full system overview — 4-layer stack, 9 repos, dual-program protocol |
| Protocol Design → | Anchor program internals — mandate PDAs, transfer hook, credentials, streaming |
| Billing Flows → | How money actually moves — periodic pulls, streams, usage metering, agent budgets |
| Data Model → | On-chain accounts + D1 tables + event schemas |
The project has shipped 8 milestones in 19 days. These pages tell the story.
| Page | What you'll find |
|---|---|
| Milestone Overview → | Every milestone — status, dates, phase counts, key accomplishments |
| v1.0 Foundation → | Protocol core, SDK, dashboard, landing page, docs |
| v1.1 Arcium Privacy Layer → | Wrapped USDC, transfer hooks, keeper automation, private analytics |
| v1.2 Protocol Admin Dashboard → | Admin auth, monitoring, emergency controls, observability |
| v1.3 Merchant Login UX → | Email-first auth, Google SSO, org management, 2FA |
| v1.4 Agent Mandates → | Scoped agent spending, x402 middleware, CLI |
| v1.5 Hosted Checkout & Billing → | Checkout, invoicing, portal, pricing tables, analytics |
| v1.6 Docs Revamp → | 60-page documentation overhaul, custom Starlight theme |
| v1.7 Protocol Modularity → | Versioned accounts, TokenConfig registry, upgradeable hook, SDK PDAFactory |
| v1.8 Advanced Billing Features → | Streaming engine, plan upgrades, multi-token, webhook SDK, staging closure |
| Lessons Learned → | What worked, what didn't, and what we'd change |
| Process Evolution → | How the development process evolved across milestones |
The detailed technical documentation for building on or operating VelaPay.
| Page | What you'll find |
|---|---|
| Stack Overview → | Full technology choices per repo with rationale and version pinning |
| vela-protocol → | Anchor program internals, instruction set, account layout |
| vela-sdk → | TypeScript SDK API reference, CLI commands, PDAFactory |
| vela-dashboard → | Merchant app architecture, auth, API routes, D1 schema |
| vela-admin → | Internal ops — monitoring, emergency controls, audit trail |
| vela-checkout → | Hosted checkout at pay.velapay.com, payment links, invoices |
| vela-portal → | Subscriber self-service at portal.velapay.com |
| vela-web → | Landing page at velapay.com |
| vela-docs → | Developer documentation at docs.velapay.com |
| vela-widget → | Embedded checkout loader + iframe checkout app |
| Decisions → | Architecture Decision Records (ADRs) |
| Planning Status → | Current execution state, milestone history, performance metrics |
| Directory | Role | Stack | Infra |
|---|---|---|---|
vela-protocol | Anchor dual-program workspace for mandates, billing, transfer-hook enforcement | Anchor 0.32.1 (Rust) | Solana devnet |
vela-sdk | Bun-built TypeScript SDK and CLI published as @vela/sdk | TypeScript, Bun | npm |
vela-dashboard | Merchant dashboard — plans, subscribers, analytics, webhook indexing | Vite + React + TanStack Router/Query + Hono + D1 | Railway + Cloudflare |
vela-admin | Internal ops dashboard — monitoring, emergency controls, audit trail | Hono + React + D1 | Cloudflare Workers |
vela-checkout | Hosted checkout at pay.velapay.com + payment links + invoices | Hono + React + D1 | Cloudflare Workers |
vela-portal | Subscriber self-service portal at portal.velapay.com | Hono + React + D1 | Cloudflare Workers |
vela-web | Public landing page at velapay.com | Astro 6.1 | Cloudflare Workers |
vela-docs | Developer documentation at docs.velapay.com | Astro + Starlight | Cloudflare Workers |
vela-widget | Embedded checkout loader + iframe checkout app | TypeScript, Bun | CDN + Cloudflare Workers |
| Milestone | Phases | Plans | Shipped | Days |
|---|---|---|---|---|
| v1.0 Foundation | 5 | 20 | 2026-03-31 | 2 |
| v1.1 Arcium Privacy Layer | 8 | 26 | 2026-04-02 | 2 |
| v1.2 Protocol Admin Dashboard | 10 | 36 | 2026-04-06 | 4 |
| v1.3 Merchant Login UX | 3 | 13 | 2026-04-07 | 1 |
| v1.4 Agent Mandates | 2 | 13 | 2026-04-07 | 1 |
| v1.5 Hosted Checkout & Billing | 7 | 37 | 2026-04-09 | 2 |
| v1.6 Docs Revamp | 4 | 16 | 2026-04-10 | 1 |
| v1.7 Protocol Modularity | 5 | 29 | 2026-04-15 | 3 |
| v1.8 Advanced Billing Features | 3 | 16+ | 2026-04-17 | 2 |
Total: 47 phases, 236+ plans, ~18 days of active development.
| Metric | Value |
|---|---|
| Commits since March 29 | 529+ |
| Milestones shipped | 8 (v1.0–v1.7 complete, v1.8 verified) |
| Total phases executed | 47 |
| Total plans executed | 206+ |
| Total agent execution time | ~36 hours |
| Average plan duration | ~15 minutes |
| Repos in workspace | 9 product repos + 2 support (webhook, synthetic) |
| Total requirements validated | 69 in v1.8 alone |
VelaPay runs on a 4-layer architecture:
Layer 4: Applications — Dashboard, Portal, Checkout, Admin, Web, Docs, Widget
Layer 3: Revenue Finance — MRR Oracle, Lending, Marketplace (future)
Layer 2: Billing Engine — Mandate Registry, Stream Engine, Usage Meter, Keeper Network
Layer 1: Protocol Core + Privacy — Vela Mandate (Transfer Hook) + Arcium MXE + Credentials
Base: Solana Token-2022, Arcium MXE Network, Helius RPCThe deepest architectural choice is the dual-program split: vela-protocol (billing state transitions) and vela-transfer-hook (transfer-time enforcement). The transfer hook must be isolated because it runs during every transfer_checked — any bug either lets merchants steal or blocks legitimate payments.
See Architecture → for the full system design.
VelaPay lets on-chain businesses charge recurring payments — monthly pulls, per-second streams, usage metering, agent budgets — with all billing logic running on encrypted data via Arcium MPC. Merchants create plans, subscribers authorize mandates, keepers execute pulls, and the transfer hook enforces that exactly what was agreed gets pulled — nothing more. No one (validators, competitors, chain analysts) ever sees business metrics. The product spans a merchant dashboard, subscriber portal, hosted checkout, embedded widgets, developer documentation, and an internal admin console.
| Need | Go to |
|---|---|
| What is VelaPay and why does it exist? | Project Vision → |
| How is the codebase organized? | Workspace Map → |
| What's the current execution state? | Planning Status → |
| How does the system work technically? | Architecture → |
| What technology choices were made? | Stack Overview → |
| What has shipped and when? | Milestone History → |
| Investor preparation materials | One-Pager → |
| Competitive positioning | Competition → |
Vela is the primitive. VelaPay is the product.
The way Token-2022 is the primitive for tokens and Squads is the primitive for multisig, Vela becomes the primitive for recurring value transfer on Solana. The product story spans merchant tools, admin ops, subscriber portals, and checkout UX — but the system still lives or dies on the same core property: enforce the mandate at the token-transfer boundary.
The workspace is built around privacy-first recurring payments on Solana using Token-2022 transfer hooks for scoped enforcement and Arcium MPC for encrypted billing logic. Phase 0 proved the billing primitive standalone. Phase 1 layered in Arcium privacy. Phase 2 added operational surfaces. Everything from v1.3 onward has been building product completeness on top of the same unshakeable foundation.
This wiki is grounded in these primary sources. When in doubt, .planning/ artifacts are more current than root docs or repo READMEs.
.planning/PROJECT.md — canonical current-state summary and key decisions.planning/STATE.md — current execution state with machine-readable frontmatter.planning/ROADMAP.md — complete milestone and phase history.planning/REQUIREMENTS.md — product requirements with validation state.planning/MILESTONES.md — milestone completion log with accomplishmentsThis internal wiki is built with VitePress and deployed to Cloudflare Workers. It serves as the navigable knowledge base for the entire VelaPay workspace — covering investor preparation, product understanding, technical architecture, development history, and operational planning.
The wiki is maintained alongside the codebase and should be updated when:
For the public-facing documentation, see docs.velapay.com (powered by Astro + Starlight in vela-docs/).