mirror of
https://github.com/hanzoai/a.git
synced 2026-10-30 18:50:12 +00:00
One-line <script> loaders that mount Hanzo widgets on any site: /chat hz_ widget key -> Ask-AI bubble (streams /v1/chat/completions) /analytics pk_ ingest key -> [email protected] + Annotate /checkout pk_ pub key -> [email protected] hosted checkout Tiny, framework-free, Shadow-DOM isolated loaders; secret keys (hk-/sk-) refused; missing key -> warn, no crash. Served by ghcr.io/hanzoai/static. Widget builds vendored. Behavior-tested (jsdom + headless gallery render).
987 B
987 B
a.hanzo.ai
Drop a Hanzo widget onto any site. One line.
<script src="https://a.hanzo.ai/chat" data-key="hz_..."></script>
<script src="https://a.hanzo.ai/analytics" data-key="pk_..."></script>
<script src="https://a.hanzo.ai/checkout" data-key="pk_..."></script>
- chat — a floating Ask-AI bubble that streams from
api.hanzo.ai/v1/chat/completions.data-keyis a client-safe hz_ widget key. - analytics — zero-config event capture + Annotate, to
api.hanzo.ai/v1/analytics.data-keyis a publishable pk_ ingest token. - checkout — hosted checkout; tag any button
data-hanzo-checkout.data-keyis a publishable pk_ key.
Each src is a tiny, framework-free loader that reads its data-*, refuses
secret keys, lazy-loads the widget, and mounts it inside a Shadow root so it can
never break the host page. Get a key at hanzo.id.
Served by ghcr.io/hanzoai/static. See LLM.md for internals.