
Security News
Anthropic Identifies Biased Reasoning and Recklessness as Drivers of Claude’s PyPI Attack
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.
@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 36 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.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.

Research
/Security News
Malicious Chrome and Firefox extensions target Axiom Trade and Padre users, stealing session tokens and wallet data.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.