Skip to content

Keep referral links in affiliates.txt; add Opalstack - #7

Merged
ralyodio merged 1 commit into
mainfrom
affiliates-txt
Sep 25, 2026
Merged

ralyodio merged 1 commit into
mainfrom
affiliates-txt

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Moves the referral table from `packages/core/src/affiliates.js` into `affiliates.txt` at the repo root, one line per provider:

<domain> <referral url> [landing-only]
  • `bun run affiliates` sorts by domain and drops duplicate domains.
  • The module parses the file at load and throws on a line it cannot read (bad URL, http, unknown flag, duplicate domain).
  • Tests fail if the file is unsorted or has a duplicate.
  • Adds Opalstack: `https://my.opalstack.com/signup/?via=68ba4d\` (Rewardful, 10% of payments). Not landing-only, so every Opalstack outbound link goes through it.
  • Dedirock keeps its landing-only rule.

`bun test`: 64 pass, 2 skip, 0 fail. Biome clean.

🤖 Generated with Claude Code

The affiliate table moves out of affiliates.js into affiliates.txt at the
repository root: one '<domain> <url> [landing-only]' line per provider,
sorted and de-duplicated by 'bun run affiliates'. The module parses it at
load and refuses to start on a bad line, and the tests fail if the file is
out of order or lists a domain twice.

Opalstack joins with its Rewardful link. Rewardful forwards anywhere, so
it is not landing-only and every Opalstack link, deep or not, goes
through it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 85d6f40 into main Sep 25, 2026
3 checks passed
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.

1 participant