How credebl/platform works
CREDEBL is a backend SSI platform. A user authenticates through the API Gateway, selects an organization or ecosystem, and invokes wallet, connection, credential-issuance, or verification operations. The gateway dispatches requests over NATS to dedicated microservices, which manage agent interactions and persistence before returning API results. The graph preserves organization/ecosystem administration, OID4VC flows, notifications, and file storage as major branches. Some gateway-to-service wiring is inferred only from the README’s microservice/NATS description; unsampled implementation calls are omitted.
Main entry points: app.module.ts API Gateway · agent-service.service.ts Agent Service · issuance.service.ts Issuance Service · verification.service.ts Verification Service
Components 26
Access Layer
- API Gateway
apps/api-gateway/src/app.module.ts - Authorization
apps/api-gateway/src/authz/authz.service.ts
Tenancy Management
- Organization API
apps/api-gateway/src/organization/organization.controller.ts - Organization Service
apps/organization/src/organization.service.ts - Organization Store
apps/organization/repositories/organization.repository.ts - Ecosystem API
apps/api-gateway/src/ecosystem/ecosystem.controller.ts - Ecosystem Service
apps/ecosystem/src/ecosystem.service.ts
SSI Operations
- Agent API
apps/api-gateway/src/agent/agent.service.ts - Agent Commands
apps/agent-service/src/agent-service.controller.ts - Agent Service
apps/agent-service/src/agent-service.service.ts - Agent Provisioning
apps/agent-provisioning/src/agent-provisioning.service.ts - Connection Service
apps/connection/src/connection.service.ts - Cloud Wallet
apps/cloud-wallet/src/cloud-wallet.service.ts
Trust Workflows
- Issuance API
apps/api-gateway/src/issuance/issuance.controller.ts - Issuance Service
apps/issuance/src/issuance.service.ts - Verification API
apps/api-gateway/src/verification/verification.controller.ts - Verification Service
apps/verification/src/verification.service.ts - OID4VC Verification
apps/oid4vc-verification/src/oid4vc-verification.service.ts - OID4VC Issuance
apps/oid4vc-issuance/src/oid4vc-issuance.service.ts - Ledger Service
apps/ledger/src/ledger.service.ts - Schema Service
apps/ledger/src/schema/schema.service.ts
Platform Infrastructure
- NATS Broker
- File Storage
libs/storage/src/storage.service.ts - Notifications
apps/notification/src/notification.service.ts - PostgreSQL
Other components
- Platform User
Connections 26
- Platform User → API Gateway: submits requests
- API Gateway → Authorization: authorizes
- API Gateway → NATS Broker: dispatches commands
- NATS Broker → Organization API: delivers commands
- Organization API → Organization Service: calls service
- Organization Service → Organization Store: reads and writes
- Organization Store → PostgreSQL: persists data
- NATS Broker → Ecosystem Service: delivers commands
- Ecosystem Service → PostgreSQL: persists data
- API Gateway → Agent API: routes agent calls
- Agent API → NATS Broker: dispatches commands
- NATS Broker → Agent Commands: delivers commands
- Agent Commands → Agent Service: calls service
- Agent Service → Agent Provisioning: provisions agents
- Agent Service → Connection Service: manages connections
- Agent Service → Cloud Wallet: manages wallets
- Issuance API → Issuance Service: calls service
- Issuance Service → Agent Service: uses agent
- Issuance Service → Ledger Service: uses ledger
- Verification API → Verification Service: calls service
- Verification Service → Agent Service: uses agent
- API Gateway → OID4VC Issuance: routes issuer calls
- API Gateway → OID4VC Verification: routes verifier calls
- Ledger Service → Schema Service: manages schemas
- Issuance Service → File Storage: stores files
- Verification Service → Notifications: emits notifications