Xavi Platform API
The TypeScript and GraphQL API behind XaviWallet and Xavi Habits: money, habits, time and chores, on Render with PostgreSQL on Neon.
How it works inside
It has no screen of its own: it's the API behind XaviWallet, Xavi Habits and the iOS app. Pick a flow and step through it to see where each request goes.
Step 1 of 6
The app sends the query with its access token in the header.
About this project
It's the API behind the Xavi apps. It started in 2026 as a Node.js and TypeScript rewrite of two Laravel projects, and today it serves XaviWallet and Xavi Habits. Everything new goes through GraphQL (Apollo Server on Express), in about 34 modules, each with its own schema, resolvers, service and Zod validation: wallets, expenses, budgets, scheduled payments, credit cards, habits with streaks and relapses, activities, day plans, sleep, check-ins, household chores, notes with full-text search and more. Sessions use access and refresh tokens with rotation, and sign-up verifies the email with a code. It takes expenses from Siri and Apple Pay with a separate capture token and turns a receipt photo into an expense with the Claude API. It runs in Docker on Render, with PostgreSQL on Neon and Drizzle, and has unit and integration tests with Jest.