Skip to content
Feralin

Developers

NestJS: quickstart

Install and first-use steps for sending events to Feralin with NestJS. Code samples come from the SDK's own README and statuses from the capability record.

Install

@feralin/nest 0.1.0 is published on npm; install it with your package manager using the command below.

npm install @feralin/node @feralin/nest

First use

import { FeralinModule, CurrentFeralin, type RequestFeralin } from "@feralin/nest";

@Module({
  imports: [
    FeralinModule.forRoot({
      projectKey: process.env.FERALIN_PROJECT_KEY!, // pk_… anahtarı
      collectUrl: "https://collect.example.com",
      resolveConsent: (req) => izniOku(req), // { analytics, advertising }
    }),
  ],
})
export class AppModule {}

@Controller()
export class OrdersController {
  @Post("siparis")
  create(@CurrentFeralin() feralin: RequestFeralin) {
    feralin.track("order_completed", { order_id: "ord_1" });
  }
}

Code samples are taken as they are from sdks/node-nest/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

NestJS capability status
CapabilityStatus
Event sendingSupported
Batch sendingPartial
Consent handlingSupported
IdentitySupported
AttributionNot applicable
Deep linksNot applicable
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

NestJS verification chain
LinkStatus
SourcePassed
BuildPassed
TestPassed
Registry publicationPassed
Clean installPassed
Event receiptPassed
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.