JSPM

qualsi-ai-tracker

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 23
    • Score
      100M100P100Q59948F
    • License ISC

    AI Traffic Analysis Tool for Modern Websites

    Package Exports

    • qualsi-ai-tracker
    • qualsi-ai-tracker/dist/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (qualsi-ai-tracker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Qualsi AI Tracker

    AI Traffic Analysis Tool for Modern Websites

    Overview

    Qualsi AI Tracker is a lightweight middleware for Node.js applications that detects and logs AI bot traffic to your website. It identifies known AI crawlers like GPTBot, Claude, Perplexity, and others, helping you understand how AI systems interact with your content.

    Installation

    npm install qualsi-ai-tracker

    or

    yarn add qualsi-ai-tracker

    Usage

    Express.js

    const express = require('express');
    const { initialize } = require('qualsi-ai-tracker');
    
    const app = express();
    
    // Initialize with API key and automatically register middleware
    initialize('your-api-key-here', app);
    
    // Or register manually
    // const { aiTrackerMiddleware } = require('qualsi-ai-tracker');
    // app.use(aiTrackerMiddleware);
    
    app.get('/', (req, res) => {
      res.send('Hello World!');
    });
    
    app.listen(3000, () => {
      console.log('Server running on port 3000');
    });

    NestJS

    // main.ts
    import { NestFactory } from '@nestjs/core';
    import { AppModule } from './app.module';
    import { initialize } from 'qualsi-ai-tracker';
    
    async function bootstrap() {
      const app = await NestFactory.create(AppModule);
      
      // Initialize the AI tracker middleware
      initialize('your-api-key-here', app.getHttpAdapter().getInstance());
      
      await app.listen(3000);
    }
    bootstrap();

    Features

    • Detects known AI crawlers (GPTBot, Claude, Perplexity, etc.)
    • Identifies suspicious traffic patterns
    • Logs bot activity to a central service
    • Lightweight with minimal dependencies
    • TypeScript support

    License

    ISC