mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
33 lines
70 KiB
HTML
33 lines
70 KiB
HTML
<div class="is_View _col-_platformweb_foreground _fd-column _dsp-block _shrink-1 _minH-100vh _minW-auto"><main><section class="is_View _pr-_sm_24px _pl-_sm_24px _pr-_lg_32px _pl-_lg_32px _fd-column _pos-relative _ox-hidden _oy-hidden _mt-calc-1calc62003180138 _pt-calc128pxca886700654 _pb-64px _pr-16px _pl-16px"><div class="is_View _fd-column _pos-absolute _t-0px _r-0px _b-0px _l-0px _background-linear-grad664071341"></div><div class="is_View _fd-column _width-10037 _maxW-1280px _mr-auto _ml-auto _pos-relative _z-z-raised"><div class="is_View _fd-_lg_row _fd-column _items-center _justify-space-betwe3241 _gap-48px"><div class="is_View _width-_lg_5037 _fd-column _width-10037"><div class="is_Text _col-_light_muted-foreg108704142 _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-color-mixin305317882 _brc-color-mixin305317882 _borderBottomColor-color-mixin305317882 _borderLeftColor-color-mixin305317882 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin1739102746 _self-flex-start _mb-24px _pr-12px _pl-12px _pt-4px _pb-4px" data-slot="chip" style="opacity:1"><svg aria-hidden="true" class="lucide lucide-activity" fill="none" height="16" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"></path></svg><span>Live record updates</span></div><h1 class="is_Text font_heading _fs-_sm_f-size-11 _fs-_lg_text-6xl _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-10 _fw-497 _lh-1--19 _ls--0--012em _textWrap-balance _mb-24px" data-slot="display" style="transform:translateY(8px)">Your screen updates <br/>when the data does</h1><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _mb-32px _maxW-576px" data-slot="lede" style="transform:translateY(8px)">Open one stream and records reach the browser as they change — created, updated, deleted — with no polling loop and no timer deciding how stale a page is allowed to get. A subscription is a collection, or a single record inside it, and the access rule already guarding that collection decides what any given subscriber is allowed to receive.</p><div style="transform:translateY(8px)"><div class="is_View _fd-row _fwr-wrap _gap-16px"><a class="is_Text _o-0hover-0--92 _bg-0hover-neutral-100 _col-0hover-pure-black _bg-_light_foreground _col-_light_background _bxsh-_light_04px16px-6p44459065 _bg-_light_0hover-foreground _col-_light_0hover-background _col-pure-black _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-pure-white _bxsh-04px20px-2p736498123 _bbs-solid _bts-solid _bls-solid _brs-solid" data-fill="" data-slot="action" href="https://platform.hanzo.ai/api-keys">Start Building<!-- --> <svg aria-hidden="true" class="lucide lucide-arrow-right" data-i18n-mirror="true" fill="none" height="16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a><a class="is_Text _bg-0hover-color-mixin40471350 _btc-0hover-white-22 _brc-0hover-white-22 _borderBottomColor-0hover-white-22 _borderLeftColor-0hover-white-22 _col-0hover-pure-white _btc-_light_color-mixin1775990597 _brc-_light_color-mixin1775990597 _borderBottomColor-_light_color-mixin1775990597 _borderLeftColor-_light_color-mixin1775990597 _bg-_light_color-mixin1432854749 _col-_light_foreground _bxsh-_light_02px10px-4p401273020 _btc-_light_0hover-color-mixin2108231940 _brc-_light_0hover-color-mixin2108231940 _borderBottomColor-_light_0hover-color-mixin2108231940 _borderLeftColor-_light_0hover-color-mixin2108231940 _bg-_light_0hover-pure-white _col-_light_0hover-foreground _col-foreground _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-white-14 _brc-white-14 _borderBottomColor-white-14 _borderLeftColor-white-14 _bg-color-mixin1333059374 _bxsh-inset01px00639578201" data-slot="action" href="https://docs.hanzo.ai">View Documentation</a></div></div></div><div class="is_View _width-_lg_5037 _fd-column _width-10037"><div class="is_View _dsp-block _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-color-mixin464850329 _bbs-solid _bts-solid _bls-solid _brs-solid" style="opacity:1;transform:none"><div class="is_View _fd-row _justify-space-betwe3241 _items-center _mb-16px"><div class="is_View _fd-row _items-center _gap-12px"><div class="is_View _width-12px _height-12px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _background-color-mixin1739102746" data-motion="pulse"></div><span class="is_Text _col-quiet _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Live connection</span></div><div class="is_View _fd-row _items-center _gap-8px"><svg aria-hidden="true" class="lucide lucide-radio" fill="none" height="16" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M16.247 7.761a6 6 0 0 1 0 8.478"></path><path d="M19.075 4.933a10 10 0 0 1 0 14.134"></path><path d="M4.925 19.067a10 10 0 0 1 0-14.134"></path><path d="M7.753 16.239a6 6 0 0 1 0-8.478"></path><circle cx="12" cy="12" r="2"></circle></svg><span class="is_Text _col-quiet _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">One open stream</span></div></div><div class="is_View _fd-column _gap-16px"><div class="is_View _fd-row _height-56px _items-center _gap-12px _pt-16px _pr-16px _pb-16px _pl-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-rim _brc-rim _borderBottomColor-rim _borderLeftColor-rim _background-linear-grad1290193939 _bbs-solid _bts-solid _bls-solid _brs-solid"><svg aria-hidden="true" class="lucide lucide-zap" fill="none" height="20" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"></path></svg><span class="is_Text _col-text-second96872 _ws-inherit" data-slot="text">Records arrive as they change</span></div><div class="is_View _dsp-grid _gridTemplateColumns-repeat3minm577740846 _gap-16px _shrink-1 _minW-auto _minH-auto" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div class="is_View _fd-column _height-96px _justify-center _items-center _pt-16px _pr-16px _pb-16px _pl-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad777825096 _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _width-8px _height-8px _mb-8px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-primary" data-motion="pulse"></div><span class="is_Text _col-soft _fs-f-size-1 _lh-f-lineHeigh112920 _text-center" data-slot="text">Client 1</span><span class="is_Text _col-soft _fs-f-size-1 _lh-f-lineHeigh112920 _text-center" data-slot="text">Connected</span></div><div class="is_View _fd-column _height-96px _justify-center _items-center _pt-16px _pr-16px _pb-16px _pl-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad777825096 _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _width-8px _height-8px _mb-8px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-primary" data-motion="pulse"></div><span class="is_Text _col-soft _fs-f-size-1 _lh-f-lineHeigh112920 _text-center" data-slot="text">Client 2</span><span class="is_Text _col-soft _fs-f-size-1 _lh-f-lineHeigh112920 _text-center" data-slot="text">Connected</span></div><div class="is_View _fd-column _height-96px _justify-center _items-center _pt-16px _pr-16px _pb-16px _pl-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad777825096 _bbs-solid _bts-solid _bls-solid _brs-solid"><div class="is_View _width-8px _height-8px _mb-8px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-primary" data-motion="pulse"></div><span class="is_Text _col-soft _fs-f-size-1 _lh-f-lineHeigh112920 _text-center" data-slot="text">Client 3</span><span class="is_Text _col-soft _fs-f-size-1 _lh-f-lineHeigh112920 _text-center" data-slot="text">Connected</span></div></div><div class="is_View _minH-144px _ox-hidden _oy-hidden _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _bbs-solid _bts-solid _bls-solid _brs-solid"><pre class="is_Text font_mono _bg-_platformweb_light-darkv602359144 _col-codeInk _fs-f-size-1 _lh-1--4 _dsp-block _mt-0px _mr-0px _mb-0px _ml-0px _pt-12px _pr-12px _pb-12px _pl-12px _ox-auto _ws-pre _ff-f-family" data-slot="text"><code><span><span data-code="comment" data-face="italic">// Watch a collection</span>
|
|
</span><span><span data-code="keyword" data-face="bold">const</span><span data-code="ink"> stop = </span><span data-code="keyword" data-face="bold">await</span><span data-code="ink"> base</span>
|
|
</span><span><span data-code="ink"> .</span><span data-code="bright">collection</span><span data-code="punctuation">(</span><span data-code="punctuation">'</span><span data-code="string">messages</span><span data-code="punctuation">'</span><span data-code="punctuation">)</span>
|
|
</span><span><span data-code="ink"> .</span><span data-code="bright">subscribe</span><span data-code="punctuation">(</span><span data-code="punctuation">'</span><span data-code="string">*</span><span data-code="punctuation">'</span><span data-code="punctuation">,</span><span data-code="ink"> </span><span data-code="punctuation">(</span><span data-code="ink">e</span><span data-code="punctuation">)</span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">=></span><span data-code="ink"> </span><span data-code="punctuation">{</span>
|
|
</span><span><span data-code="ink"> console.</span><span data-code="bright">log</span><span data-code="punctuation">(</span><span data-code="ink">e.action</span><span data-code="punctuation">,</span><span data-code="ink"> e.record.id</span><span data-code="punctuation">);</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="bright">render</span><span data-code="punctuation">(</span><span data-code="ink">e.record</span><span data-code="punctuation">);</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">});</span>
|
|
</span><span><span data-code="comment" data-face="italic">// create | update | delete</span></span></code></pre></div></div></div></div></div></div></section><section class="is_View _pr-_sm_24px _pl-_sm_24px _pr-_lg_32px _pl-_lg_32px _fd-column _pt-80px _pb-80px _pr-16px _pl-16px"><div class="is_View _fd-column _width-10037 _maxW-1280px _mr-auto _ml-auto"><div class="is_View _text-_platformweb_center _dsp-block _mb-64px" style="transform:translateY(8px)"><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance _mb-16px" data-slot="title">What the stream gives you</h2><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _maxW-768px _mr-auto _ml-auto _mt-c-space-3--53" data-slot="lede">One connection, and the rules you already wrote deciding what goes down it</p></div><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-757446306 _gap-24px _shrink-1 _minW-auto _minH-auto" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad1875608204 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _fd-row _width-48px _height-48px _items-center _justify-center _mb-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _bg-raised"><svg aria-hidden="true" class="lucide lucide-activity" fill="none" height="24" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">One stream, server-sent</h3><p class="is_Text _col-soft" data-slot="text">A single long-lived HTTP response carries every update, so nothing special has to sit in front of it. The browser notices a dropped network and reconnects on its own.</p></div><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad1875608204 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _fd-row _width-48px _height-48px _items-center _justify-center _mb-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _bg-raised"><svg aria-hidden="true" class="lucide lucide-workflow" fill="none" height="24" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><rect height="8" rx="2" width="8" x="3" y="3"></rect><path d="M7 11v4a2 2 0 0 0 2 2h4"></path><rect height="8" rx="2" width="8" x="13" y="13"></rect></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">A collection, or one record</h3><p class="is_Text _col-soft" data-slot="text">Watch a whole collection and hear about everything that lands in it, or watch one record and hear only about that one. Change what you are watching without dropping the stream.</p></div><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad1875608204 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _fd-row _width-48px _height-48px _items-center _justify-center _mb-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _bg-raised"><svg aria-hidden="true" class="lucide lucide-globe" fill="none" height="24" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"></path><path d="M2 12h20"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">One broker per tenant</h3><p class="is_Text _col-soft" data-slot="text">An org's subscribers attach to that org's own broker, reading that org's own data. Two tenants using the same collection name are not sharing a topic, so there is no cross-tenant fan-out to get wrong.</p></div><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad1875608204 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _fd-row _width-48px _height-48px _items-center _justify-center _mb-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _bg-raised"><svg aria-hidden="true" class="lucide lucide-users" fill="none" height="24" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><path d="M16 3.128a4 4 0 0 1 0 7.744"></path><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><circle cx="9" cy="7" r="4"></circle></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">Deletes are checked too</h3><p class="is_Text _col-soft" data-slot="text">A delete is announced only to the subscribers whose rule would have let them read the record. Something you were never allowed to see does not reveal itself on the way out.</p></div><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad1875608204 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _fd-row _width-48px _height-48px _items-center _justify-center _mb-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _bg-raised"><svg aria-hidden="true" class="lucide lucide-clock" fill="none" height="24" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"></circle><path d="M12 6v6l4 2"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">The same data, not a copy of it</h3><p class="is_Text _col-soft" data-slot="text">The stream reads from the store the API reads. There is no separate event bus to keep in step, and nothing that can be current in one place and stale in the other.</p></div><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad1875608204 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _fd-row _width-48px _height-48px _items-center _justify-center _mb-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _bg-raised"><svg aria-hidden="true" class="lucide lucide-zap" fill="none" height="24" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">The rule is the filter</h3><p class="is_Text _col-soft" data-slot="text">What reaches a subscriber is decided by the collection's access rule, evaluated against the identity that opened the stream. It is the same predicate that guards the API, not a second one written for the stream.</p></div><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad1875608204 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _fd-row _width-48px _height-48px _items-center _justify-center _mb-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _bg-raised"><svg aria-hidden="true" class="lucide lucide-lock" fill="none" height="24" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><rect height="11" rx="2" ry="2" width="18" x="3" y="11"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">A grant, not your token</h3><p class="is_Text _col-soft" data-slot="text">A browser cannot put a header on the request that opens a stream. So you mint a short-lived grant on an ordinary authenticated call and spend it once, within thirty seconds — rather than putting a token that opens every service into a URL that every proxy and access log will keep.</p></div><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-linear-grad1875608204 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _fd-row _width-48px _height-48px _items-center _justify-center _mb-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _bg-raised"><svg aria-hidden="true" class="lucide lucide-shield" fill="none" height="24" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">Limits belong to the deployment</h3><p class="is_Text _col-soft" data-slot="text">How many streams and how many requests are settings on the deployment and counted once for the process, not copied onto each tenant — so a limit of two means two.</p></div></div></div></section><section class="is_View _pr-_sm_24px _pl-_sm_24px _pr-_lg_32px _pl-_lg_32px _fd-column _pt-80px _pb-80px _pr-16px _pl-16px _background-linear-grad1198262292"><div class="is_View _fd-column _width-10037 _maxW-1280px _mr-auto _ml-auto"><div class="is_View _text-_platformweb_center _dsp-block _mb-64px" style="transform:translateY(8px)"><span class="is_Text _col-_light_muted-foreg108704142 _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-color-mixin305317882 _brc-color-mixin305317882 _borderBottomColor-color-mixin305317882 _borderLeftColor-color-mixin305317882 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin1739102746 _mb-24px _pr-12px _pl-12px _pt-4px _pb-4px" data-slot="chip"><svg aria-hidden="true" class="lucide lucide-heart" fill="none" height="16" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"></path></svg><span>Popular Use Cases</span></span><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance _mb-16px" data-slot="title">Build Interactive Experiences</h2><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _maxW-768px _mr-auto _ml-auto _mt-c-space-3--53" data-slot="lede">Hanzo Realtime powers a wide range of applications that demand immediate data updates</p></div><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-1461737899 _gap-24px _shrink-1 _minW-auto _minH-auto _mb-48px" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div class="is_Text _btc-0hover-color-mixin305317882 _brc-0hover-color-mixin305317882 _borderBottomColor-0hover-color-mixin305317882 _borderLeftColor-0hover-color-mixin305317882 _col-revert-laye114 _containerType-normal _dsp-flex _height-10037 _ws-inherit _td-none _pt-24px _pr-24px _pb-24px _pl-24px _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _fd-column _backgroundImage-linear-grad1875608204 _bg-transparent t_group_true" data-slot="leaf" style="transform:translateY(8px)"><div class="is_View _fd-row _width-40px _height-40px _items-center _justify-center _mb-16px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-raised"><svg aria-hidden="true" class="lucide lucide-message-square" fill="none" height="20" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-4 _lh-f-lineHeigh112923 _fw-600 _mb-8px" data-slot="text">Chat Applications</h3><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Build messaging apps with real-time delivery, typing indicators, and read receipts.</p></div><div class="is_Text _btc-0hover-color-mixin305317882 _brc-0hover-color-mixin305317882 _borderBottomColor-0hover-color-mixin305317882 _borderLeftColor-0hover-color-mixin305317882 _col-revert-laye114 _containerType-normal _dsp-flex _height-10037 _ws-inherit _td-none _pt-24px _pr-24px _pb-24px _pl-24px _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _fd-column _backgroundImage-linear-grad1875608204 _bg-transparent t_group_true" data-slot="leaf" style="transform:translateY(8px)"><div class="is_View _fd-row _width-40px _height-40px _items-center _justify-center _mb-16px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-raised"><svg aria-hidden="true" class="lucide lucide-users" fill="none" height="20" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><path d="M16 3.128a4 4 0 0 1 0 7.744"></path><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><circle cx="9" cy="7" r="4"></circle></svg></div><h3 class="is_Text _col-ink _fs-f-size-4 _lh-f-lineHeigh112923 _fw-600 _mb-8px" data-slot="text">Collaborative Workspaces</h3><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Create shared workspaces where multiple users can collaborate simultaneously.</p></div><div class="is_Text _btc-0hover-color-mixin305317882 _brc-0hover-color-mixin305317882 _borderBottomColor-0hover-color-mixin305317882 _borderLeftColor-0hover-color-mixin305317882 _col-revert-laye114 _containerType-normal _dsp-flex _height-10037 _ws-inherit _td-none _pt-24px _pr-24px _pb-24px _pl-24px _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _fd-column _backgroundImage-linear-grad1875608204 _bg-transparent t_group_true" data-slot="leaf" style="transform:translateY(8px)"><div class="is_View _fd-row _width-40px _height-40px _items-center _justify-center _mb-16px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-raised"><svg aria-hidden="true" class="lucide lucide-square-pen lucide-pen-box lucide-edit lucide-pen-square" fill="none" height="20" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-4 _lh-f-lineHeigh112923 _fw-600 _mb-8px" data-slot="text">Collaborative Editing</h3><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Several people editing one document, each of them seeing the others' changes land as they happen.</p></div><div class="is_Text _btc-0hover-color-mixin305317882 _brc-0hover-color-mixin305317882 _borderBottomColor-0hover-color-mixin305317882 _borderLeftColor-0hover-color-mixin305317882 _col-revert-laye114 _containerType-normal _dsp-flex _height-10037 _ws-inherit _td-none _pt-24px _pr-24px _pb-24px _pl-24px _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _fd-column _backgroundImage-linear-grad1875608204 _bg-transparent t_group_true" data-slot="leaf" style="transform:translateY(8px)"><div class="is_View _fd-row _width-40px _height-40px _items-center _justify-center _mb-16px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-raised"><svg aria-hidden="true" class="lucide lucide-gamepad" fill="none" height="20" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><line x1="6" x2="10" y1="12" y2="12"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="15" x2="15.01" y1="13" y2="13"></line><line x1="18" x2="18.01" y1="11" y2="11"></line><rect height="12" rx="2" width="20" x="2" y="6"></rect></svg></div><h3 class="is_Text _col-ink _fs-f-size-4 _lh-f-lineHeigh112923 _fw-600 _mb-8px" data-slot="text">Multiplayer Games</h3><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Develop low-latency multiplayer games with synchronized game state across players.</p></div><div class="is_Text _btc-0hover-color-mixin305317882 _brc-0hover-color-mixin305317882 _borderBottomColor-0hover-color-mixin305317882 _borderLeftColor-0hover-color-mixin305317882 _col-revert-laye114 _containerType-normal _dsp-flex _height-10037 _ws-inherit _td-none _pt-24px _pr-24px _pb-24px _pl-24px _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _fd-column _backgroundImage-linear-grad1875608204 _bg-transparent t_group_true" data-slot="leaf" style="transform:translateY(8px)"><div class="is_View _fd-row _width-40px _height-40px _items-center _justify-center _mb-16px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-raised"><svg aria-hidden="true" class="lucide lucide-chart-bar lucide-bar-chart-horizontal" fill="none" height="20" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 3v16a2 2 0 0 0 2 2h16"></path><path d="M7 16h8"></path><path d="M7 11h12"></path><path d="M7 6h3"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-4 _lh-f-lineHeigh112923 _fw-600 _mb-8px" data-slot="text">Live Dashboards</h3><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Build dashboards that update in real-time as new data becomes available.</p></div><div class="is_Text _btc-0hover-color-mixin305317882 _brc-0hover-color-mixin305317882 _borderBottomColor-0hover-color-mixin305317882 _borderLeftColor-0hover-color-mixin305317882 _col-revert-laye114 _containerType-normal _dsp-flex _height-10037 _ws-inherit _td-none _pt-24px _pr-24px _pb-24px _pl-24px _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _fd-column _backgroundImage-linear-grad1875608204 _bg-transparent t_group_true" data-slot="leaf" style="transform:translateY(8px)"><div class="is_View _fd-row _width-40px _height-40px _items-center _justify-center _mb-16px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-raised"><svg aria-hidden="true" class="lucide lucide-code" fill="none" height="20" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="m16 18 6-6-6-6"></path><path d="m8 6-6 6 6 6"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-4 _lh-f-lineHeigh112923 _fw-600 _mb-8px" data-slot="text">Dev Tooling</h3><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Create collaborative coding environments with real-time changes and execution.</p></div></div></div></section><section class="is_View _pr-_sm_24px _pl-_sm_24px _pr-_lg_32px _pl-_lg_32px _fd-column _pt-80px _pb-80px _pr-16px _pl-16px"><div class="is_View _fd-column _width-10037 _maxW-1280px _mr-auto _ml-auto"><div class="is_View _text-_platformweb_center _dsp-block _mb-48px" style="transform:translateY(8px)"><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance _mb-16px" data-slot="title">Three calls, then it is live</h2><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _maxW-768px _mr-auto _ml-auto _mt-c-space-3--53" data-slot="lede">Mint a grant, spend it to open the stream, say what you want to hear about</p></div><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-1779673114 _gap-40px _shrink-1 _minW-auto _minH-auto _items-center" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div style="min-width:0"><h3 class="is_Text _col-ink _fs-f-size-7 _lh-f-lineHeigh112926 _fw-600 _dsp-block _mb-16px" data-slot="text">The handshake, in full</h3><p class="is_Text _col-quiet _dsp-block _mb-24px" data-slot="text">There is no hidden protocol here. A grant is minted on a normal authenticated request, the stream spends it once, and the client id that comes back is how you tell the server which collections and records you want. The SDK does all three for you; the raw calls are there if you would rather do it yourself.</p><div class="is_View _fd-column _gap-16px _mb-32px"><div class="is_View _fd-row _items-flex-start _gap-12px"><div class="is_View _fd-row _width-24px _height-24px _mt-2px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-color-mixin1739102746 _items-center _justify-center"><span class="is_Text _col-ink _fs-f-size-2 _lh-f-lineHeigh112921 _fw-700" data-slot="text">1</span></div><div class="is_View _fd-column _grow-1 _shrink-1 _fb-0px _minW-0px"><h4 class="is_Text _col-ink _fw-500 _mb-4px" data-slot="text">Mint a grant</h4><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">One authenticated request returns a string good for thirty seconds and exactly one stream</p></div></div><div class="is_View _fd-row _items-flex-start _gap-12px"><div class="is_View _fd-row _width-24px _height-24px _mt-2px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-color-mixin1739102746 _items-center _justify-center"><span class="is_Text _col-ink _fs-f-size-2 _lh-f-lineHeigh112921 _fw-700" data-slot="text">2</span></div><div class="is_View _fd-column _grow-1 _shrink-1 _fb-0px _minW-0px"><h4 class="is_Text _col-ink _fw-500 _mb-4px" data-slot="text">Open the stream, name your topics</h4><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Spend the grant, take the client id it hands back, then post the collections and records you care about</p></div></div><div class="is_View _fd-row _items-flex-start _gap-12px"><div class="is_View _fd-row _width-24px _height-24px _mt-2px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-color-mixin1739102746 _items-center _justify-center"><span class="is_Text _col-ink _fs-f-size-2 _lh-f-lineHeigh112921 _fw-700" data-slot="text">3</span></div><div class="is_View _fd-column _grow-1 _shrink-1 _fb-0px _minW-0px"><h4 class="is_Text _col-ink _fw-500 _mb-4px" data-slot="text">Write a record</h4><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Any create, update or delete reaches everyone watching whose rule lets them see it</p></div></div></div><a class="is_Text _o-0hover-0--92 _bg-0hover-neutral-100 _col-0hover-pure-black _bg-_light_foreground _col-_light_background _bxsh-_light_04px16px-6p44459065 _bg-_light_0hover-foreground _col-_light_0hover-background _col-pure-black _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-pure-white _bxsh-04px20px-2p736498123 _bbs-solid _bts-solid _bls-solid _brs-solid" data-fill="" data-slot="action" href="https://docs.hanzo.ai">View Documentation<!-- --> <svg aria-hidden="true" class="lucide lucide-arrow-right" data-i18n-mirror="true" fill="none" height="16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a></div><div class="is_View _dsp-block _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _bg-surface-car47685749 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _fd-row _items-center _gap-8px _mb-16px"><svg aria-hidden="true" class="lucide lucide-code" fill="none" height="20" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="m16 18 6-6-6-6"></path><path d="m8 6-6 6 6 6"></path></svg><span class="is_Text _col-quiet" data-slot="text">The wire, without the SDK</span></div><div class="is_View _maxH-400px _ox-auto _oy-auto _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg"><pre class="is_Text font_mono _bg-_platformweb_light-darkv602359144 _col-codeInk _fs-f-size-2 _lh-leading-rel3008278 _dsp-block _mt-0px _mr-0px _mb-0px _ml-0px _pt-16px _pr-16px _pb-16px _pl-16px _ox-auto _ws-pre _ff-f-family" data-slot="text"><code><span><span data-code="comment" data-face="italic">// 1. mint a grant on an ordinary authenticated request</span>
|
|
</span><span><span data-code="keyword" data-face="bold">const</span><span data-code="ink"> </span><span data-code="punctuation">{</span><span data-code="ink"> token </span><span data-code="punctuation">}</span><span data-code="ink"> = </span><span data-code="keyword" data-face="bold">await</span><span data-code="ink"> </span><span data-code="bright">post</span><span data-code="punctuation">(</span><span data-code="punctuation">'</span><span data-code="string">/v1/realtime/token</span><span data-code="punctuation">'</span><span data-code="punctuation">);</span>
|
|
</span><span>
|
|
</span><span><span data-code="comment" data-face="italic">// 2. spend it — once, and within thirty seconds</span>
|
|
</span><span><span data-code="keyword" data-face="bold">const</span><span data-code="ink"> es = new </span><span data-code="bright">EventSource</span><span data-code="punctuation">(</span><span data-code="punctuation">'</span><span data-code="string">/v1/realtime?token=</span><span data-code="punctuation">'</span><span data-code="ink"> + token</span><span data-code="punctuation">);</span>
|
|
</span><span><span data-code="ink">es.</span><span data-code="bright">addEventListener</span><span data-code="punctuation">(</span><span data-code="punctuation">'</span><span data-code="string">CONNECT</span><span data-code="punctuation">'</span><span data-code="punctuation">,</span><span data-code="ink"> </span><span data-code="punctuation">(</span><span data-code="ink">ev</span><span data-code="punctuation">)</span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">=></span><span data-code="ink"> </span><span data-code="punctuation">{</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">const</span><span data-code="ink"> </span><span data-code="punctuation">{</span><span data-code="ink"> clientId </span><span data-code="punctuation">}</span><span data-code="ink"> = JSON.</span><span data-code="bright">parse</span><span data-code="punctuation">(</span><span data-code="ink">ev.data</span><span data-code="punctuation">);</span>
|
|
</span><span><span data-code="punctuation"> </span><span data-code="comment" data-face="italic">// 3. name the collections and records you want</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="bright">post</span><span data-code="punctuation">(</span><span data-code="punctuation">'</span><span data-code="string">/v1/realtime</span><span data-code="punctuation">'</span><span data-code="punctuation">,</span><span data-code="ink"> </span><span data-code="punctuation">{</span>
|
|
</span><span><span data-code="ink"> clientId</span><span data-code="punctuation">,</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="key">subscriptions</span><span data-code="punctuation">:</span><span data-code="ink"> </span><span data-code="punctuation">[</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">'</span><span data-code="string">messages</span><span data-code="punctuation">'</span><span data-code="punctuation">,</span><span data-code="ink"> </span><span data-code="comment" data-face="italic">// the whole collection</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">'</span><span data-code="string">orders/ord_42</span><span data-code="punctuation">'</span><span data-code="punctuation">,</span><span data-code="ink"> </span><span data-code="comment" data-face="italic">// one record</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">],</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="punctuation">});</span>
|
|
</span><span><span data-code="punctuation">});</span>
|
|
</span><span>
|
|
</span><span><span data-code="comment" data-face="italic">// records arrive as events named for the topic</span>
|
|
</span><span><span data-code="ink">es.</span><span data-code="bright">addEventListener</span><span data-code="punctuation">(</span><span data-code="punctuation">'</span><span data-code="string">messages</span><span data-code="punctuation">'</span><span data-code="punctuation">,</span><span data-code="ink"> </span><span data-code="punctuation">(</span><span data-code="ink">ev</span><span data-code="punctuation">)</span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">=></span><span data-code="ink"> </span><span data-code="punctuation">{</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">const</span><span data-code="ink"> </span><span data-code="punctuation">{</span><span data-code="ink"> action</span><span data-code="punctuation">,</span><span data-code="ink"> record </span><span data-code="punctuation">}</span><span data-code="ink"> = JSON.</span><span data-code="bright">parse</span><span data-code="punctuation">(</span><span data-code="ink">ev.data</span><span data-code="punctuation">);</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">if</span><span data-code="ink"> </span><span data-code="punctuation">(</span><span data-code="ink">action === </span><span data-code="punctuation">'</span><span data-code="string">delete</span><span data-code="punctuation">'</span><span data-code="punctuation">)</span><span data-code="ink"> </span><span data-code="bright">remove</span><span data-code="punctuation">(</span><span data-code="ink">record.id</span><span data-code="punctuation">);</span>
|
|
</span><span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">else</span><span data-code="ink"> </span><span data-code="bright">render</span><span data-code="punctuation">(</span><span data-code="ink">record</span><span data-code="punctuation">);</span>
|
|
</span><span><span data-code="punctuation">});</span>
|
|
</span><span>
|
|
</span><span><span data-code="comment" data-face="italic">// a grant is spent; a dropped stream reopens with a new one</span>
|
|
</span><span><span data-code="ink">es.</span><span data-code="bright">onerror</span><span data-code="ink"> = </span><span data-code="punctuation">()</span><span data-code="ink"> </span><span data-code="keyword" data-face="bold">=></span><span data-code="ink"> </span><span data-code="bright">reconnect</span><span data-code="punctuation">();</span></span></code></pre></div></div></div></div></section><section class="is_View _pr-_sm_24px _pl-_sm_24px _pr-_lg_32px _pl-_lg_32px _fd-column _pt-80px _pb-80px _pr-16px _pl-16px _background-linear-grad1198262292"><div class="is_View _fd-column _width-10037 _maxW-1280px _mr-auto _ml-auto"><div class="is_View _text-_platformweb_center _dsp-block _mb-64px" style="transform:translateY(8px)"><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance _mb-16px" data-slot="title">What happens as it grows</h2><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _maxW-768px _mr-auto _ml-auto _mt-c-space-3--53" data-slot="lede">The parts that scale, and the parts that are simply not in the way</p></div><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-2053013448 _gap-32px _shrink-1 _minW-auto _minH-auto" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _background-linear-grad605126999 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _mb-16px"><svg aria-hidden="true" class="lucide lucide-activity" fill="none" height="32" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="32" xmlns="http://www.w3.org/2000/svg"><path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">A change costs its audience</h3><p class="is_Text _col-quiet" data-slot="text">A record is written once and handed to the subscribers already attached to it. The work is the number of people watching, not the size of the collection they are watching.</p><div class="is_View _fd-column _mt-24px _pt-24px _btw-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _bts-solid"><div class="is_View _fd-row _items-center _justify-space-betwe3241 _mb-8px"><span class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Cost of a write</span><span class="is_Text _col-ink _fw-500" data-slot="text">Per subscriber</span></div><div class="is_View _width-10037 _height-8px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _ox-hidden _oy-hidden _bg-neutral-800"><div class="is_View _width-10037 _height-10037 _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-primary"></div></div></div></div><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _background-linear-grad605126999 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _mb-16px"><svg aria-hidden="true" class="lucide lucide-users" fill="none" height="32" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="32" xmlns="http://www.w3.org/2000/svg"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><path d="M16 3.128a4 4 0 0 1 0 7.744"></path><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><circle cx="9" cy="7" r="4"></circle></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">A stream is a response</h3><p class="is_Text _col-quiet" data-slot="text">Not a process, not a socket server beside the API — an HTTP response left open. They are cheap to hold, and one that goes away releases what it held without anything needing to be told.</p><div class="is_View _fd-column _mt-24px _pt-24px _btw-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _bts-solid"><div class="is_View _fd-row _items-center _justify-space-betwe3241 _mb-8px"><span class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Per subscriber</span><span class="is_Text _col-ink _fw-500" data-slot="text">One open response</span></div><div class="is_View _width-10037 _height-8px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _ox-hidden _oy-hidden _bg-neutral-800"><div class="is_View _width-9537 _height-10037 _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-primary"></div></div></div></div><div class="is_View _fd-column _pt-24px _pr-24px _pb-24px _pl-24px _btlr-radius-xl _btrr-radius-xl _bbrr-radius-xl _bblr-radius-xl _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _background-linear-grad605126999 _bbs-solid _bts-solid _bls-solid _brs-solid" style="transform:translateY(8px)"><div class="is_View _mb-16px"><svg aria-hidden="true" class="lucide lucide-network" fill="none" height="32" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="32" xmlns="http://www.w3.org/2000/svg"><rect height="6" rx="1" width="6" x="16" y="16"></rect><rect height="6" rx="1" width="6" x="2" y="16"></rect><rect height="6" rx="1" width="6" x="9" y="2"></rect><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"></path><path d="M12 12V8"></path></svg></div><h3 class="is_Text _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-600 _mb-8px" data-slot="text">Isolated by tenant</h3><p class="is_Text _col-quiet" data-slot="text">Every org's subscribers sit on that org's own broker, over that org's own data. Adding a tenant adds a broker rather than widening a shared one, so nobody's growth is anybody else's problem.</p><div class="is_View _fd-column _mt-24px _pt-24px _btw-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _bts-solid"><div class="is_View _fd-row _items-center _justify-space-betwe3241 _mb-8px"><span class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Blast radius</span><span class="is_Text _col-ink _fw-500" data-slot="text">One tenant</span></div><div class="is_View _width-10037 _height-8px _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _ox-hidden _oy-hidden _bg-neutral-800"><div class="is_View _width-9037 _height-10037 _btlr-radius-full _btrr-radius-full _bbrr-radius-full _bblr-radius-full _bg-primary"></div></div></div></div></div><div class="is_View _dsp-block _mt-64px" style="transform:translateY(8px)"><div class="is_View _dsp-grid _gridTemplateColumns-repeatauto-886307992 _gap-24px _shrink-1 _minW-auto _minH-auto" data-slot="grid" style="font-family:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit"><div class="is_View _fd-row _items-center _gap-16px _pt-16px _pr-16px _pb-16px _pl-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-color-mixin1123497573 _bbs-solid _bts-solid _bls-solid _brs-solid"><svg aria-hidden="true" class="lucide lucide-zap" fill="none" height="32" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="32" xmlns="http://www.w3.org/2000/svg"><path d="M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"></path></svg><div class="is_View _fd-column"><h4 class="is_Text _col-ink _fw-500" data-slot="text">No polling</h4><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">The client asks once, not every second</p></div></div><div class="is_View _fd-row _items-center _gap-16px _pt-16px _pr-16px _pb-16px _pl-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-color-mixin1123497573 _bbs-solid _bts-solid _bls-solid _brs-solid"><svg aria-hidden="true" class="lucide lucide-cpu" fill="none" height="32" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="32" xmlns="http://www.w3.org/2000/svg"><path d="M12 20v2"></path><path d="M12 2v2"></path><path d="M17 20v2"></path><path d="M17 2v2"></path><path d="M2 12h2"></path><path d="M2 17h2"></path><path d="M2 7h2"></path><path d="M20 12h2"></path><path d="M20 17h2"></path><path d="M20 7h2"></path><path d="M7 20v2"></path><path d="M7 2v2"></path><rect height="16" rx="2" width="16" x="4" y="4"></rect><rect height="8" rx="1" width="8" x="8" y="8"></rect></svg><div class="is_View _fd-column"><h4 class="is_Text _col-ink _fw-500" data-slot="text">Reconnects itself</h4><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">A dropped stream reopens with a fresh grant</p></div></div><div class="is_View _fd-row _items-center _gap-16px _pt-16px _pr-16px _pb-16px _pl-16px _btlr-radius-lg _btrr-radius-lg _bbrr-radius-lg _bblr-radius-lg _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _background-color-mixin1123497573 _bbs-solid _bts-solid _bls-solid _brs-solid"><svg aria-hidden="true" class="lucide lucide-server" fill="none" height="32" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="32" xmlns="http://www.w3.org/2000/svg"><rect height="8" rx="2" ry="2" width="20" x="2" y="2"></rect><rect height="8" rx="2" ry="2" width="20" x="2" y="14"></rect><line x1="6" x2="6.01" y1="6" y2="6"></line><line x1="6" x2="6.01" y1="18" y2="18"></line></svg><div class="is_View _fd-column"><h4 class="is_Text _col-ink _fw-500" data-slot="text">Nothing extra to run</h4><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">The same binary that serves the API serves the stream</p></div></div></div></div></div></section><section class="is_View _pr-_sm_24px _pl-_sm_24px _pr-_lg_32px _pl-_lg_32px _fd-column _pt-80px _pb-80px _pr-16px _pl-16px"><div class="is_View _text-_platformweb_center _fd-column _width-10037 _maxW-896px _mr-auto _ml-auto"><div class="is_Text _col-_light_muted-foreg108704142 _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-color-mixin305317882 _brc-color-mixin305317882 _borderBottomColor-color-mixin305317882 _borderLeftColor-color-mixin305317882 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin1739102746 _self-center _mb-24px _pr-12px _pl-12px _pt-4px _pb-4px" data-slot="chip" style="transform:translateY(8px)"><svg aria-hidden="true" class="lucide lucide-activity" fill="none" height="16" stroke="var(--foreground)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"></path></svg><span>Open a stream</span></div><h2 class="is_Text font_heading _col-foreground _dsp-revert-laye114 _ws-inherit _ff-f-family _fs-f-size-7 _fw-497 _lh-1--2 _ls--0--01em _textWrap-balance _mb-24px" data-slot="title" style="transform:translateY(8px)">Two calls and the page keeps itself current</h2><p class="is_Text _col-muted-foreg108704142 _dsp-revert-laye114 _ws-inherit _fs-f-size-3 _lh-1--65 _ls-0px _textWrap-pretty _mb-32px _mt-c-space-3--53" data-slot="lede" style="transform:translateY(8px)">Mint a grant, open the stream, name a collection. No credit card to start.</p><div style="transform:translateY(8px)"><div class="is_View _fd-_sm_row _items-_sm_center _fd-column _items-stretch _justify-center _gap-16px"><a class="is_Text _o-0hover-0--92 _bg-0hover-neutral-100 _col-0hover-pure-black _bg-_light_foreground _col-_light_background _bxsh-_light_04px16px-6p44459065 _bg-_light_0hover-foreground _col-_light_0hover-background _col-pure-black _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-pure-white _bxsh-04px20px-2p736498123 _bbs-solid _bts-solid _bls-solid _brs-solid" data-fill="" data-slot="action" href="https://platform.hanzo.ai/api-keys">Start Building<!-- --> <svg aria-hidden="true" class="lucide lucide-arrow-right" data-i18n-mirror="true" fill="none" height="20" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a><a class="is_Text _bg-0hover-color-mixin40471350 _btc-0hover-white-22 _brc-0hover-white-22 _borderBottomColor-0hover-white-22 _borderLeftColor-0hover-white-22 _col-0hover-pure-white _btc-_light_color-mixin1775990597 _brc-_light_color-mixin1775990597 _borderBottomColor-_light_color-mixin1775990597 _borderLeftColor-_light_color-mixin1775990597 _bg-_light_color-mixin1432854749 _col-_light_foreground _bxsh-_light_02px10px-4p401273020 _btc-_light_0hover-color-mixin2108231940 _brc-_light_0hover-color-mixin2108231940 _borderBottomColor-_light_0hover-color-mixin2108231940 _borderLeftColor-_light_0hover-color-mixin2108231940 _bg-_light_0hover-pure-white _col-_light_0hover-foreground _col-foreground _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-white-14 _brc-white-14 _borderBottomColor-white-14 _borderLeftColor-white-14 _bg-color-mixin1333059374 _bxsh-inset01px00639578201" data-slot="action" href="https://docs.hanzo.ai">Documentation<!-- --> <svg aria-hidden="true" class="lucide lucide-chevron-right" data-i18n-mirror="true" fill="none" height="20" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="m9 18 6-6-6-6"></path></svg></a></div></div></div></section><section class="is_View _fd-column _pt-64px _pb-64px _btw-1px _btc-neutral-800 _brc-neutral-800 _borderBottomColor-neutral-800 _borderLeftColor-neutral-800 _bts-solid"><div class="is_View _text-_platformweb_center _fd-column _width-10037 _maxW-768px _mr-auto _ml-auto _pr-16px _pl-16px"><h2 class="is_Text _col-ink _fs-f-size-7 _lh-f-lineHeigh112926 _fw-700 _mb-16px" data-slot="text">Subscribe to your first collection</h2><div class="is_View _fd-_sm_row _fd-column _justify-center _gap-12px"><a class="is_Text _bg-0hover-color-mixin40471350 _btc-0hover-white-22 _brc-0hover-white-22 _borderBottomColor-0hover-white-22 _borderLeftColor-0hover-white-22 _col-0hover-pure-white _btc-_light_color-mixin1775990597 _brc-_light_color-mixin1775990597 _borderBottomColor-_light_color-mixin1775990597 _borderLeftColor-_light_color-mixin1775990597 _bg-_light_color-mixin1432854749 _col-_light_foreground _bxsh-_light_02px10px-4p401273020 _btc-_light_0hover-color-mixin2108231940 _brc-_light_0hover-color-mixin2108231940 _borderBottomColor-_light_0hover-color-mixin2108231940 _borderLeftColor-_light_0hover-color-mixin2108231940 _bg-_light_0hover-pure-white _col-_light_0hover-foreground _col-foreground _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-white-14 _brc-white-14 _borderBottomColor-white-14 _borderLeftColor-white-14 _bg-color-mixin1333059374 _bxsh-inset01px00639578201" data-slot="action" href="https://github.com/hanzoai" rel="noopener noreferrer" target="_blank">View on GitHub</a></div></div></section><section class="is_View _ox-_platformweb_clip _oy-_platformweb_clip _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _pos-relative _pt-c-space-10 _pb-c-space-10 _pr-maxvar--pag1616741076 _pl-maxvar--pag1616741076 _btw-1px _btc-border _brc-border _borderBottomColor-border _borderLeftColor-border _bts-solid"><div class="is_View _fd-column _dsp-block _shrink-1 _minH-auto _minW-auto _width-10037 _maxW-896px _mr-auto _ml-auto"><div class="is_View _fd-_md_row _items-_md_center _justify-_md_space-betwe3241 _fd-column _gap-28px"><div class="is_View _fd-column _gap-12px _shrink-1 _minW-0px"><h2 class="is_Text _fs-_md_text-2xl _lh-_md_1--3333 _col-ink _fs-f-size-6 _lh-f-lineHeigh112925 _fw-500" data-slot="text">Get Realtime</h2><p class="is_Text _col-soft _fs-f-size-2 _lh-f-lineHeigh112921" data-slot="text">Realtime channels + presence</p><div data-testid="oss-attribution"><div class="is_View _fd-row _fwr-wrap _items-center _gap-12px"><span class="is_Text _btc-_light_border _brc-_light_border _borderBottomColor-_light_border _borderLeftColor-_light_border _col-_light_muted-foreg108704142 _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-calc10--7537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-white-08 _brc-white-08 _borderBottomColor-white-08 _borderLeftColor-white-08 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-12px _pl-12px _pt-4px _pb-4px" data-slot="chip" data-testid="oss-license"><svg aria-hidden="true" class="lucide lucide-scale" fill="none" height="12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M12 3v18"></path><path d="m19 8 3 8a5 5 0 0 1-6 0zV7"></path><path d="M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1"></path><path d="m5 8 3 8a5 5 0 0 1-6 0zV7"></path><path d="M7 21h10"></path></svg><span class="is_Text _col-inherit _fw-500" data-slot="text">License:</span> <!-- -->Apache-2.0</span><a class="is_Text _btc-0hover-white-20 _brc-0hover-white-20 _borderBottomColor-0hover-white-20 _borderLeftColor-0hover-white-20 _col-0hover-pure-white _btc-_light_border _brc-_light_border _borderBottomColor-_light_border _borderLeftColor-_light_border _col-_light_muted-foreg108704142 _btc-_light_0hover-border-stro3513 _brc-_light_0hover-border-stro3513 _borderBottomColor-_light_0hover-border-stro3513 _borderLeftColor-_light_0hover-border-stro3513 _col-_light_0hover-foreground _col-neutral-300 _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-1 _lh-calc10--7537940352 _gap-c-space-2 _btw-1px _brw-1px _borderBottomWidth-1px _borderLeftWidth-1px _bts-solid _brs-solid _bbs-solid _bls-solid _btc-white-08 _brc-white-08 _borderBottomColor-white-08 _borderLeftColor-white-08 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _bg-color-mixin591719864 _pr-12px _pl-12px _pt-4px _pb-4px" data-slot="chip" data-testid="oss-github" href="https://github.com/hanzoai" rel="noopener noreferrer" target="_blank"><svg aria-hidden="true" fill="currentColor" height="12" viewbox="0 0 24 24" width="12"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"></path></svg><span class="is_Text font_mono _col-inherit _ff-f-family _lh-unset" data-slot="text">hanzoai</span><svg aria-hidden="true" class="lucide lucide-external-link" fill="none" height="12" opacity="0.6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></a></div></div></div><div data-testid="deploy-block"><div class="is_View _fd-_sm_row _fd-column _gap-12px _justify-center"><a class="is_Text _o-0hover-0--92 _bg-0hover-neutral-100 _col-0hover-pure-black _bg-_light_foreground _col-_light_background _bxsh-_light_04px16px-6p44459065 _bg-_light_0hover-foreground _col-_light_0hover-background _col-pure-black _dsp-inline-flex _items-center _ws-inherit _td-none _fs-f-size-2 _lh-calc1--250--87537940352 _justify-center _gap-c-space-2 _minH-44px _pr-c-space-5 _pl-c-space-5 _btlr-9999px _btrr-9999px _bbrr-9999px _bblr-9999px _fw-500 _backdropFilter-chrome-blur _WebkitBackdropFilter-chrome-blur _btw-0px _brw-0px _borderBottomWidth-0px _borderLeftWidth-0px _bg-pure-white _bxsh-04px20px-2p736498123 _bbs-solid _bts-solid _bls-solid _brs-solid" data-fill="" data-slot="action" data-testid="deploy-cta" href="https://platform.hanzo.ai/deploy" rel="noopener noreferrer" target="_blank"><svg aria-hidden="true" class="lucide lucide-rocket" fill="none" height="16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"></path><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"></path><path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"></path><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"></path></svg>Deploy to Cloud<svg aria-hidden="true" class="lucide lucide-arrow-right" data-i18n-mirror="true" fill="none" height="16" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a></div></div></div></div></section></main></div>$/$ |