Installation
Add a script tag
Section titled “Add a script tag”No build step, no install. Paste this into any HTML page:
<script src="https://cdn.jsdelivr.net/npm/mulling@1/dist/mulling.umd.js"></script><script>Mulling.defineElement();</script>
<mulling-status state="thinking"></mulling-status>You should see this:
@1 always loads the newest 1.x release. To lock an exact version, write mulling@1.0.0 instead.
Next: change the state as your AI works.
Use a package manager
Section titled “Use a package manager”If your project has a build step (Vite, Next.js, webpack and so on), install the package instead:
npm install mullingpnpm add mullingyarn add mullingThen import it. The quick start shows the code for plain JavaScript, React and Vue.
Requirements
Section titled “Requirements”- Current Chrome, Edge, Firefox or Safari.
- React 17 or later for the React component, Vue 3.3 or later for the Vue component.
- Types ship with the package and work with every TypeScript module resolution mode, including
NodeNext. Every entry point (a path you can import from, such asmulling/core) works with bothimportandrequire().