How b2storefront/connector works
Main Components
a. Core Integration Layer
• Represented by the root-level 'connectors' directory
• Bigcommerce.js and shopify.js as primary connector interfaces
• Shopify Module
• Admin API
• Bulk API
• GraphQL Queries (Products, Collections, Redirections)
• BigCommerce Module
• Oro Commerce Module
• Admin API
• MySQL Integration
• Strapi CMS Module
• ReviewsIO Module
• Bitbucket Integration
c. Helper Services Layer
• URL Generation Service
• Platform Resolution Service
• Webhook Handler
• Draft Mode Manager
• Category Management
• Slugification Service
Relationship Flows
• Helper services connected to both connectors and platform sources
• Webhook flows from external platforms to the webhook handler
Architecture Patterns to Highlight
• Adapter Pattern: Show how connectors standardize different platform interfaces
• Service Layer Pattern: Demonstrate helper services as a separate architectural layer
• API Integration Pattern: Illustrate different API types (REST, GraphQL, Bulk) for each platform
Specific Implementation Details
Create sections showing:
• Query Management for Shopify
• Authentication flows for each platform
• Data transformation pipelines
• Platform-specific helper utilities
External Dependencies
Connections to:
• E-commerce platforms (Shopify, BigCommerce)
• CMS systems (Strapi)
• Version control (Bitbucket)
• Review systems (ReviewsIO)
The centralized management of platform-specific logic
Remember to:
• Keep platform-specific implementations visually grouped
• Clear boundaries between internal and external services
• Version or environment indicators where relevant
• Document any rate limiting or quota considerations
This architecture appears to be designed for flexibility and extensibility, allowing easy addition of new platforms while maintaining a consistent interface through the connector layer.