Skip to content

feat(amazon): add browser adapter and docs#659

Merged
jackwener merged 2 commits intojackwener:mainfrom
leozejia:feat/amazon-browser-adapter-pr
Apr 2, 2026
Merged

feat(amazon): add browser adapter and docs#659
jackwener merged 2 commits intojackwener:mainfrom
leozejia:feat/amazon-browser-adapter-pr

Conversation

@leozejia
Copy link
Copy Markdown
Contributor

@leozejia leozejia commented Apr 1, 2026

Summary

  • add Amazon browser adapter with bestsellers, search, product, offer, and discussion
  • add adapter docs and register Amazon in the browser adapter index
  • keep this PR adapter-only; no browser runtime changes and no extension changes

Verification

  • npx vitest run src/clis/amazon/shared.test.ts src/clis/amazon/search.test.ts src/clis/amazon/product.test.ts src/clis/amazon/offer.test.ts src/clis/amazon/discussion.test.ts src/clis/amazon/bestsellers.test.ts
  • npm run build
  • live check on shared Chrome session:
    • opencli amazon bestsellers https://www.amazon.com/Best-Sellers/zgbs --limit 3 -f json
    • opencli amazon search "desktop hutch dorm" --limit 5 -f json
    • opencli amazon product B0C2KR6BVM -f json
    • opencli amazon offer B0C2KR6BVM -f json
    • opencli amazon discussion B0C2KR6BVM --limit 3 -f json

Copy link
Copy Markdown
Contributor

@Astro-Han Astro-Han left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same high quality as #650 — clean shared utilities, good test coverage, thorough docs. Two small gaps:

  1. README.md and README.zh-CN.md are missing the amazon row in the adapter table.
  2. docs/.vitepress/config.mts sidebar doesn't have the amazon entry.

Other than that, LGTM.

@jackwener jackwener force-pushed the feat/amazon-browser-adapter-pr branch from f9efe5b to f355a78 Compare April 2, 2026 05:30
@jackwener jackwener merged commit d721eb6 into jackwener:main Apr 2, 2026
11 checks passed
@jackwener jackwener mentioned this pull request Apr 2, 2026
@leozejia leozejia deleted the feat/amazon-browser-adapter-pr branch April 2, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants