Skip to content

About

athena pay bank fintech

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

🏦 Athena Pay

CI License: AGPL v3 Commercial License

English · Português

Open-source fintech platform for building digital banks and payment institutions — microservices for accounts, PIX, cards, boleto, wire transfers (TED/DOC), loans, KYC, compliance and LGPD, with web, admin and mobile front-ends.

Built from more than 29 years of hands-on software development, with a focus on scalability, security and Brazilian regulatory requirements.

Project status

The platform is under active development. Some services are complete; others are scaffolds waiting for contributors.

Status Services
✅ Implemented (domain logic, many endpoints) pix · loans · card · wire (TED/DOC) · boleto · compliance · kyc · accounts · lgpd · audit · ai · api-gateway
🧩 Early / scaffold (health check or a few endpoints) payments · config · customer · statement · accounting · admin-api · affiliates · rewards · whatsapp · fx-crypto · simulators

Good first contributions: pick a scaffold service and grow it with tests.

Features

  • Core banking: digital accounts, transfers (TED, PIX, P2P), statements, reconciliation.
  • Payments: PIX (QR code, copy-and-paste), boleto, cards (credit/debit, 3-D Secure), payment split.
  • Credit: loan products, scoring engine with AI assistance.
  • Security:
    • JWT/OIDC with Keycloak;
    • MFA;
    • tokenization of sensitive data;
    • KMS/HSM integration;
    • rate limiting;
    • audit logs;
    • outbox pattern.
  • Compliance: KYC, AML / PLD-FT, LGPD service (consent, export, deletion), PCI-DSS guidelines.
  • Infrastructure:
    • FastAPI microservices;
    • event-driven (Kafka, RabbitMQ);
    • Docker Compose and Helm charts;
    • OpenTelemetry tracing and Prometheus metrics.
  • Front-ends: React web client (40+ pages), admin web, React Native mobile.

Architecture

┌──────────────────────────────────────────────────────────────┐
│  Web client (React) · Admin web (React) · Mobile (RN)        │
└───────────────────────────────┬──────────────────────────────┘
                                ▼
                ┌───────────────────────────────┐
                │ API Gateway (FastAPI+Keycloak)│
                └───────────────┬───────────────┘
┌───────────────────────────────┴──────────────────────────────┐
│ accounts · pix · card · payments · loans · boleto · kyc      │
│ compliance · lgpd · audit · rewards · fx-crypto · customer   │
│ accounting · statement · wire · whatsapp · affiliates · ai   │
│ admin-api · config · simulators                              │
└───────────────────────────────┬──────────────────────────────┘
          PostgreSQL · Redis · Kafka · RabbitMQ

Tech stack

Layer Technologies
Backend Python 3.11+, FastAPI, SQLAlchemy, Pydantic
Front-end React 18, TypeScript, Vite, React Native
Auth Keycloak 26, OAuth2/OIDC, JWT
Messaging Apache Kafka, RabbitMQ
Data PostgreSQL 15, Redis 7
Infra Docker, Kubernetes (Helm), Nginx, Traefik
CI GitHub Actions: ruff, unit tests, Docker build of every service, Trivy

Quick start (development)

Requirements: Docker with Docker Compose. Node.js 18+ only if you work on the front-ends outside Docker.

git clone https://github.com/Jeffersonpl/athena-pay.git
cd athena-pay
cp .env.example .env
docker compose -f docker-compose.dev.yml up -d --build
URL
Web client http://localhost:5174
Admin http://localhost:5173
API gateway http://localhost:8080
Keycloak http://localhost:8081

Development-only Keycloak users: admin1 / Passw0rd! (roles cto, user) and user1 / Passw0rd! (user). Change them before exposing anything.

Checks:

ruff check services tests
pytest tests/unit
pytest tests/integration   # with the stack running

Documentation

Document
Setup Installation and configuration
Architecture, C4 model, DDD Design decisions
API (OpenAPI) Per-service API reference
Security, PCI / LGPD / COAF, audit Security practices
Production guide, staging checklist Operations

Most documents are in Portuguese.

License

Dual licensing.

  • Open source: AGPL-3.0.
    • You may study, use, modify and distribute the code.
    • If you run a modified version as a network service (SaaS), you must publish its source code under AGPL-3.0.
    • Keep the copyright notices.
  • Commercial license. Use Athena Pay in a closed-source product, for example in production fintechs, white-label or commercial SaaS, without the AGPL obligations. Contact jefferson@jeffersonpl.dev.

Disclaimer

This software is provided "as is", without warranty of any kind. By using it you acknowledge that:

  1. Regulatory compliance is your sole responsibility. This includes the Brazilian Central Bank (BACEN), LGPD, PCI-DSS, AML/CFT (PLD/FT) and any other rules in your jurisdiction.
  2. Operating a financial or payment institution requires licenses. This software grants none.
  3. Bank integrations require more than this code. PIX, TED and the Brazilian payment system (SPB) need Central Bank certification, valid digital certificates and contracts with participating institutions.
  4. You are responsible for security, data protection, audits and keeping the software up to date.
  5. The authors are not liable for financial losses, data leaks, misuse, regulatory fines or any direct or indirect damage.

Before production you must:

  • run a full security audit and a penetration test;
  • get specialized legal advice;
  • obtain the required BACEN licenses;
  • set up backup, disaster recovery and incident management;
  • consider liability insurance.

Contributing

Contributions are welcome. Read CONTRIBUTING.md, CODE_OF_CONDUCT.md and SECURITY.md. Report vulnerabilities privately, never in a public issue.

Roadmap

Open Banking Brasil · investments module · CIP integration · FX module · mobile app · analytics dashboard · growing the scaffold services listed above.

Contact

Jefferson Pereira:


Português

Plataforma fintech open source para criar bancos digitais e instituições de pagamento. São microsserviços de:

  • contas e PIX;
  • cartões e boleto;
  • TED/DOC;
  • empréstimos;
  • KYC, compliance e LGPD.

Inclui também front-ends web, admin e mobile.

O projeto nasceu de mais de 29 anos de experiência prática em desenvolvimento de software, com foco em escala, segurança e regulação brasileira.

Situação do projeto

A plataforma está em desenvolvimento ativo. Alguns serviços estão completos; outros são esqueletos esperando contribuição.

Situação Serviços
✅ Implementado (regra de negócio, várias rotas) pix · loans · card · wire (TED/DOC) · boleto · compliance · kyc · accounts · lgpd · audit · ai · api-gateway
🧩 Inicial / esqueleto (só health check ou poucas rotas) payments · config · customer · statement · accounting · admin-api · affiliates · rewards · whatsapp · fx-crypto · simulators

Boa primeira contribuição: escolha um serviço esqueleto e faça ele crescer, com testes.

Funcionalidades

  • Core banking: contas digitais, transferências (TED, PIX, P2P), extrato, conciliação.
  • Pagamentos: PIX (QR code, copia e cola), boleto, cartões (crédito/débito, 3-D Secure), split de pagamentos.
  • Crédito: produtos de empréstimo e motor de score com apoio de IA.
  • Segurança:
    • JWT/OIDC com Keycloak;
    • MFA;
    • tokenização de dados sensíveis;
    • integração com KMS/HSM;
    • limite de requisições;
    • logs de auditoria;
    • padrão outbox.
  • Compliance: KYC, PLD/FT, serviço de LGPD (consentimento, exportação, exclusão), diretrizes PCI-DSS.
  • Infraestrutura:
    • microsserviços FastAPI;
    • arquitetura orientada a eventos (Kafka, RabbitMQ);
    • Docker Compose e Helm;
    • tracing OpenTelemetry e métricas Prometheus.
  • Front-ends: web em React (40+ páginas), admin web e mobile em React Native.

Começo rápido (desenvolvimento)

Requisito: Docker com Docker Compose. Node.js 18+ só se for mexer nos front-ends fora do Docker.

git clone https://github.com/Jeffersonpl/athena-pay.git
cd athena-pay
cp .env.example .env
docker compose -f docker-compose.dev.yml up -d --build

Endereços:

Usuários do Keycloak, só para desenvolvimento:

  • admin1 / Passw0rd!, com os papéis cto e user;
  • user1 / Passw0rd!, com o papel user.

Troque-os antes de expor qualquer coisa.

Verificações:

  • ruff check services tests;
  • pytest tests/unit;
  • pytest tests/integration, com o ambiente no ar.

Documentação

Licenciamento

Licença dupla.

  • Open source: AGPL-3.0.
    • Pode estudar, usar, modificar e distribuir.
    • Se rodar uma versão modificada como serviço (SaaS), precisa publicar o código-fonte sob AGPL-3.0.
    • Mantenha os avisos de copyright.
  • Licença comercial. Para usar o Athena Pay em produto de código fechado, sem as obrigações da AGPL: fintechs em produção, white-label ou SaaS comercial. Contato: jefferson@jeffersonpl.dev.

Aviso legal

Este software é fornecido "como está", sem garantia de qualquer tipo. Ao usá-lo, você reconhece que:

  1. A conformidade regulatória é responsabilidade exclusivamente sua. Isso inclui o Banco Central (BACEN), a LGPD, o PCI-DSS, as normas de PLD/FT e demais regras da sua jurisdição.
  2. Operar instituição financeira ou de pagamento exige licenças. Este software não concede nenhuma.
  3. As integrações bancárias exigem mais do que este código. PIX, TED e o SPB exigem homologação no Banco Central, certificados digitais válidos e contratos com instituições participantes.
  4. A segurança é responsabilidade sua: proteção de dados, auditorias e atualização do software.
  5. Os autores não respondem por perdas financeiras, vazamento de dados, uso indevido, multas regulatórias ou danos diretos ou indiretos.

Antes de produção você deve:

  • fazer auditoria de segurança completa e teste de invasão;
  • contratar consultoria jurídica especializada;
  • obter as licenças necessárias no BACEN;
  • implementar backup, recuperação de desastres e gestão de incidentes;
  • considerar um seguro de responsabilidade civil.

Contribuindo

Contribuições são bem-vindas. Leia o CONTRIBUTING.md e o CODE_OF_CONDUCT.md. Vulnerabilidades devem ser reportadas em privado, conforme o SECURITY.md.

Roadmap

  • Open Banking Brasil;
  • módulo de investimentos;
  • integração com a CIP;
  • módulo de câmbio;
  • app mobile;
  • dashboard de análise;
  • evolução dos serviços esqueleto.

Contato

Jefferson Pereira:

Feito com ❤️ para a comunidade fintech brasileira · Made with ❤️ for the Brazilian fintech community

About

athena pay bank fintech

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages