Open source
astro-affiliate
Why it exists
Affiliate links carry real compliance requirements: FTC disclosure, per-channel tracking so a repost on a different platform can be measured separately, and a guarantee that a disclosure never quietly drifts out of sync with the links it's supposed to cover. This package enforces that link at build time - a post using an affiliate link without declaring its program in frontmatter fails the build instead of shipping silently wrong.
- Affiliate-link catalog resolver
- FTC-compliant disclosure components
- Channel-aware link rewriting
Install
npm install @vdaluz/astro-affiliate