
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
CLI-native affiliate tracking. Connect Stripe, track commissions, manage partners — all from your terminal.
CLI-native affiliate tracking. Connect Stripe, track commissions, manage partners -- all from your terminal.
# Create your affiliate program
npx affitor init
# Connect Stripe for automatic payment tracking
npx affitor setup stripe
# Check program health
npx affitor status
# Send test events
npx affitor test click
npx affitor test lead
npx affitor test sale
| Command | Description |
|---|---|
affitor init | Create a new affiliate program. Interactive prompts or --no-interactive with flags. |
affitor setup stripe | Connect Stripe via OAuth. Auto-configures webhooks for payment tracking. |
affitor setup dns | Set up DNS CNAME tracking (coming soon). |
affitor status | Show program health: DNS, Stripe connection, recent events. |
affitor test [type] | Send a test event (click, lead, or sale). |
| Flag | Description |
|---|---|
--json | Output as JSON (for AI agents and scripts) |
--no-interactive | Skip all prompts, fail on missing values |
--auto-confirm | Auto-yes to confirmation prompts |
--quiet | Suppress non-essential output |
--api-key <key> | Override API key from config |
--api-url <url> | Override API URL |
--verbose | Debug output |
npx affitor init \
--name "My SaaS" \
--domain "example.com" \
--commission-type recurring_percent \
--commission-rate 20 \
--duration-months 12 \
--cookie-duration 90 \
--no-interactive \
--json
Running npx affitor init creates:
.affitor/
config.json -- program configuration
.env.example -- environment variables template
skills.md -- AI agent instructions
npx affitor setup stripe automates the entire Stripe integration:
customer.created -- lead trackingcheckout.session.completed -- sale trackinginvoice.paid -- recurring commissionsinvoice.payment_failed -- failed payment alertscharge.refunded -- automatic commission clawbackcustomer.subscription.deleted -- churn trackingsetup stripe)MIT
FAQs
CLI-native affiliate tracking. Connect Stripe, track commissions, manage partners — all from your terminal.
The npm package affitor receives a total of 2 weekly downloads. As such, affitor popularity was classified as not popular.
We found that affitor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.