Skip to content

Vela LabsInternal Knowledge Base

Everything you need to understand VelaPay — vision, architecture, decisions, milestones, and investor preparation.

Current State

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.

Wiki Sections

For Investor Preparation

These pages prepare the narrative, numbers, and competitive positioning for investor conversations.

PageWhat 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

For Understanding the Product

The product is a billing primitive. These pages explain how it works end-to-end.

PageWhat 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

For Understanding the History

The project has shipped 8 milestones in 19 days. These pages tell the story.

PageWhat 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

For Technical Reference

The detailed technical documentation for building on or operating VelaPay.

PageWhat 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

Repositories

DirectoryRoleStackInfra
vela-protocolAnchor dual-program workspace for mandates, billing, transfer-hook enforcementAnchor 0.32.1 (Rust)Solana devnet
vela-sdkBun-built TypeScript SDK and CLI published as @vela/sdkTypeScript, Bunnpm
vela-dashboardMerchant dashboard — plans, subscribers, analytics, webhook indexingVite + React + TanStack Router/Query + Hono + D1Railway + Cloudflare
vela-adminInternal ops dashboard — monitoring, emergency controls, audit trailHono + React + D1Cloudflare Workers
vela-checkoutHosted checkout at pay.velapay.com + payment links + invoicesHono + React + D1Cloudflare Workers
vela-portalSubscriber self-service portal at portal.velapay.comHono + React + D1Cloudflare Workers
vela-webPublic landing page at velapay.comAstro 6.1Cloudflare Workers
vela-docsDeveloper documentation at docs.velapay.comAstro + StarlightCloudflare Workers
vela-widgetEmbedded checkout loader + iframe checkout appTypeScript, BunCDN + Cloudflare Workers

Milestone Timeline

MilestonePhasesPlansShippedDays
v1.0 Foundation5202026-03-312
v1.1 Arcium Privacy Layer8262026-04-022
v1.2 Protocol Admin Dashboard10362026-04-064
v1.3 Merchant Login UX3132026-04-071
v1.4 Agent Mandates2132026-04-071
v1.5 Hosted Checkout & Billing7372026-04-092
v1.6 Docs Revamp4162026-04-101
v1.7 Protocol Modularity5292026-04-153
v1.8 Advanced Billing Features316+2026-04-172

Total: 47 phases, 236+ plans, ~18 days of active development.

Key Numbers

MetricValue
Commits since March 29529+
Milestones shipped8 (v1.0–v1.7 complete, v1.8 verified)
Total phases executed47
Total plans executed206+
Total agent execution time~36 hours
Average plan duration~15 minutes
Repos in workspace9 product repos + 2 support (webhook, synthetic)
Total requirements validated69 in v1.8 alone

Architecture at a Glance

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 RPC

The 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.

What VelaPay Does (In One Paragraph)

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.

NeedGo 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 materialsOne-Pager →
Competitive positioningCompetition →

Working Thesis

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.

Coverage Sources

This wiki is grounded in these primary sources. When in doubt, .planning/ artifacts are more current than root docs or repo READMEs.

  1. .planning/PROJECT.md — canonical current-state summary and key decisions
  2. .planning/STATE.md — current execution state with machine-readable frontmatter
  3. .planning/ROADMAP.md — complete milestone and phase history
  4. .planning/REQUIREMENTS.md — product requirements with validation state
  5. .planning/MILESTONES.md — milestone completion log with accomplishments
  6. Root research docs (01–10) — founding market thesis, competitive analysis, brand identity
  7. Repo manifests and READMEs — what each code repository actually contains

About This Wiki

This 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:

  • A new milestone ships (update milestone pages and planning status)
  • A significant architectural decision is made (update architecture and decision pages)
  • Investor materials change (update pitch pages)
  • New repos are added to the workspace (update workspace map)

For the public-facing documentation, see docs.velapay.com (powered by Astro + Starlight in vela-docs/).

Internal knowledge base for the Vela Labs workspace.