Developer
Self-Hosting
Run Auron locally or deploy to Vercel. The main app lives at apps/web. The docs site at apps/docs.
Local setup
bash
git clone https://github.com/anirudhh206/auron
cd auron/apps/web
npm install
cp .env.example .env.local
npm run devThe dev server starts at http://localhost:3000. With only the required env vars set, the app runs in demo mode — on-chain verification still runs against devnet, but the final INR payout is simulated.
Database setup
Auron uses Supabase (Postgres). Run the migrations in order in the Supabase SQL Editor:
bash
# Initial schema — transactions, settlements, status_history, contacts, api_keys
apps/web/lib/db/schema.sql
# Migration 001 — receipt hash + refund columns
apps/web/lib/db/migration_001_receipt_refund.sqlWARNING
Row-level security is enabled on all tables by default. Make sure you are using the service role key (
SUPABASE_SERVICE_ROLE_KEY) in server-side routes — the anon key will fail most write operations.Environment variables
Required — basic functionality
Required — real settlements
Infrastructure
Monitoring & security
Feature flags
Vercel deployment
bash
# Deploy the main app
cd apps/web
vercel --prod
# Deploy the docs (separate Vercel project)
cd apps/docs
vercel --prodConfigure Vercel Cron in vercel.json for the settlement and reconciliation workers:
apps/web/vercel.json
{
"crons": [
{
"path": "/api/workers/settlement",
"schedule": "*/30 * * * * *"
},
{
"path": "/api/workers/reconcile",
"schedule": "0 2 * * *"
}
]
}NOTE
The settlement worker runs every 30 seconds to retry failed settlements. The reconciliation worker runs daily at 02:00 UTC to fix stuck payments and detect provider mismatches.
Live activation — OnMeta
OnMeta is a FIU-registered crypto off-ramp under India's VDA framework. KYB is required for production settlements.