Install Clippy via CDN
mainYou can use ClippyJS directly in the browser without any build tools by importing the modules from a CDN. Use initAgent to initialize an agent and agents to access specific characters.
<!doctype html>
<html
<body
<script type="module">
import { initAgent } from "https://cdn.jsdelivr.net/npm/clippyjs/dist/index.mjs";
import * as agents from "https://cdn.jsdelivr.net/npm/clippyjs/dist/agents/index.mjs";
const agent = await initAgent(agents.Clippy);
agent.show();
agent.speak("Hello! I'm Clippy, your virtual assistant.");
</script>
</body>
</html>