
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Official TypeScript/JavaScript SDK for Traaaction — the affiliate SaaS platform connecting startups and sellers.
npm install traaaction
# or
yarn add traaaction
# or
pnpm add traaaction
import { Traaaction } from 'traaaction'
const trac = new Traaaction({
apiKey: process.env.TRAAACTION_API_KEY, // trac_live_xxx
})
Track affiliate events from your server. Use the public key (pk_xxx) or secret key.
// After a user signs up
await trac.track.lead({
customerId: user.id,
clickId: request.cookies.get('trac_click_id')?.value,
eventName: 'sign_up',
customerEmail: user.email,
})
// Manual sale (if not using Stripe webhooks)
await trac.track.sale({
customerId: user.id,
amount: 5900, // €59 in cents
currency: 'EUR',
})
All management methods require a secret key (trac_live_xxx).
// List links
const { data: links, meta } = await trac.links.list({ page: 1, limit: 50 })
// Create a link
const { data: link } = await trac.links.create({
destination: 'https://example.com/landing',
missionId: 'mission_id_here',
})
// Update a link
await trac.links.update(link.id, { channel: 'email' })
// Delete a link
await trac.links.delete(link.id)
const { data: missions } = await trac.missions.list({ status: 'ACTIVE' })
const { data: mission } = await trac.missions.get('mission_id')
const { data: sellers } = await trac.sellers.list({ status: 'APPROVED' })
const { data: seller } = await trac.sellers.get('seller_id')
// seller.balance includes { pending, due, paid_total }
const { data: customers } = await trac.customers.list()
// Lookup by your app's user ID
const { data: customer } = await trac.customers.get(user.id)
const { data: commissions } = await trac.commissions.list({
status: 'PROCEED',
sellerId: 'seller_id',
})
const { data: payouts } = await trac.payouts.list()
const { data: stats } = await trac.analytics.retrieve({ interval: '30d' })
// stats.clicks, stats.leads, stats.sales, stats.revenue, stats.timeseries
import { Traaaction, TraaactionAPIError, TraaactionAuthError } from 'traaaction'
try {
const { data } = await trac.links.get('invalid_id')
} catch (error) {
if (error instanceof TraaactionAuthError) {
console.error('Invalid API key')
} else if (error instanceof TraaactionAPIError) {
console.error(`API error ${error.statusCode}: ${error.code}`)
}
}
fetch)MIT
FAQs
TypeScript/JavaScript SDK for Traaaction affiliate tracking and management
We found that traaaction 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.