Convert any webpage to markdown using Cloudflare's markdown.new. Clean, structured output for AI pipelines and content processing.
Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
Download → Next.js app
Use Download → Next.js app in the preview toolbar. You get a zip scaffold (Pro downloads rewrite preview `/view/.../api/*` paths to `/api/*` automatically).
Extract the zip and install dependencies
Unzip the archive, then run `pnpm install` (or npm / yarn) in the project folder.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions in the generated project for your product.
Run the app and open the pattern route
Run `pnpm dev`, open the setup/checklist page if present, then navigate to the generated pattern route and verify responses.
External services
app/page.tsxapp/layout.tsxREADME.mdnpm packages
7
Registry components
lib/scraper.tsCore scraping engine using Cloudflare markdown.new: fetches via https://markdown.new/<url>, parses response to extract title, URL source, and markdown content.
lib/actions.tsServer action entry point: URL validation with Zod, rate limiting, and orchestration of the markdown.new scraping pipeline.
Convert any webpage to markdown using Cloudflare's markdown.new. Clean, structured output for AI pipelines and content processing.
Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
Download → Next.js app
Use Download → Next.js app in the preview toolbar. You get a zip scaffold (Pro downloads rewrite preview `/view/.../api/*` paths to `/api/*` automatically).
Extract the zip and install dependencies
Unzip the archive, then run `pnpm install` (or npm / yarn) in the project folder.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions in the generated project for your product.
Run the app and open the pattern route
Run `pnpm dev`, open the setup/checklist page if present, then navigate to the generated pattern route and verify responses.
External services
app/page.tsxapp/layout.tsxREADME.mdnpm packages
7
Registry components
lib/scraper.tsCore scraping engine using Cloudflare markdown.new: fetches via https://markdown.new/<url>, parses response to extract title, URL source, and markdown content.
lib/actions.tsServer action entry point: URL validation with Zod, rate limiting, and orchestration of the markdown.new scraping pipeline.
Loading preview…
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Convert any webpage to markdown using Cloudflare's markdown.new. Clean, structured output for AI pipelines and content processing.
Loading preview…
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Convert any webpage to markdown using Cloudflare's markdown.new. Clean, structured output for AI pipelines and content processing.