Integrations & Examples
Copy-ready starter examples, framework wrappers, and an AI coding agent skill for AIsh.li in our official aish-li/aish.li-integrations repository under the aish-li GitHub organization.
Starter Examples
Browse and copy complete working starters directly from aish-li/aish.li-integrations:
| Example | Use Case | Source File |
|---|---|---|
| Static HTML Embed | Minimal HTML5 page embedding <ai-chat> |
examples/html/index.html |
| React TypeScript Component | Reusable <AiChatWidget> wrapper with JSX types and idempotent script loading |
examples/react/AiChatWidget.tsx |
| Node.js SSE Streaming | Zero-dependency Node.js 20+ ESM script streaming POST /v1/responses |
examples/api/stream-response.mjs |
| Conversational Form CLI | Interactive curl + jq walkthrough for progressive POST /v1/form validation |
examples/api/conversational-form.sh |
Framework Notes
Before deploying an embedded widget to production, whitelist every origin under Widget Sites and mark the target agent as Public on the Agents page (see the Chat Widgets Guide for all <ai-chat> attributes):
- Static HTML & CMS (WordPress, Webflow, Shopify): Paste
<script type="module" src="https://widget.aish.li/widget.js" async></script>and<ai-chat agent="your-account/your-agent"></ai-chat>right before</body>(seeexamples/html/index.html). - React & Next.js: Copy
examples/react/AiChatWidget.tsxto loadwidget.jsonce insideuseEffectand declare'ai-chat'in TypeScript JSXIntrinsicElements. - Vue: Register
ai-chatin your Vite/Vue config undercompilerOptions.isCustomElement: (tag) => tag === 'ai-chat'so Vue treats<ai-chat>as a native custom element. - Astro: Place the module
<script>and<ai-chat ... />tags directly inside your.astrolayout or page component.
For backend integrations with POST /v1/responses or POST /v1/form, generate a server-side secret on API Keys and follow the API Reference and Forms API Guide.
AI Coding Agent Skill (SKILL.md)
The skills/aish-li/SKILL.md skill teaches AI coding assistants (GitHub Copilot, Claude Code, Cursor, Antigravity) how to wire up <ai-chat> embeds, OpenResponses SSE streaming, and JSON Schema conversational forms accurately.
Install it into your project's agent skills directory:
- GitHub Copilot:
.github/skills/aish-li/SKILL.md - Claude Code:
.claude/skills/aish-li/SKILL.md - Antigravity / Open Agents:
.agents/skills/aish-li/SKILL.md
mkdir -p .agents/skills/aish-li
curl -fsSL https://raw.githubusercontent.com/aish-li/aish.li-integrations/main/skills/aish-li/SKILL.md \
-o .agents/skills/aish-li/SKILL.md
AI tools and crawlers can also read our live llms.txt index, llms-full.txt, and OpenAPI 3.1 specification.
Contributing & Support
Pull requests and GitHub Issues are welcome on aish-li/aish.li-integrations for new starter examples, framework wrappers, and improvements to SKILL.md.
For account, billing, or platform support questions, please reach out via our Contact page.