An intelligent financial transaction processing and management system powered by Claude AI. Built as a multi-tenant SaaS platform for automated transaction classification, invoice processing, revenue recognition, and comprehensive financial dashboards.
- AI-Powered Transaction Classification - Automatic categorization using Claude AI with confidence scoring and pattern learning
- Smart Document Ingestion - Intelligent parsing of bank statements, CSV files, and financial documents
- Invoice Processing - PDF/OCR processing with automated data extraction using Claude Vision
- Revenue Recognition - Match invoices to transactions with AI-assisted reconciliation
- Multi-Tenant Architecture - Secure tenant isolation with role-based access control
- Cryptocurrency Support - Multi-blockchain transaction tracking with automatic price conversion
- Real-time transaction management with advanced filtering
- Sankey flow charts for cash flow visualization
- Month-end close workflow management
- Business entity management
- Workforce and payroll tracking
- Knowledge base for tenant-specific classification patterns
- Python 3.11+ with Flask
- PostgreSQL (Cloud SQL compatible)
- Claude AI (Anthropic) for intelligent processing
- Firebase for authentication
- Google Cloud Storage for file storage
- Next.js 15 with App Router and Turbopack
- TypeScript
- Tailwind CSS with shadcn/ui components
- next-intl for internationalization
- Recharts for data visualization
numerai/
├── frontend/ # Next.js frontend application
│ ├── src/
│ │ ├── app/ # App Router pages
│ │ │ ├── (auth)/ # Authentication pages
│ │ │ └── (dashboard)/ # Protected dashboard pages
│ │ ├── components/ # React components
│ │ │ ├── dashboard/ # Dashboard-specific components
│ │ │ └── ui/ # shadcn/ui components
│ │ ├── context/ # React context providers
│ │ ├── lib/ # Utility functions and API client
│ │ └── messages/ # i18n translation files
│ └── public/ # Static assets
│
├── web_ui/ # Flask backend application
│ ├── app_db.py # Main Flask application
│ ├── database.py # Database connection manager
│ ├── templates/ # Jinja2 templates (legacy UI)
│ ├── static/ # Static assets for legacy UI
│ └── services/ # Business logic services
│
├── api/ # API route modules
│ ├── auth_routes.py # Authentication endpoints
│ ├── user_routes.py # User management
│ └── tenant_routes.py # Tenant management
│
├── middleware/ # Authentication middleware
├── services/ # Shared services
├── migrations/ # Database migrations
└── main.py # Core transaction processing
- Python 3.11+
- Node.js 18+
- PostgreSQL 14+
- Anthropic API key (for Claude AI)
- Firebase project (for authentication)
- Clone the repository:
git clone https://github.com/Delta-Compute/numerai.git
cd numerai- Set up Python environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt- Set up environment variables:
cp .env.example .envRequired environment variables:
# Database
DB_TYPE=postgresql
DB_HOST=localhost
DB_PORT=5432
DB_NAME=numerai
DB_USER=postgres
DB_PASSWORD=your_password
# AI
ANTHROPIC_API_KEY=sk-ant-...
# Firebase (optional, for authentication)
FIREBASE_PROJECT_ID=your-project-id- Initialize the database:
psql -h localhost -U postgres -d numerai -f postgres_unified_schema.sql- Set up the frontend:
cd frontend
npm installBackend (Flask API):
cd web_ui
python app_db.py
# Runs on http://localhost:5001Frontend (Next.js):
cd frontend
npm run dev
# Runs on http://localhost:3000Backend:
gunicorn -w 4 -b 0.0.0.0:5001 web_ui.app_db:appFrontend:
cd frontend
npm run build
npm start| Endpoint | Method | Description |
|---|---|---|
/health |
GET | Health check |
/api/transactions |
GET | List transactions |
/api/transactions |
POST | Create transaction |
/api/invoices |
GET | List invoices |
/api/files |
GET | List uploaded files |
/api/files/upload |
POST | Upload file for processing |
/api/stats |
GET | Dashboard statistics |
All API requests require either:
X-Tenant-IDheader for tenant context- Firebase ID token in
Authorization: Bearer <token>header
# Backend tests
python -m pytest tests/
# Frontend tests
cd frontend && npm test- Python: Follow PEP 8 guidelines
- TypeScript: ESLint with Prettier
Apply migrations in order:
cd migrations
psql -h localhost -U postgres -d numerai -f <migration_name>.sqlThe project includes configuration for Google Cloud Run deployment:
# Build and deploy
gcloud builds submit --config cloudbuild.yamldocker build -t numerai .
docker run -p 5001:5001 numerai- Complete tenant isolation with
tenant_idon all data tables - No fallback tenant logic - explicit tenant context required
- Role-based access control (Fractional CFO, Tenant Admin, Employee)
- Claude AI for transaction classification with confidence scoring
- Pattern learning from user corrections
- Claude Vision for PDF/document processing
- Firebase Authentication
- PostgreSQL row-level security
- API key management via Secret Manager
- CORS configuration for frontend
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Proprietary - All rights reserved by Delta Compute.
For support, please contact the Delta team or open an issue on GitHub.