import json HTML = """ DDGS Search Lab
Live playground for your DDGS Space

Search API, now with a UI that feels intentional.

Use this page to hit /search with your bearer token, tune the request, inspect the raw JSON, and preview the first results without leaving the browser.

Request

POST /search

Response

Live API output
Status Idle
Latency -
Result count -
Ready for a request
The top section is a card view. The lower section is raw JSON.
Raw JSON payload
No request sent yet.
""" def render_homepage(defaults: dict[str, object]) -> str: return HTML.replace("__DEFAULTS__", json.dumps(defaults))