The simplest way to embed RapiDoc. Import the ES module directly from a CDN (unpkg or jsdelivr) and add the <rapi-doc> custom element with your OpenAPI spec URL. No build tools or backend server required.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"> <!-- Required: RapiDoc uses UTF-8 characters -->
<script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
</head>
<body>
<rapi-doc
spec-url="https://raw.githubusercontent.com/mrin9/RapiDoc/master/docs/specs/petstore.yaml"
> </rapi-doc>
</body>
</html>