Skip to content

The headless browser for AI agents and web scraping

docs: remove duplicate rendering guides

SGavrl69cdf19a526c
diff --git a/README.md b/README.md
index a8311de7..7dbe71ad 100644
--- a/README.md
+++ b/README.md
@@ -279,9 +279,10 @@ The current implementation covers block, inline, flex, grid, table, float,
positioning, overflow, transform, text, image, SVG, canvas, background, border,
and animation paths. It remains an evolving independent
engine: long-tail CSS, some Web APIs, media playback, compositor effects, and
-platform font rasterization may differ from Chromium. See the
-[rendering guide](docs/Rendering-screenshots-screencasting-and-PDF.md) for
-scrolling, screencasting, raw CDP, MCP, PDF limits, and comparison methodology.
+platform font rasterization may differ from Chromium. The existing
+[Puppeteer](docs/Use-with-Puppeteer.md),
+[Playwright](docs/Use-with-Playwright.md), and
+[MCP](docs/Use-the-MCP-server.md) guides cover their capture APIs and limits.
### Start the CDP server
diff --git a/RENDER.md b/RENDER.md
deleted file mode 100644
index 1876fbc3..00000000
--- a/RENDER.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# Obscura rendering engine
-
-Obscura has a pure-Rust layout and paint pipeline for browser automation. The
-`render` feature powers live DOM geometry, viewport and
-full-page screenshots, CDP screencasting, and raster PDF export without
-launching Chromium.
-
-Official release archives and the Docker image are built with rendering. When
-building from source, enable it explicitly:
-
-```bash
-cargo build --release --features render
-
-# Rendering and stealth
-cargo build --release --features render,stealth
-```
-
-Rendering and stealth are complementary release capabilities. The stealth
-build retains the entire rendering and capture surface while adding the
-wreq/BoringSSL transport and browser-identity protections.
-
-## Capture surfaces
-
-- CLI PNG: `obscura fetch https://example.com --screenshot page.png`
-- Puppeteer/Playwright: `page.screenshot()` and `page.pdf()` over CDP
-- Raw CDP: `Page.captureScreenshot`, `Page.startScreencast`, and
- `Page.printToPDF`
-- MCP: `browser_screenshot` and `browser_pdf` in render-enabled builds
-
-Screencasting is an activity-driven CDP stream. Consumers must acknowledge
-each `Page.screencastFrame` with `Page.screencastFrameAck`; it is not a desktop
-video-recorder API.
-
-## Implemented rendering coverage
-
-The engine includes selector matching and cascade, media queries, inherited
-and relative values, block and inline formatting, flexbox, grid, tables,
-floats, positioned and sticky elements, overflow and scrolling, transforms,
-clipping, backgrounds, borders, shadows, shaped text and web fonts, images,
-SVG, canvas, generated content, and animation sampling. Layout is retained and
-invalidated by relevant DOM/style/resource mutations so geometry and capture
-observe the same page state.
-
-This is browser-rendering support, not a claim that every long-tail CSS,
-DOM, compositor, font, or graphics behavior is already identical to Chromium.
-Test the sites and workflows that matter to you and report reduced fixtures
-for reproducible differences.
-
-## Architecture
-
-`obscura-render` consumes the shared DOM and computed style state. Taffy
-provides the flex/grid foundation; Obscura layers browser formatting behavior,
-text shaping, intrinsic replaced-element sizing, retained layout, and a
-CPU-backed paint pipeline on top. `obscura-js` exposes renderer-owned geometry
-to browser APIs, `obscura-browser` owns resource preparation and capture, and
-`obscura-cdp` maps the result to Chrome DevTools Protocol methods.
-
-PDF output is intentionally raster-backed. It honors print media, backgrounds,
-paper size, margins, landscape, scale, and page ranges, but does not yet provide
-selectable PDF text, tagged structure, headers/footers, outlines, or complete
-CSS paged-media support.
-
-## Verification
-
-Rendering changes are checked with deterministic fixtures first, then a
-real-site suite against Chromium. Captures must use the same viewport, identity,
-settle policy, animation time, scroll position, and output boundary. Pixel
-error is a regression tripwire, not a standalone correctness verdict; geometry,
-structural edges, missing resources, nonblank output, and reduced repros decide
-whether a difference is real.
-
-See [Rendering, screenshots, screencasting, and PDF](docs/Rendering-screenshots-screencasting-and-PDF.md)
-for user-facing examples and current limits.
diff --git a/docs/Connect-Puppeteer-or-Playwright.md b/docs/Connect-Puppeteer-or-Playwright.md
index b7fabf70..09c3b25a 100644
--- a/docs/Connect-Puppeteer-or-Playwright.md
+++ b/docs/Connect-Puppeteer-or-Playwright.md
@@ -96,8 +96,8 @@ await page.pdf({ path: 'page.pdf', format: 'A4', printBackground: true });
```
Rendering is included in official binaries and requires `--features render`
-for source builds. See [Rendering, screenshots, screencasting, and PDF](Rendering-screenshots-screencasting-and-PDF.md)
-for scrolling, raw CDP examples, and current output limits.
+for source builds. The client-specific guides cover scrolling, raw CDP
+screencasting, and current output limits.
## Current limits
diff --git a/docs/README.md b/docs/README.md
index 1370efce..1ce73e70 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -27,7 +27,6 @@ the wreq/BoringSSL transport and browser-identity protections.
## Guides
- [Build from source](Build-from-source.md)
-- [Rendering, screenshots, screencasting, and PDF](Rendering-screenshots-screencasting-and-PDF.md)
- [Configure stealth and proxies](Configure-stealth-and-proxies.md)
- [Markdown extraction](Markdown-extraction.md)
- [Use with Puppeteer](Use-with-Puppeteer.md)
diff --git a/docs/Rendering-screenshots-screencasting-and-PDF.md b/docs/Rendering-screenshots-screencasting-and-PDF.md
deleted file mode 100644
index cdf5bb0f..00000000
--- a/docs/Rendering-screenshots-screencasting-and-PDF.md
+++ /dev/null
@@ -1,217 +0,0 @@
-Rendering is available in official release archives and Docker images. Source
-builds must enable the `render` feature:
-
-```bash
-cargo build --release --features render
-```
-
-Use `--features render,stealth` when the same binary also needs the optional
-stealth transport.
-
-## CLI screenshots
-
-Capture the settled page as a PNG:
-
-```bash
-obscura fetch https://example.com --screenshot page.png --timeout 30
-# Equivalent short form: obscura fetch https://example.com -s page.png
-```
-
-JavaScript supplied with `--eval` runs before capture, so it can prepare or
-scroll the page:
-
-```bash
-obscura fetch https://example.com \
- --eval "window.scrollTo(0, document.documentElement.scrollHeight)" \
- --screenshot bottom.png
-```
-
-The CLI captures one URL and writes PNG. An omitted `--wait` uses adaptive
-settling with a five-second cap; an explicit `--wait N` requests a fixed delay
-of `N` seconds. Navigation and the capture path prepare discovered images and
-fonts within bounded deadlines rather than waiting indefinitely for a broken
-resource.
-
-## Puppeteer
-
-Start the render-enabled CDP server:
-
-```bash
-obscura serve --port 9222
-```
-
-Then use the standard Puppeteer APIs:
-
-```js
-import puppeteer from 'puppeteer-core';
-
-const browser = await puppeteer.connect({
- browserWSEndpoint: 'ws://127.0.0.1:9222/devtools/browser',
-});
-const page = await browser.newPage();
-await page.setViewport({ width: 1440, height: 1000, deviceScaleFactor: 1 });
-await page.goto('https://example.com', { waitUntil: 'load' });
-
-await page.screenshot({ path: 'viewport.png' });
-await page.screenshot({ path: 'full-page.png', fullPage: true });
-await page.pdf({
- path: 'page.pdf',
- format: 'A4',
- printBackground: true,
-});
-
-await browser.disconnect();
-```
-
-## Playwright
-
-Use `connectOverCDP`, not Playwright's native `connect` protocol:
-
-```js
-import { chromium } from 'playwright-core';
-
-const browser = await chromium.connectOverCDP('ws://127.0.0.1:9222');
-const context = browser.contexts()[0] || await browser.newContext();
-const page = await context.newPage();
-await page.setViewportSize({ width: 1440, height: 1000 });
-await page.goto('https://example.com', { waitUntil: 'load' });
-
-await page.screenshot({ path: 'viewport.png' });
-await page.screenshot({ path: 'full-page.png', fullPage: true });
-await page.pdf({ path: 'page.pdf', format: 'A4', printBackground: true });
-
-await browser.close();
-```
-
-## Scrolling and capture
-
-Window and nested-element scrolling update renderer-owned geometry and paint.
-Fixed and sticky elements are sampled at the live scroll position.
-
-```js
-await page.evaluate(() => window.scrollTo(0, 1200));
-await page.screenshot({ path: 'scrolled.png' });
-
-await page.evaluate(() => {
- document.querySelector('.overflow-panel')?.scrollTo(0, 600);
-});
-await page.screenshot({ path: 'nested-scroll.png' });
-```
-
-`fullPage: true` captures document space independently of the current viewport
-scroll. A normal screenshot captures the currently visible viewport.
-
-## Raw CDP screenshot
-
-`Page.captureScreenshot` supports PNG, JPEG, and lossless WebP, viewport clips,
-scaling, full-page capture through `captureBeyondViewport`, device metrics, and
-transparent background overrides. `fromSurface: false` is not supported, and
-the WebP encoder does not currently accept a quality setting.
-
-Create a page-scoped CDP session using the API for your client:
-
-Puppeteer:
-
-```js
-const client = await page.createCDPSession();
-```
-
-Playwright:
-
-```js
-const client = await context.newCDPSession(page);
-```
-
-The examples below assume that `client` has been created with the appropriate
-line above.
-
-```js
-import fs from 'node:fs';
-
-const { data } = await client.send('Page.captureScreenshot', {
- format: 'png',
- captureBeyondViewport: true,
-});
-await fs.promises.writeFile('capture.png', Buffer.from(data, 'base64'));
-```
-
-## Screencasting
-
-Screencasting is exposed through CDP. Frames are emitted when navigation,
-input, timers, animation frames, or visual mutations produce new content.
-Clients must acknowledge frames; Obscura bounds unacknowledged work instead of
-letting a slow consumer grow memory without limit.
-
-```js
-client.on('Page.screencastFrame', async ({ data, metadata, sessionId }) => {
- // Consume or forward Buffer.from(data, 'base64') here.
- console.log(metadata.timestamp, metadata.scrollOffsetY);
- await client.send('Page.screencastFrameAck', { sessionId });
-});
-
-await client.send('Page.startScreencast', {
- format: 'jpeg',
- quality: 80,
- maxWidth: 1280,
- maxHeight: 720,
- everyNthFrame: 1,
-});
-
-// ...navigate and interact...
-
-await client.send('Page.stopScreencast');
-await client.detach();
-```
-
-This is an activity-driven page stream, not desktop/window capture or a
-guarantee of a fixed frame rate. Playwright's `page.video()` is a separate
-desktop-capture workflow and is not implemented; use the CDP stream above when
-page frames are the required output.
-
-## PDF export
-
-Puppeteer and Playwright `page.pdf()` route to `Page.printToPDF`. Raw CDP can
-return Base64 directly or a stream read with `IO.read` and closed with
-`IO.close`.
-
-The exporter uses print-media style and supports paper dimensions, margins,
-landscape, scale, backgrounds, and page ranges. Output is raster-backed, so
-text is not selectable/searchable and tagged PDFs, outlines, headers/footers,
-`preferCSSPageSize`, and complete CSS `@page` sizing are not yet available.
-
-## MCP visual output
-
-Render-enabled MCP servers expose:
-
-- `browser_screenshot`: returns the current page as an MCP PNG image content
- block.
-- `browser_pdf`: returns the current page as an embedded `application/pdf`
- resource.
-
-The screenshot tool accepts optional CSS-pixel `width` and `height`. The PDF
-tool accepts `landscape`, `print_background`, `scale`, `paper_width`,
-`paper_height`, and `margin_top` / `margin_bottom` / `margin_left` /
-`margin_right`; paper and margin values are inches.
-
-```bash
-obscura mcp
-# or
-obscura mcp --http --host 127.0.0.1 --port 3000
-```
-
-Navigate first, then call the visual tool. MCP does not expose streaming
-screencast frames; use the CDP API for that workflow.
-
-## Current boundaries
-
-The current renderer implements block and inline formatting, flexbox, grid,
-tables, floats, positioned/fixed/sticky
-boxes, transforms, overflow, text and web fonts, images, SVG, canvas,
-backgrounds, borders, clipping, generated content, and animation sampling.
-
-It is still an evolving browser engine. Long-tail CSS, service workers, some
-Web APIs, native media playback, GPU/compositor effects, and exact platform
-font rasterization can differ from Chromium. Treat visual comparisons as
-evidence: confirm both captures succeeded and are nonblank, compare the same
-viewport/wait/identity/scroll/animation state, and inspect geometry and missing
-resources in addition to pixel error.
diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md
index 766c563e..4e3bc901 100644
--- a/docs/SUMMARY.md
+++ b/docs/SUMMARY.md
@@ -12,7 +12,6 @@
## Guides
* [Build from source](Build-from-source.md)
-* [Rendering, screenshots, screencasting, and PDF](Rendering-screenshots-screencasting-and-PDF.md)
* [Configure stealth and proxies](Configure-stealth-and-proxies.md)
* [Markdown extraction](Markdown-extraction.md)
* [Use with Puppeteer](Use-with-Puppeteer.md)
diff --git a/docs/Use-the-MCP-server.md b/docs/Use-the-MCP-server.md
index ce6fb4d7..bf2f8631 100644
--- a/docs/Use-the-MCP-server.md
+++ b/docs/Use-the-MCP-server.md
@@ -90,8 +90,7 @@ stale after navigation, interaction, scrolling, or a framework rerender. Take
a fresh snapshot or interactive-element listing before acting again.
MCP exposes still-image and PDF output. It does not stream video frames; use
-CDP `Page.startScreencast` for activity-driven screencasting. See
-[Rendering, screenshots, screencasting, and PDF](Rendering-screenshots-screencasting-and-PDF.md).
+CDP `Page.startScreencast` for activity-driven screencasting.
## Claude Desktop
diff --git a/docs/Use-with-Playwright.md b/docs/Use-with-Playwright.md
index 67104bb0..b512ee42 100644
--- a/docs/Use-with-Playwright.md
+++ b/docs/Use-with-Playwright.md
@@ -139,9 +139,7 @@ await client.send('Page.stopScreencast');
await client.detach();
```
-Frames are activity-driven page captures, not fixed-rate desktop video. For
-detailed format and output limits, see
-[Rendering, screenshots, screencasting, and PDF](Rendering-screenshots-screencasting-and-PDF.md).
+Frames are activity-driven page captures, not fixed-rate desktop video.
## Disconnect
diff --git a/docs/Use-with-Puppeteer.md b/docs/Use-with-Puppeteer.md
index 7c4e7605..896de4c6 100644
--- a/docs/Use-with-Puppeteer.md
+++ b/docs/Use-with-Puppeteer.md
@@ -154,9 +154,7 @@ await client.send('Page.stopScreencast');
await client.detach();
```
-Frames are activity-driven page captures, not fixed-rate desktop video. For
-detailed format and output limits, see
-[Rendering, screenshots, screencasting, and PDF](Rendering-screenshots-screencasting-and-PDF.md).
+Frames are activity-driven page captures, not fixed-rate desktop video.
## Disconnect