
Product
Microsoft Teams Notifications Are Now Available in Socket
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.
@ontosdk/next
Advanced tools
Optimize your Next.js site for AI agents in 2 minutes
The Onto SDK automatically converts your Next.js pages into AI-friendly Markdown and intelligently routes bot traffic to optimized endpoints. Reduce token usage by 95% and improve AI agent comprehension.
llms.txt from confignpm install @ontosdk/next
Run the initialization command to automatically generate your onto.config.ts and middleware.ts:
npx onto-next init
Update your package.json:
{
"scripts": {
"build": "next build && onto-next"
}
}
That's it! Your site is now optimized for AI agents.
The onto-next CLI scans your .next/server/app/ directory and converts rendered HTML pages to clean Markdown files in public/.onto/.
The Edge middleware:
.onto/*.md filesWhen AI agents request /llms.txt, the middleware dynamically generates it from your onto.config.ts file—no static file needed.
Auto-discovery component for AI agents. Injects link tags into your page head.
import { OntoHead } from '@ontosdk/next/components';
export default function RootLayout({ children }) {
return (
<html>
<head>
<OntoHead />
</head>
<body>{children}</body>
</html>
);
}
Wraps your app and automatically injects AI discovery tags with dynamic paths.
import { OntoProvider } from '@ontosdk/next/provider';
export default function RootLayout({ children }) {
return (
<OntoProvider baseUrl="https://example.com">
<html>
<head />
<body>{children}</body>
</html>
</OntoProvider>
);
}
# Optional: Enable Control Plane analytics
ONTO_API_KEY=onto_live_xxxx
ONTO_DASHBOARD_URL=https://app.buildonto.dev
interface OntoConfig {
name: string; // Site name (required)
summary: string; // Brief description (required)
baseUrl: string; // Base URL (required)
routes?: { // Key routes
path: string;
description: string;
}[];
externalLinks?: { // External resources
title: string;
url: string;
description?: string;
}[];
sections?: { // Custom markdown sections
heading: string;
content: string;
}[];
}
See LLMS_TXT_GUIDE.md for complete configuration documentation.
| Company | Bots |
|---|---|
| OpenAI | GPTBot, ChatGPT-User, OAI-SearchBot |
| Anthropic | ClaudeBot, Claude-User, anthropic-ai |
| Googlebot, Google-CloudVertexBot, Google-Extended | |
| Perplexity | PerplexityBot, Perplexity-User |
| Meta | Meta-ExternalAgent, Meta-ExternalFetcher |
| Others | CCBot, Bytespider, Applebot-Extended, cohere-ai, YouBot |
llms.txt manifest for site navigationUnlock analytics and dynamic features:
import { ontoMiddleware } from '@ontosdk/next/middleware';
// Export as default middleware
export { ontoMiddleware as middleware };
import type { OntoConfig, OntoRoute } from '@ontosdk/next';
import { generateLlmsTxt } from '@ontosdk/next';
// Generate llms.txt content
const llmsTxt = generateLlmsTxt(config);
Full TypeScript support with comprehensive type definitions for all exports.
MIT
Made with ❤️ by the Onto team
FAQs
Extracts semantic Markdown from React/Next.js pages for AI Agents
The npm package @ontosdk/next receives a total of 7 weekly downloads. As such, @ontosdk/next popularity was classified as not popular.
We found that @ontosdk/next demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.