开源核心银行平台 - 61 个 DDD 域,支持事件源、CQRS 和以模式为先的 GraphQL API。多资产账户、交易所、借贷、合规
开源核心银行平台 - 61 个 DDD 域,支持事件源、CQRS 和以模式为先的 GraphQL API。多资产账户、交易所、借贷、合规
An open-source core banking platform built with event sourcing, domain-driven design, and modern financial patterns.
FinAegis provides the foundation for building digital banking applications. The Global Currency Unit (GCU) serves as a complete reference implementation demonstrating how to build basket currencies, governance systems, and democratic financial instruments on this platform.
FinAegis vs Zelta: FinAegis is this open-source core-banking platform. Zelta is the hosted product and mobile wallet built on top of it — so production and hosted surfaces (for example the MCP server at
mcp.zelta.app) carry the Zelta brand.
Live Demo | Documentation | Quick Start | Contributing
| Challenge | FinAegis Solution |
|---|---|
| Building financial systems from scratch | 61 domain modules |
| Audit trail requirements | Event sourcing with domain-specific event tables |
| Complex multi-step transactions | Saga pattern with automatic compensation |
| Regulatory tooling | KYC/AML integration + GDPR export/erasure (real); SOC 2 / PCI-DSS readiness tooling — not third-party certified |
| Multi-tenant SaaS deployment | Team-based tenant isolation (v2.0.0) |
| Hardware wallet security | Ledger/Trezor support with multi-sig (v2.1.0) |
| Mobile wallet backend | Biometric auth, passkeys, push notifications (v2.2.0+) |
| Privacy-preserving transactions | ZK-KYC, Merkle trees, ERC-4337 gas abstraction (v2.4.0-v2.6.0) |
| Multi-jurisdiction RegTech | MiFID II / MiCA / FATF Travel Rule report-format validators & adapters — no live regulator connectivity; not a licensed CASP/ARM (v2.8.0) |
| Cross-chain & DeFi | Bridge protocols, DEX aggregation, yield optimization (v3.0.0) |
| Modular plugin architecture | 61 domains with manifests, enable/disable, dependency resolution (v3.2.0) |
| Compliance scaffolding | SOC 2 evidence helpers + a clean PCI-DSS SAQ-A footprint (tokenized cards, no PAN stored); no certification is held (v3.5.0) |
| GraphQL API | Schema-first Lighthouse PHP, 45 domains, subscriptions (v4.0.0+) |
| Event Store v2 | Domain routing (61 domains), upcasting, migration tooling (v4.0.0) |
| Plugin Marketplace | Manager, loader, sandbox, security scanner (v4.0.0) |
| Event streaming | Redis Streams publisher/consumer, live dashboard (v5.0.0) |
| API monetization | x402 protocol: HTTP-native micropayments with USDC on Base (v5.2.0) |
| Privacy protocol | RAILGUN shield/unshield/transfer with Merkle proofs (v5.6.0); non-custodial backend migration — public-address registration, on-device engine config, signed-URL RPC proxy (v7.16.0) |
| Mobile gamification | Rewards system: quests, XP/levels, points shop, streaks (v5.7.0) |
| Fiat on/off ramp | Stripe Bridge with async webhook processing and provider-agnostic session management (v5.12.0) |
| Design system v2 | Complete frontend overhaul with consistent typography, dark heroes (v5.12.0) |
| Developer ecosystem | Plugin marketplace, developer portal, 3 official SDKs (v6.0.0) |
| Post-quantum cryptography | ML-KEM-768, ML-DSA-65, hybrid encryption with key rotation (v6.1.0) |
| Feature completeness | Card sync webhooks, bank transfer state machine, tenant provisioning (v6.1.1) |
| Distributed tracing | OpenTelemetry, Zipkin, Jaeger, per-request trace propagation (v6.2.0) |
| AI agent commerce | A2A messaging, DID identity, escrow, reputation framework (v6.3.0) |
| Machine payments | MPP multi-rail (Stripe, USDC, Lightning), AP2 mandates, x402 Solana (v6.4.0) |
| Payment orchestration (experimental, opt-in) | HyperSwitch routing for card deposits behind HYPERSWITCH_ENABLED (off by default — Stripe is the default rail); webhook-credited deposit completion (v6.4.2, wired in #1118) |
| Mobile launch readiness | Quest auto-triggers, device attestation, JIT funding, rewards (v6.5.0) |
| SMS multi-rail payments | VertexSMS integration, MPP-gated SMS, MCP tool for AI agents (v7.10.7) |
| Public MCP server | OAuth-secured Model Context Protocol server at mcp.zelta.app, @finaegis/mcp npm wrapper (v7.11.0) |
| Non-custodial wallet | Privy passkey/device-key signing, sponsored EVM + Solana sends, prepare/submit flow (v7.12.0) |
| Mobile subscriptions | Apple App Store + Google Play IAP verification, pseudonymised receipts, revenue outbox (v7.13.0) |
| Fiat ↔ stablecoin ramp | Bridge.xyz bank-rail on-ramp, virtual accounts, USDC on Polygon, asymmetric webhook verification (v7.15.0) |
| Learning modern architecture | Complete DDD + CQRS + Event Sourcing example |
FinAegis uses a modular plugin system where each domain is a self-contained module:
php artisan domain:list # List all 61 domain modules with status
php artisan module:enable exchange # Enable a module
php artisan module:disable exchange # Disable a module (preserves data)
php artisan domain:verify exchange # Verify module health
php artisan performance:report # Generate performance baselinemodule.json) define dependencies, interfaces, events, and commandsRoutes/api.php via ModuleRouteLoader/admin/modules with search, filters, enable/disable actionsGET /api/v2/modules for programmatic module managementFinAegis provides a schema-first GraphQL API via Lighthouse PHP covering 45 domains:
# Available at /graphql
# Interactive playground at /graphql-playground
# Example query
curl -X POST http://localhost:8000/graphql \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "{ accounts { id name balance currency } }"}'directives and subscriptions; see graphql/schema.graphql for the authoritative list@guard(with: ["sanctum"]), query cost analysis, introspection controlRedis Streams-based event streaming for real-time data pipelines:
php artisan event-stream:monitor # Monitor stream health, lag, throughputThe Global Currency Unit (GCU) demonstrates FinAegis capabilities through a democratic basket currency:
GCU shows how to build complex financial products using FinAegis primitives.
┌─────────────────────┐
│ GCU Basket │
├─────────────────────┤
│ USD ████████░░ 40% │
│ EUR ██████░░░░ 30% │
│ GBP ███░░░░░░░ 15% │
│ CHF ██░░░░░░░░ 10% │
│ JPY █░░░░░░░░░ 3% │
│ XAU █░░░░░░░░░ 2% │
└─────────────────────┘See ADR-0010: GCU Basket Design for architecture details.
No external dependencies - everything runs locally:
git clone https://github.com/FinAegis/core-banking-prototype-laravel.git
cd core-banking-prototype-laravel
composer install
cp .env.demo .env
php artisan key:generate
php artisan migrate --seed
npm install && npm run build
php artisan serveVisit http://localhost:8000 with demo credentials:
[email protected] / demo123[email protected] / demo123[email protected] / demo123git clone https://github.com/FinAegis/core-banking-prototype-laravel.git
cd core-banking-prototype-laravel
composer install && npm install
cp .env.example .env
php artisan key:generate
# Configure MySQL/PostgreSQL and Redis in .env
php artisan migrate --seed
npm run build
php artisan serve
php artisan queue:work --queue=events,ledger,transactions,transfers,webhooksRequirements: PHP 8.4+, MySQL 8.0+ / MariaDB 10.3+ / PostgreSQL 13+, Redis 6.0+, Node.js 18+
Install only the domains you need:
# List available domains
php artisan domain:list
# Install specific domains
php artisan domain:install exchange
php artisan domain:install lending
# Check dependencies
php artisan domain:dependencies exchange
# Verify domain health
php artisan domain:verify| Domain Type | Examples | Installation |
|---|---|---|
| Core (always installed) | account, user, compliance, shared |
Automatic |
| Financial | exchange, lending, treasury, wallet |
domain:install |
| AI/Agent | ai, agent-protocol, governance |
domain:install |
| Infrastructure | monitoring, fraud, batch |
domain:install |
See Domain Management Guide for details.
| Domain | Capabilities |
|---|---|
| Account | Multi-asset accounts, deposits, withdrawals, statements |
| Banking | SEPA/SWIFT transfers, multi-bank routing, reconciliation |
| Compliance | 3-tier KYC, AML screening, SAR/CTR reporting |
| Treasury | Portfolio management, cash allocation, yield optimization |
| Domain | Capabilities |
|---|---|
| Exchange | Order matching, liquidity pools, AMM, external connectors, WebSocket streaming |
| Stablecoin | Multi-collateral minting, burning, liquidation |
| Wallet | Non-custodial EVM sends (Polygon, Base, Arbitrum) + Solana; USDC receive on Solana/Tron; Ledger/Trezor hardware-wallet integration |
| Basket (GCU) | Weighted currency basket, NAV calculation, rebalancing |
| Domain | Capabilities |
|---|---|
| Governance | Democratic voting, proposals, asset-weighted strategies |
| Lending | P2P loans, credit scoring, risk assessment |
| AI Framework | MCP server, 20+ banking tools, natural language queries, pattern analysis (v2.8.0) |
| Agent Protocol | A2A messaging, escrow, reputation system |
| RegTech | MiFID II reporting, MiCA compliance, FATF Travel Rule, 4-jurisdiction adapters (v2.8.0) |
| Multi-Tenancy | Team-based isolation, tenant-aware event sourcing |
| Domain | Capabilities |
|---|---|
| Key Management | Shamir's Secret Sharing (2-of-3), HSM integration |
| Privacy | ZK-KYC verification, Proof of Innocence, selective disclosure |
| Card Issuance | Virtual cards for Apple Pay/Google Pay, JIT funding |
| Gas Relayer | ERC-4337 meta-transactions, pay fees in USDC |
| TrustCert | W3C Verifiable Credentials, QR/deep link verification |
| Mobile | Biometric auth, push notifications, device management |
| Mobile Payments | Payment intents, activity feed, receipts, USDC on Solana |
暂无开放 Issues,或尚未同步最近议题。