Skip to content
GEO AI
AnalyzerCLIDocumentationSpecificationContact
Documentation

Getting Started

  • Introduction
  • Quick Start
  • Choose Your Package

GEO Specification

  • Overview
  • llms.txt
  • AI Metadata
  • Crawler Rules
  • Structured Signals
  • Scoring
  • Recommendations

Packages

  • GEO AI Core
  • GEO AI Next
  • GEO AI NestJSnew
  • NestJS — Module Setup
  • NestJS — Configuration
  • NestJS — Service API
  • NestJS — Middleware
  • NestJS — Guard
  • NestJS — Interceptor
  • NestJS — Decorators
  • NestJS — Content Provider
  • GEO AI Woo
  • GEO AI Shopify

Analyzer

  • Overview
  • Scoring
  • Recommendations

CLI

  • GEO AI CLI

Integrations

  • Laravelsoon

Reference

  • Configuration
  • API Reference
  • FAQ
DocsPackagesNestjsDecorators

Decorators

geo-ai-nest ships two custom decorators for fine-grained control over AI bot handling and metadata attachment.

@IsAIBot()

Parameter decorator that injects the detected AI bot name (or null) into a handler.

typescript
import { Controller, Get } from '@nestjs/common';
import { IsAIBot } from 'geo-ai-nest';

@Controller('pages')
export class PagesController {
  @Get(':slug')
  getPage(@IsAIBot() bot: string | null) {
    if (bot) {
      // Serve AI-optimized content for this bot
      console.log(`Request from AI bot: ${bot}`);
    }
    return { title: 'My Page' };
  }
}

@GeoAIMeta()

Class/method decorator that attaches GEO metadata to a controller or handler via Reflect.metadata. Useful with custom guards or interceptors that read metadata. Retrieve it with Reflector using the GEO_AI_META_KEY constant ('geo-ai-meta').

typescript
import { Controller, Get } from '@nestjs/common';
import { GeoAIMeta } from 'geo-ai-nest';

@Controller('products')
@GeoAIMeta({ priority: 'high', includeContent: true })
export class ProductsController {
  @Get(':id')
  getProduct() { /* ... */ }
}
PreviousNestJS — InterceptorNextNestJS — Content Provider

On this page

  • @IsAIBot()
  • @GeoAIMeta()
GEO AI

AI Search Optimization

AnalyzerCLIDocumentationSpecificationContactPrivacy Policy

© 2026 GEO AI · Open Source · MIT License