affitor init wires tracking into your Next.js app
The CLI detects Next.js, installs the SDK and adds the tracking code for you, with a preview of every change before it writes.
Run affitor init in a Next.js project. The CLI detects the framework, installs the SDK, and adds the tracking code, showing you the diff before it writes anything.
npx affitor initA server-side Node SDK ships alongside it, so you can record sales from your backend. Since June 2026 the SDK is published as @affitor/sdk.