DEV Community

kinonotabi
kinonotabi

Posted on

One Zero-Dependency Cloudflare Worker for 92+ Tech Stack Audits, Chrome Extension Intel & OpenAPI/MCP

When building micro-APIs and developer tools as a solo engineer, operational sprawl kills momentum faster than missing features. Maintaining five separate Express servers, five Dockerfiles, five rate-limit stores, and five sets of OpenAPI docs means you spend more time babysitting infrastructure than shipping detectors.

We consolidated five pure-HTTP intelligence engines—Shopify storefront analysis, WooCommerce plugin detection, Website SEO & 92+ Tech Stack auditing, Chrome Web Store extension analytics, and Google Merchant Center 20-point compliance auditing—into one zero-dependency Cloudflare Worker gateway (tlp-intel-api, v2.3.0).

That single Worker powers our public interactive web tools, our OpenAPI 3.0 developer endpoints, and a keyless Streamable HTTP Remote MCP server for AI coding agents.

1. Architecture: One Edge Gateway, Five Deterministic Engines

Keeping every engine strictly dependency-free JavaScript means the entire multi-product backend deploys in seconds with zero node_modules bloat:

Module Size Responsibility
src/index.js 654 LOC Routing, auth gateway, /public/demo rate limiter (15/hr/IP + 30m cache), SSRF guard
src/site-audit.js 1,946 LOC Technical SEO health scoring, 92 tech stack signatures, JSON-LD @type parser, robots.txt / sitemap.xml probe
src/woo.js 1,488 LOC 78 WooCommerce plugin fingerprints, WordPress/WC versions, Store API pricing stats
src/shopify.js 647 LOC 62 Shopify app fingerprints, theme extraction, /products.json catalog metrics
src/cws.js 336 LOC Chrome Web Store MV3 listing parser, user/rating stats, deterministic opportunity scoring
src/mcp.js Streamable HTTP Keyless Remote MCP endpoint (https://mcp.tlprojectlab.xyz/mcp) exposing all 5 tools to AI agents

Every route also publishes machine-readable contracts at openapi.json plus per-domain specs (/openapi/site-audit.json, /openapi/cws.json, /openapi/shopify.json, /openapi/woo.json, /openapi/gmc.json).

2. Sub-Second Website SEO & 92+ Tech Stack Auditing

Traditional SEO crawlers either take 15–30 seconds per page inside headless browsers or require bulky enterprise SaaS plans just to check whether a landing page ships clean metadata and structured data.

Our site-audit.js engine executes bounded pure-HTTP checks against the target HTML, response headers, /robots.txt, and /sitemap.xml. Running it live against stripe.com returns in 972 ms:

{
  "domain": "stripe.com",
  "httpStatus": 200,
  "seoHealthScore": 89,
  "h1Count": 2,
  "hasRobotsTxt": true,
  "hasSitemapXml": true,
  "detectedTechnologies": ["Next.js", "Cloudflare"],
  "jsonLdTypes": [
    "WebSite",
    "Organization",
    "Person",
    "ImageObject",
    "ContactPoint",
    "Place",
    "PostalAddress"
  ],
  "topIssues": ["multiple_h1", "images_missing_alt"]
}
Enter fullscreen mode Exit fullscreen mode

Notice how immediately actionable that payload is for automated CI/CD checks, pre-launch SEO regressions, or agency prospecting scripts: you get exact jsonLdTypes, robots.txt/sitemap.xml presence, detected frameworks/CDNs, and normalized issue codes (multiple_h1, images_missing_alt, title_too_long) in under one second.

3. Deterministic Chrome Web Store Market Research (cws.js)

If you build browser extensions, finding underserved niches manually on the Chrome Web Store is tedious. Clicking through dozens of detail pages to compare install counts, Manifest V3 migration status, and user frustration takes hours.

Our cws.js engine extracts structured listing telemetry and calculates a deterministic cloneOpportunityScore (0–100) weighting active install demand against rating dissatisfaction. Compare two live production responses sampled directly from our API:

Extension Version & MV Active Users Rating (Count) Opportunity Score
AdBlock (gighmmpiobklfepjocnamgkkbiglidom) 6.56.0 · MV3 65,000,000 3.91 (290,237) 52
Bitwarden Password Manager (nngceckbapebfimnlniiiahkandclblb) 2026.11.0 · MV3 7,000,000 2.75 (8,251) 79

A multi-million-user extension sitting at 2.75 stars immediately surfaces a high-friction user base (cloneOpportunityScore: 79), whereas a higher-rated incumbent scores lower (52). For batch market scans across hundreds of extension IDs and review exports, the same pure-HTTP engine runs on Apify as a Pay-Per-Event Actor ($5 / 1k extensions).

4. Protecting a Public Edge Sandbox Without Friction

Offering free, no-login web tools on top of a commercial API introduces two obvious risks: abuse and runaway upstream fetches. Three lightweight guards inside index.js keep operating cost at $0/month on Cloudflare's edge:

  1. Origin + Client Allowlist: /public/demo accepts calls from our own web tools (tlprojectlab.xyz) or our open-source MCP client header, preventing random hotlinking.
  2. Sliding Window Rate Limit + 30-Minute Edge Cache: Each IP gets 15 uncached checks per hour, while repeated queries for the same (tool, target) pair return instantly from cache.
  3. Strict SSRF Validation: Blocks private IPv4/IPv6 ranges, localhost, cloud metadata IPs, and unsafe redirect chains before opening any outbound socket.

Try the Free Tools, OpenAPI Spec, or Batch Actors

If you are running multi-tool APIs on Cloudflare Workers, how are you handling OpenAPI generation and free-tier abuse prevention?

Top comments (0)