Repository navigation
Description
Problem
Shopify comes first. Then Google Merchant Center and Amazon, then eBay, Walmart, Etsy, WooCommerce, BigCommerce, Shoptet, Trendyol and Hepsiburada. Every one of them needs the same plumbing: connect, sync the catalog, sync orders, handle webhooks, disconnect. Without one shape, each connector reinvents it, and contributors can't build one without the core team.
What exists today:
integration_connectionsholds one row per organization and provider (Search Console, Analytics). Composio runs the OAuth flow and keeps the tokens; we keep the connected-account id (composio.js).key-encryption.tsencrypts organization API keys with AES-256-GCM under the app's master key.- The Search Console and Analytics syncs run daily after tracking (
server.js).
Proposal
-
Connections: extend
integration_connectionsrather than adding a second table.- Add the brand a store feeds, since one store belongs to one brand.
- Add the external account (shop domain, seller id), the last catalog and order sync times, and the last error.
-
Credentials:
- Through Composio when it supports the platform with our own app credentials.
- Otherwise encrypted with the same envelope as
key-encryption.ts, usable from the server, in a columnauthenticatedcan't read. - Never logged.
-
Interface, one folder per connector under
server/src/connectors/:connectsyncCatalog(since)syncOrders(since)handleWebhook(event)disconnect
Catalog writes go through the batch upsert from feat(shopping): a product catalog per brand, with CSV import #1184.
-
Plumbing:
- A daily sync next to the Search Console and Analytics syncs, plus an on-demand sync.
- Retries with backoff, and respect for each platform's rate-limit headers.
- Structured logs with no credentials and no personal data.
-
Test harness: fixtures and a fake HTTP API per connector, so a connector's tests run in
npm testwithout real accounts. -
Reference connector: a product feed URL (Google feed XML or CSV), fetched daily.
-
Contributor guide: how to build, test and submit a connector, with the checklist every connector PR is reviewed against:
- least scopes
- credentials only in the credential store
- no buyer personal data: orders keep id, date, line items, revenue and channel
- disconnect and uninstall delete credentials and stop syncs
- platform rate limits respected
Acceptance criteria
- The feed URL connector passes the harness and keeps a catalog in sync daily.
- A contributor can build and test a connector from the guide alone, with no production keys.
- No credential is readable by
authenticatedor appears in logs (checked).
Activity
gkhngyk commentedon Oct 20, 2026
Closing: the e-commerce plan is being reworked, and new issues will replace this one.