
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@itannix/svelte
Advanced tools
Svelte SDK for the ItanniX Voice AI platform. Add real-time voice interactions to your Svelte app with a single component.
npm install @itannix/svelte
<script>
import { VoiceAssistant } from '@itannix/svelte';
let assistant;
let status = 'disconnected';
let messages = [];
function handleConnect() {
assistant.connect();
}
function handleDisconnect() {
assistant.disconnect();
}
</script>
<VoiceAssistant
workspaceKey="your-workspace-key"
clientId="your-client-id"
clientSecret="your-client-secret"
bind:this={assistant}
on:statusChange={(e) => status = e.detail}
on:transcript={(e) => messages = [...messages, { role: 'user', text: e.detail }]}
on:assistantMessage={(e) => {
if (e.detail.done) {
messages = [...messages, { role: 'assistant', text: e.detail.text }];
}
}}
/>
<p>Status: {status}</p>
<button onclick={handleConnect} disabled={status !== 'disconnected'}>
Connect
</button>
<button onclick={handleDisconnect} disabled={status === 'disconnected'}>
Disconnect
</button>
{#each messages as msg}
<p><strong>{msg.role}:</strong> {msg.text}</p>
{/each}
| Prop | Type | Default | Description |
|---|---|---|---|
workspaceKey | string | required | Your workspace API key from workspace settings |
clientId | string | required | Your ItanniX client ID |
clientSecret | string | required | Your client secret |
serverUrl | string | 'https://api.itannix.com' | API server URL |
| Event | Detail | Description |
|---|---|---|
statusChange | string | Connection status: 'connecting', 'connected', 'disconnected' |
transcript | string | User's speech transcription |
assistantMessage | { text: string, done: boolean } | Assistant response (streaming) |
functionCall | { name: string, args: object, callId: string } | Function call from assistant |
Access via bind:this:
<VoiceAssistant bind:this={assistant} ... />
<script>
// Connect to the voice service
assistant.connect();
// Disconnect
assistant.disconnect();
// Send function call result back to assistant
assistant.sendFunctionResult(callId, { success: true, data: ... });
</script>
MIT
FAQs
Svelte SDK for ItanniX Voice AI platform
The npm package @itannix/svelte receives a total of 9 weekly downloads. As such, @itannix/svelte popularity was classified as not popular.
We found that @itannix/svelte demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.