How openshiporg/openship works
Openship is an order-routing platform: operators connect sales shops to fulfillment channels, configure links and product matches, then manage orders through routing and fulfillment. The graph highlights that workflow, its Keystone/GraphQL domain layer, external shop and channel integrations, and the admin dashboard. README capabilities such as Shopify connectors, webhooks, tracking, and API keys are retained where paths support them. Evidence is limited to the provided excerpts and README; unverified wiring is omitted.
Main entry points: extendGraphqlSchema GraphQL schema · OrderListPageClient.tsx Order management · index.ts Keystone runtime · executor.ts Shop connector executor
Components 27
Order operations
- Order management
features/platform/orders/screens/OrderListPageClient.tsx - Product matching
features/platform/matches/screens/MatchesListPageClient.tsx - Shop configuration
features/platform/shops - Channel configuration
features/platform/channels - API key management
features/platform/api-keys
Domain backend
- GraphQL schema
features/keystone/extendGraphqlSchema - Commerce models
features/keystone/models - Keystone runtime
features/keystone/index.ts - Database context
features/keystone/context.ts
Commerce integrations
- Shop connector executor
features/integrations/shop/lib/executor.ts - Channel connector executor
features/integrations/channel/lib/executor.ts - Shopify shop adapter
features/integrations/shop/shopify.ts - Openfront shop adapter
features/integrations/shop/openfront.ts - Shop webhook handlers
app/api/handlers/shop/create-order/[shopId]/route.ts - Channel webhook handlers
app/api/handlers/channel/create-tracking/[channelId]/route.ts - Tracking relays
features/integrations/channel/tracking-relay.ts - OAuth callback
app/api/oauth/callback/route.ts
Admin dashboard
- Dashboard data access
features/dashboard/hooks/useQueryFactory.ts - List filtering
features/dashboard/lib/buildWhereClause.ts - Record editing
features/platform/components/EditItemDrawerClient.tsx
AI tools
- AI completion API
app/api/completion/route.ts - MCP transport
app/api/mcp-transport/[transport]/route.ts
Other components
- Platform operator
- Sales shop
- Fulfillment channel
- AI provider
- PostgreSQL
Connections 29
- Platform operator → Shop configuration: configures shops
- Platform operator → Channel configuration: configures channels
- Platform operator → Product matching: maps products
- Platform operator → Order management: manages orders
features/platform/orders/screens/OrderListPageClient.tsx - Order management → GraphQL schema: runs order actions
- Product matching → GraphQL schema: manages matches
- Shop configuration → GraphQL schema: configures shops
- Channel configuration → GraphQL schema: configures channels
- API key management → GraphQL schema: manages keys
- Order management → Shop configuration: searches shop orders
features/platform/orders/screens/OrderListPageClient.tsx - Order management → Order management: places orders
features/platform/orders/screens/OrderListPageClient.tsx - Dashboard data access → List filtering: builds filters
- Record editing → Dashboard data access: updates records
features/platform/components/EditItemDrawerClient.tsx - Keystone runtime → Commerce models: registers models
features/keystone/index.ts - Keystone runtime → GraphQL schema: extends schema
features/keystone/index.ts - Database context → Keystone runtime: loads config
features/keystone/context.ts - Keystone runtime → PostgreSQL: persists data
- Sales shop → Shop webhook handlers: sends order events
- Shop webhook handlers → Shop connector executor: dispatches shop work
app/api/handlers/shop/create-order/[shopId]/route.ts - Shop connector executor → Shopify shop adapter: supports adapter
- Shop connector executor → Openfront shop adapter: supports adapter
- Fulfillment channel → Channel webhook handlers: sends tracking
- Channel webhook handlers → Channel connector executor: dispatches channel work
app/api/handlers/channel/create-tracking/[channelId]/route.ts - Channel webhook handlers → Tracking relays: relays tracking
app/api/handlers/channel/create-tracking/[channelId]/route.ts - OAuth callback → Shop connector executor: handles shop OAuth
app/api/oauth/callback/route.ts - OAuth callback → Channel connector executor: handles channel OAuth
app/api/oauth/callback/route.ts - Platform operator → AI completion API: asks assistant
- AI completion API → MCP transport: connects tools
app/api/completion/route.ts - AI completion API → AI provider: streams response