What is Lapis?
Lapis is an AI agent that analyzes startups and settles equity on the XRP Ledger. It scrapes GitHub repos, scores code quality and team strength using Claude, runs prediction markets for crowd consensus, and issues real equity tokens on XRPL with vesting escrows.How It Works
AI Analysis
Submit a GitHub URL. Lapis scrapes the repo (commits, contributors, languages, CI) and social signals, then runs two Claude analysis passes — a scorer and an adversarial auditor.
Prediction Market
A valuation market opens seeded by the AI’s estimate. Participants bet on what the startup is worth. The consensus valuation is the volume-weighted average of all bets.
Cross-Chain Settlement
The market closes and Lapis settles across two chains: a SAFE agreement deploys on Base Sepolia via MetaLex, MPT equity tokens are issued on XRPL with the SAFE hash embedded, vesting escrows lock shares, and platform fees are paid in RLUSD.
Architecture
Lapis is an npm workspaces monorepo with four core packages:| Package | Purpose |
|---|---|
@lapis/shared | Shared TypeScript types (ReportCard, scores, market types) |
@lapis/ai-agent | Express server — analysis, markets, XRPL settlement |
@lapis/xrpl-contracts | XRPL primitives — MPT tokens, escrows, payments, wallets |
@lapis/metalex | MetaLex SAFE contracts on Base Sepolia — legal anchoring |
apps/web) is a Next.js app at lapis.bet.
Tech Stack
- TypeScript — ES2022 with ESM modules
- Express 4 — API server with typed response wrappers
- Claude API — AI analysis and adversarial auditing
- Octokit — GitHub data scraping
- xrpl.js v4 — On-chain settlement (MPT, escrows, RLUSD)
- XRP Micropayments — Native XRPL paywall for report access
- MetaLex — SAFE agreement contracts on Base Sepolia
- Redis — Optional persistent storage (falls back to in-memory)