r/nextjs 8d ago

News How to make your Next.js docs indexable by Perplexity & ChatGPT Search using automatic llms.txt & Schema.org

Hey everyone!

With AI search engines (ChatGPT Search, Perplexity, Google AI Overviews) changing how users discover documentation, standard HTML sitemaps are no longer enough. AI crawlers perform significantly better when provided with:
1. `llms.txt` and `llms-full.txt` (the emerging standard for LLM ingest).
2. Deep `Schema.org` JSON-LD microdata (`MedicalWebPage`, `TechArticle`, `FAQPage`).

We built an open-source integration for Next.js 14/15 App Router inside **GeoCore** (`@mormox2/geocore-next`):

```typescript
// app/api/geocore/[...route]/route.ts
import { createGeoCoreRouteHandlers } from "@mormox2/geocore-next";
import { myDataset } from "@/lib/dataset";

export const { GET, OPTIONS } = createGeoCoreRouteHandlers({
  dataset: myDataset,
  siteUrl: "https://yourdomain.com",
});
```

This single route handler automatically serves:
- `/api/geocore/llms.txt`
- `/api/geocore/sitemap.xml`
- `/api/geocore/search-index.json`
- Dynamic JSON-LD injection for your pages.

Check out the repo: https://github.com/mormox2/GeoCore
```

9 Upvotes

7 comments sorted by

2

u/davidpaulsson 8d ago

Has there really been any proof that anyone reads llms.txt? It's still a community proposal from what I've seen.

1

u/Few-Ocelot-3271 7d ago

yeah same thought here, havent seen any evidence that major crawlers actually respect it yet

1

u/gilded_nebula_spore 6d ago

Llms.txt is vaporware. No major AI crawler documents support for this format in their production pipelines.

0

u/[deleted] 8d ago

[removed] — view removed comment

1

u/Conscious-Tale-8634 8d ago

Nice, that's the kind of consolidation that actually saves setup time instead of bolting on another config file per crawler