Skip to content
Fourohtwo

bild.halowerk.com/v1/dark-mode-check

Render a page in light and in dark colour scheme (prefers-color-scheme) in headless Chrome and report whether it has a dark mode, which text fails WCAG contrast in dark mode and what got worse compared with light mode. Renders the HTML (or a fetched page with up to 3 inlined stylesheets) twice in a fresh sandboxed headless Chrome context, scripts disabled and all network requests blocked: once wit

BaseAnswering
POSThttps://bild.halowerk.com/v1/dark-mode-check

Uptime100% of 5 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://bild.halowerk.com/v1/dark-mode-check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"html":"<!doctype html><html><head><style>body{background:#fff;color:#222}@media (prefers-color-scheme:dark){body{background:#121212;color:#e0e0e0}a{color:#1a0dab}}</style></head><body><h1>Pricing</h1><p>Plans start at 5 EUR. <a href=\"#faq\">Read the FAQ</a></p></body></html>"}),
});
console.log(await res.json());

Example input

{
  "html": "<!doctype html><html><head><style>body{background:#fff;color:#222}@media (prefers-color-scheme:dark){body{background:#121212;color:#e0e0e0}a{color:#1a0dab}}</style></head><body><h1>Pricing</h1><p>Plans start at 5 EUR. <a href=\"#faq\">Read the FAQ</a></p></body></html>"
}