New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@askdoppler/core

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@askdoppler/core

Doppler Core: AI SEO / AEO traffic monitoring & intent detection, logging, and reporting for framework connectors.

latest
Source
npmnpm
Version
0.2.7
Version published
Maintainers
1
Created
Source

@askdoppler/core

Doppler Core is the heart of Doppler's AI SEO toolkit.
It provides traffic source detection, intent inference, and logs relevant AI/LLM platform requests to Doppler for analytics and monitoring.

Features

  • Detects AI platform requests (OpenAI, Perplexity, etc) based on headers and user-agent
  • Infers traffic intent (e.g., "browse" or "crawl")
  • Framework-agnostic: plug into Nuxt, Next.js, Express, and more
  • Sends logs to Doppler API for analysis (non-blocking)

Usage

  • Install:
bun add @askdoppler/core
yarn add @askdoppler/core
npm install @askdoppler/core
  • Detect and log a request:
import { getSource, logCrawl, handleCrawl } from '@askdoppler/core';

// Simple usage in any Node.js/JS context:
const detection = getSource(request); // returns { source, intent, detected }

// If detected, log:
if (detection.detected) {
  await logCrawl({
    ...detection,
    userAgent: request.headers['user-agent'] || '',
    destinationURL: request.url,
    headers: request.headers,
  });
}
  • Environment Variable:

Set your Doppler API key in the environment:

DOPPLER_API_KEY=your-api-key-here

API

  • getSource(req) : Detects if request is from an AI platform and returns { source, intent, detected }
  • logCrawl(payload, apiKey?) : Logs a crawl event to Doppler API
  • handleCrawl(req, apiKey?) : Detects and logs in one step, for middleware

License

MIT License

Keywords

doppler

FAQs

Package last updated on 27 May 2025

Did you know?

Socket

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.

Install

Related posts