
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@ontosdk/core
Advanced tools
Shared HTML→Markdown cleaning + AIO scoring engine. Powers @ontosdk/next, the Onto Read API, and the AIO scanner.
Shared HTML → Markdown cleaning + AIO (Agent Input Optimization) scoring engine.
Powers the Onto Read API (api.buildonto.dev), the @ontosdk/next SDK, and the public AIO scanner at buildonto.dev. One cleaning engine, one scoring model, one bot registry — used everywhere Onto reads or scores web pages.
npm install @ontosdk/core
import { extractContent, calculateAioScore, getHallucinationRisk } from '@ontosdk/core';
const html = await fetch('https://example.com').then(r => r.text());
const extraction = extractContent(html, 'https://example.com');
// → { markdown, title, headings, ... }
const scoring = calculateAioScore({
html,
markdownPayload: extraction.markdown,
targetUrl: 'https://example.com',
robotsAllowed: true,
isUsingOntoSdk: false,
});
// → { score, grade, insights, penalties, benefits, recommendations, bot_preview }
const risk = getHallucinationRisk(scoring.score, scoring.insights);
// → 'low' | 'medium' | 'high'
| Import | Returns |
|---|---|
@ontosdk/core | Everything from clean + score re-exported |
@ontosdk/core/clean | extractContent, ExtractionResult |
@ontosdk/core/score | calculateAioScore, getHallucinationRisk, scoreToGrade, AI_BOTS, matchBot, types |
Clean. Strips React/Tailwind/framework noise from HTML. Normalizes heading hierarchy. Extracts page title. Produces compact, semantic Markdown an AI agent can actually use — typically 10–100× smaller than the source HTML.
Score. Returns a subtractive-penalty AIO score (0–100) with structured insights — what's helping the page's AI readability, what's hurting it, and ranked recommendations. The same score the Onto Read API and public scanner return.
Match bots. Ships a registry of known AI crawlers (GPTBot, ClaudeBot, PerplexityBot, etc.) and a matchBot() helper for user-agent detection at the edge.
MIT — see LICENSE.
FAQs
Shared HTML→Markdown cleaning + AIO scoring engine. Powers @ontosdk/next, the Onto Read API, and the AIO scanner.
We found that @ontosdk/core 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
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

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.