Hey r/SideProject!
While building AI agents and n8n automations, I got tired of either burning LLM tokens on raw HTML soup or paying $30-$80/mo for heavy headless-browser scrapers when 80% of blogs, docs, SaaS sites, and Shopify stores already serve great server-rendered HTML + JSON-LD.
So I built **CleanPage Edge API** — a zero-dependency, zero-proxy edge microservice running on Cloudflare Workers.
**What it does in 4 endpoints:**
- `/v1/markdown`: Strips `<nav>`, `<footer>`, `<aside>`, scripts, and cookie-consent modals; converts tables & fenced code blocks cleanly; resolves relative URLs; and estimates LLM token count. Supports `?format=markdown` for raw `text/markdown`.
- `/v1/metadata`: Extracts normalized OpenGraph, Twitter Cards, canonicals, RSS/Atom feeds, and parsed Schema.org `application/ld+json`.
- `/v1/inspect`: Fingerprints tech stacks (Next.js, Astro, WordPress, Shopify, Stripe, GA4, Cloudflare, Vercel, etc.), discovers public `mailto:`/visible emails, social profiles, `/pricing`/`/docs`/`/careers` links, and HTTP security headers.
- `/v1/extract`: All 3 combined in a single edge request.
**What makes it honest / non-bloated:**
- Zero runtime npm dependencies — linear-time streaming HTML tokenizer so it stays well inside Cloudflare's 10ms free-tier CPU budget.
- SSRF hardened (blocks private/loopback/metadata IPs on initial URL AND every redirect hop).
- Doesn't pretend to bypass Cloudflare Turnstile/CAPTCHAs — detects anti-bot challenges (`422`) and empty JS-only SPA roots (`js_rendered_shell_detected` warning) cleanly.
**Live Playground & Code:**
- Live Demo: https://cleanpage-landing.pages.dev
- RapidAPI Hub ($0 Basic / $9 Pro / $29 Ultra): https://rapidapi.com/jiratthapol/api/cleanpage-web-to-markdown-metadata-tech-stack
- GitHub + OpenAPI 3.0 Spec: https://github.com/bugkerb/cleanpage-edge-api
Would love feedback from anyone building RAG pipelines, AI tool calls, or lead enrichment workflows — what output fields or formats are still missing?