Scalar API Docs
You can self-host a Scalar API Reference (docs) by embedding their JS component. For example:
<!doctype html>
<html>
<body>
<div id="app"></div>
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
<script>
Scalar.createApiReference('#app', {
url: '/path/to/your/openapi.json', // point to your OpenAPI spec
// optional proxyUrl or other config
})
</script>
</body>
</html>And thats it.
Automated threat defence with Cloudflare Turnstile