- Real-time PnL tracking with customizable performance metrics
- Interactive dashboards with drag-and-drop widget layouts
- Comprehensive trade analysis with decile statistics and pattern recognition
- Customizable chart views supporting multiple timeframes and indicators
- Tradovate sync for real-time trade data synchronization
- Rithmic sync via proprietary service integration
- Built-in integrations for FTMO, ProjectX, ATAS, and Interactive Brokers (IBKR)
- AI-powered file parsing for any broker format when specific integration doesn't exist yet
- Intelligent field mapping for seamless data imports
- Sentiment analysis of trading patterns and market conditions
- Automated trade journal with AI-generated insights
- Pattern recognition for identifying trading opportunities
- Rich text editor with image resizing and table support for structured journaling
- Full i18n support with English and French translations
- Extensible translation system using next-international
- Locale-aware formatting for dates, numbers, and currencies
- RTL language support ready for future expansion
- Next.js 15 with App Router for optimal performance
- React 19 with latest concurrent features
- TypeScript for type-safe development
- Prisma ORM for database operations
- Supabase for authentication and real-time features
- Framework: Next.js 15 (App Router)
- UI Library: React 19 with TypeScript
- Styling: Tailwind CSS with custom design system
- Animations: Framer Motion with performance optimizations
- State Management: Zustand stores + React Context
- Internationalization: next-international
- API: Next.js API Routes + Server Actions
- Database: PostgreSQL via Supabase
- ORM: Prisma with type-safe queries
- Authentication: Supabase Auth (Discord OAuth, Email)
- Real-time: WebSocket connections for live data
- Payments: Stripe integration with webhooks
- AI/ML: OpenAI API for analysis and field mapping
- Storage: Supabase Storage for file uploads
- Broker Syncs: Tradovate API, Rithmic proprietary service
- Platform Integrations: FTMO, ProjectX, ATAS, Interactive Brokers (IBKR)
- Deployment: Vercel-optimized with edge functions
- Package Manager: Bun (recommended) or npm
- Linting: ESLint with Next.js config
- Type Checking: TypeScript strict mode
- Database Migrations: Prisma migrations
Before you begin, ensure you have the following:
- Node.js 20+ or Bun (latest version recommended)
- Git for version control
- PostgreSQL database (or use Supabase free tier)
- Supabase account (free tier available)
- Stripe account (for payment processing)
- OpenAI API key (for AI features)
- Discord application (for OAuth authentication)
git clone https://github.com/hugodemenez/deltalytix.git
cd deltalytix
npm install # or bun installCreate a .env.local file in the root directory with the following variables:
# Supabase Configuration
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key
# Database
DATABASE_URL=your_postgresql_connection_string
# OpenAI
OPENAI_API_KEY=your_openai_api_key
# Stripe
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key
STRIPE_SECRET_KEY=your_stripe_secret_key
STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret
# Discord OAuth
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_SECRET=your_discord_client_secret
# Application
NEXT_PUBLIC_APP_URL=http://localhost:3000# Generate Prisma client
npx prisma generate
# Push schema to database (for development)
npx prisma db push
# Or run migrations (for production)
npx prisma migrate dev
# Seed the database (optional)
npx prisma db seednpm run dev
# or
bun devOpen http://localhost:3000 to view the application.
- Create a new Supabase project
- Enable Discord OAuth provider in Authentication settings
- Configure Row Level Security (RLS) policies
- Set up storage buckets for file uploads
- Configure real-time subscriptions for live data
- Create a Stripe account and get API keys
- Set up webhook endpoints for payment processing
- Configure products and pricing plans
- Test webhook integration in development
- Create a Discord application in the Discord Developer Portal
- Navigate to OAuth2 settings and add redirect URI:
http://localhost:3000/api/auth/callback/discord - Copy Client ID and Client Secret to environment variables
- Enable the
identifyandemailscopes for user authentication
- Get an API key from OpenAI
- Configure usage limits and billing
- Test API connectivity with the field mapping feature
deltalytix/
βββ app/ # Next.js App Router
β βββ [locale]/ # Internationalized routes
β β βββ dashboard/ # Main dashboard pages
β β βββ admin/ # Admin panel
β β βββ business/ # Business features
β β βββ (landing)/ # Marketing pages
β βββ api/ # API routes
β βββ ai/ # AI-powered endpoints
β βββ auth/ # Authentication
β βββ stripe/ # Payment processing
β βββ cron/ # Scheduled tasks
βββ components/ # Reusable React components
β βββ ui/ # Base UI components (Radix UI)
β βββ ai-elements/ # AI-powered components
β βββ emails/ # Email templates
β βββ tiptap/ # TipTap editor components
β βββ magicui/ # Custom UI components
βββ server/ # Server-side business logic
βββ store/ # Zustand state management
βββ prisma/ # Database schema and migrations
βββ locales/ # Internationalization files (EN/FR)
βββ lib/ # Utility functions
βββ hooks/ # Custom React hooks
βββ context/ # React Context providers
βββ docs/ # Feature documentation
β βββ JOURNAL_EDITOR.md # Journal editor feature guide
βββ content/ # MDX content for updates
- Use TypeScript strict mode
- Follow Next.js best practices
- Implement proper error handling
- Write self-documenting code
Use the useI18n hook for all user-facing text:
import { useI18n } from "@/locales/client"
const t = useI18n()
// Basic translation
<CardTitle>{t('propFirm.title')}</CardTitle>
// Translation with variables
<DialogTitle>{t('propFirm.configurator.title', { accountNumber: account.accountNumber })}</DialogTitle>- Use Zustand stores for client-side state
- Use React Context for complex mutations
- Prefer Server Actions for data mutations
- Use API routes for public data with caching
- API Routes: For public data that benefits from caching
- Server Actions: For mutations and private operations
- Real-time: Use Supabase subscriptions for live updates
We welcome contributions to Deltalytix! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and test thoroughly
- Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
- Follow the existing code style and conventions
- Add tests for new features
- Update documentation as needed
- Ensure all translations are included
- Test on both desktop and mobile
- Use GitHub Issues for bug reports
- Include steps to reproduce
- Provide system information
- Add screenshots if applicable
- Use GitHub Discussions for feature ideas
- Check existing issues before creating new ones
- Provide detailed use cases and benefits
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
- β You can use, modify, and distribute this software for non-commercial purposes
- β You must give appropriate credit and provide a link to the license
- β You can create derivative works for non-commercial use
- β You cannot use this software for commercial purposes
- β You cannot distribute this software commercially without permission
This license allows you to use Deltalytix for personal, educational, and non-commercial purposes. You can modify and share the code as long as you give proper attribution and don't use it commercially.
For commercial licensing options, please contact us.
Read the full license text in the LICENSE file.
- π¬ Discord Community: Join our Discord for real-time support
- π GitHub Discussions: Ask questions and share ideas
- π Issue Tracker: Report bugs and request features
- π Documentation: Check our comprehensive guides
- β Star the repository to show your support
- π Watch for releases to get notified of updates
- π¦ Follow us on social media for announcements
Thank you to all the contributors who help make Deltalytix better!
This project builds upon many excellent open source libraries:
- Next.js - The React framework
- Supabase - Backend as a service
- Prisma - Database toolkit
- Tailwind CSS - Utility-first CSS
- Framer Motion - Animation library
- Radix UI - Accessible component primitives
Deltalytix was inspired by the need for better trading analytics tools in the open source community.
- Custom Dashboard Layout - Drag-and-drop widgets with flexible workspace customization
- AI-Powered Data Import - Intelligent field mapping for seamless CSV processing
- Enhanced Data Processing - Multi-platform support with encryption and accurate commission calculations
- Automatic Rithmic Integration - Direct API connection with hourly data synchronization
- Tradovate Synchronization - Real-time trade data sync with automated import
- Interactive Brokers Integration - PDF statement import system for comprehensive trade data
- AMP Integration - Connected through Rithmic sync for seamless data flow
- Subscription Plans - Flexible pricing tiers for different trader needs
- Automated Journaling System - AI-assisted trade journaling that focuses on mistakes and successes
- Collaborative AI Assistant - Notion-style peer writer for real-time trading insights and analysis
- Enhanced Journaling Experience - Session-based analysis with automated insights on trading patterns
- Market Data Integration - Databento connection for real-time market insights and context
- Advanced AI Collaboration - Direct integration of AI insights into trading workflow
- Session Analysis Tools - Automated identification of trading mistakes and successful patterns
- Performance Coaching - AI-powered suggestions based on historical trading behavior
- Third-Party Dashboard Licensing - Prop firms can embed Deltalytix directly into their platforms
- Interactive Brokers API Integration - Direct sync replacing PDF imports for real-time data
- Advanced Market Analytics - Deep market insights powered by Databento data feeds
- White-Label Solutions - Customizable platform for trading firms and educational institutions
- Community Features - Trader-to-trader insights and collaborative learning
- Advanced Risk Management - Real-time alerts and automated risk monitoring
- Portfolio Optimization Tools - Modern portfolio theory and risk-adjusted returns
- Trader-Centric Development - All features designed specifically for individual traders
- AI-Human Collaboration - Seamless integration of AI insights into natural trading workflow
- Automated Learning - Systems that help traders identify and learn from their patterns
- Market Context Integration - Connecting trading performance to broader market conditions
