Skip to main content

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

1

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

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

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

Ongoing Monitoring

The AI agent continuously monitors the repo for changes, re-analyzes on new commits, and auto-adjusts market positions when scores shift.

Architecture

Lapis is an npm workspaces monorepo with four core packages:
PackagePurpose
@lapis/sharedShared TypeScript types (ReportCard, scores, market types)
@lapis/ai-agentExpress server — analysis, markets, XRPL settlement
@lapis/xrpl-contractsXRPL primitives — MPT tokens, escrows, payments, wallets
@lapis/metalexMetaLex SAFE contracts on Base Sepolia — legal anchoring
The frontend (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)