UCP Java
The definitive Spring Boot framework for protocol-agnostic commerce integrations. Connect to any platform with a unified, type-safe API.
⚡ Unified Domain Model
Forget mapping nightmares. Use standard Product, Cart, and
Order models that work consistent across Shopify, Magento, or custom backends.
🔧 Spring Boot Native
Zero-boilerplate configuration. Just add the starter dependency, configuring your properties, and
inject the CommerceAdapter.
🔌 Extensible SPI
Built for growth. Implement your own adapters easily using our clear Service Provider Interfaces.
🛡️ Resilience Built-in
Production ready with circuit breakers and fallback mechanisms baked right into the core.
Quick Install
dependencies {
implementation 'dev.ucomprotocol:ucp-spring-boot-starter:1.0.0'
}
Simple Usage
@Service
public class ProductService {
private final CommerceAdapter commerceAdapter;
public ProductService(CommerceAdapter commerceAdapter) {
this.commerceAdapter = commerceAdapter;
}
public Product getProduct(String id) {
return commerceAdapter.getCatalogAdapter()
.getProductById(id)
.orElseThrow();
}
}