feat: wire Amazon Associates affiliate links into ingredient shopping URLs #22
Labels
No labels
backlog
beta-feedback
bug
duplicate
enhancement
help wanted
invalid
needs-design
needs-triage
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/kiwi#22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Kiwi generates ingredient shopping links (expiry-triggered restock, recipe ingredient shopping). These should be wrapped with the Amazon Associates affiliate code using
circuitforge_core.affiliates.wrap_url(retailer="amazon")once the user has setAMAZON_ASSOCIATES_TAG.Scope
wrap_url(url, retailer="amazon", user_id=..., get_preference=...)get_preferenceusing kiwi's user session/prefs when cloud mode is active; fall back to env-var-only for self-hostedaffiliate_activeflag to relevant API responses (same pattern as snipe)BANNER_COPYfirst-encounter bannerEnv var
AMAZON_ASSOCIATES_TAG— document in.env.exampleRelated
circuitforge-plans/shared/2026-04-04-affiliate-links-design.md