CardQL Documentation
Welcome to the CardQL documentation! CardQL is a unified payments platform built on Cloudflare Workers with GraphQL API, multi-database architecture, and advanced analytics capabilities.
Quick Links
🚀 Getting Started
New to CardQL? Start here to set up your development environment and create your first payment.
What is CardQL?
CardQL is a payments platform monorepo built on Cloudflare Workers with:
- GraphQL API for unified payment operations
- Multi-database architecture (DataQL + D1 Analytics)
- Advanced analytics with Cloudflare Analytics Engine
- Three-worker architecture for separation of concerns
- Real-time ETL pipeline for analytics
- Automated business intelligence
Key Features
🎯 Unified GraphQL API
Single GraphQL endpoint orchestrating all payment operations, analytics, and platform management.
🗄️ Two-Database Strategy
- cardql_payments_db: Payment processing, customers, merchants, gateway operations
- cardql_saas_db: Platform management, accounts, users, billing, subscriptions
⚡ Analytics Engine
- Fire-and-forget writes (~1-5ms)
- Unlimited cardinality
- SQL query support
- Real-time dashboards
🔧 Developer Experience
- TypeScript-first with full type safety
- Auto-generated GraphQL types
- Comprehensive testing utilities
- Local development with Wrangler
Platform Components
CardQL Platform
├── cardql-worker (port 8787) # Main unified GraphQL API
├── cardql-core (port 8788) # Payment database operations
├── cardql-saas (port 8789) # Platform/SaaS operations
├── Analytics Engine # Time-series analytics
├── D1 Databases # Relational data storage
└── KV Caching Layer # Performance optimizationNext Steps
Ready to build with CardQL? Here’s what to do next:
- Installation - Set up your development environment
- Quick Start - Create your first payment
- Architecture Overview - Understand the system design
- GraphQL API - Explore the API capabilities
Community & Support
- GitHub: FinHub-vc/CardQL
- Issues: Report a bug or request a feature
- Discussions: Ask questions and share ideas
Built with Nextra | Deployed on Cloudflare Pages
Last updated on