{active.summary}
{active.description}
{/* Try it — most useful, put first */}
{children}
)
}
// Minimal, dependency-free shell highlighter for the curl examples — colors
// comments, commands, flags, quoted strings, and URLs.
function ShellBlock({ code }: { code: string }) {
const TOKEN =
/(#.*)|("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')|(https?:\/\/[^\s'"]+)|(\bcurl\b)|(\s-{1,2}[A-Za-z][\w-]*)/g
const nodes: React.ReactNode[] = []
let last = 0
let m: RegExpExecArray | null
let key = 0
while ((m = TOKEN.exec(code)) !== null) {
if (m.index > last) nodes.push(code.slice(last, m.index))
const [full, comment, str, url, cmd] = m
const cls = comment
? "italic text-muted-foreground/60"
: str
? "text-green-600 dark:text-green-400"
: url
? "text-blue-600 dark:text-blue-400"
: cmd
? "font-medium text-purple-600 dark:text-purple-400"
: "text-amber-600 dark:text-amber-400" // flag
nodes.push(
{full}
)
last = m.index + full.length
}
if (last < code.length) nodes.push(code.slice(last))
return (
{nodes}
)
}
function FlowStep({
n,
method,
path,
title,
onSelect,
children,
}: {
n: number
method: "GET" | "POST"
path: string
title: string
onSelect: () => void
children: React.ReactNode
}) {
return (
)
}
function OverviewSection({ onSelect }: { onSelect: (id: string) => void }) {
return (
PixelRAG indexes 8.28M Wikipedia articles as{" "} screenshot tiles and retrieves over the images directly. Using the API is a two-step flow: search for the tiles that match your query, then fetch each tile's screenshot.
article_id, tile_index, and chunk_index.
<img> tag.
Search, then fetch the top hit's screenshot:
https://pixelrag.ai/api — or query the index server directly at{" "}
https://api.pixelrag.ai.
The search API is a plain HTTP endpoint — wire it into any agent framework (Claude tool-use, OpenAI function calling, LangChain, custom harness) as a tool. A typical agent loop: search with text and/or an image, fetch tiles to read the screenshots, then answer from what they show.