Skip to content

voweldocs

Add voice-powered AI navigation to your documentation site. voweldocs is a reference implementation showing how to integrate the vowel client into any documentation platform.

What is voweldocs?

voweldocs enables users to:

  • Navigate by voice - "Take me to the installation guide"
  • Ask questions with RAG - "What is Vowel?" with answers grounded in your docs
  • Interact with content - "Copy the first code example"
  • Search documentation - "Search for adapters" using VitePress DocSearch

Architecture Overview

The system consists of UI components (VoiceLayout, VoiceConfigModal, VoiceAgent), core dependencies (Vowel SDK, routes manifest, localStorage), and a privacy-first RAG layer using Turso WASM with local query embeddings.

Documentation Sections

  • Architecture - System components, VoiceLayout, voice-client.ts, and RAG Knowledge Base
  • Configuration - Decision tree for choosing hosted vs self-hosted, environment variables, URL resolution
  • RAG - Privacy-first retrieval-augmented generation with Turso WASM
  • Integration - Step-by-step guide to add voweldocs to your documentation site
  • Troubleshooting - Security considerations and common issues

Quick Start

bash
# Install dependencies
bun add @vowel.to/client @ricky0123/vad-web @tursodatabase/database-wasm @xenova/transformers

# Generate RAG embeddings (pre-built index for AI answers)
bun run build:rag

# Full production build (includes routes + RAG + VitePress)
bun run docs:build

Configure Voice Access

Users can configure voice navigation in two ways:

1. Via the UI (easiest for end users): Click the voweldocs button in the navbar and enter credentials:

  • Hosted mode: App ID from vowel.to
  • Self-hosted mode: Your base URL + App ID (or JWT token for production deployments)

2. Via environment variables (for pre-configured deployments): Set credentials at build time so users don't need to configure anything:

  • VITE_VOWEL_APP_ID - For hosted mode
  • VITE_VOWEL_URL + VITE_VOWEL_APP_ID - For self-hosted mode
  • VITE_VOWEL_JWT_TOKEN + VITE_VOWEL_USE_JWT=true - For JWT-based authentication

See Configuration for the complete decision tree and environment variable reference.

See the Integration Guide for complete setup instructions.

Agent Skills

When working with voweldocs in Cursor/Claude, these agent skills provide detailed guidance:

  • voweldocs - Main skill for voice-enabling documentation sites (VitePress/Vue pattern)
  • rag-prebuild - Pre-build RAG embeddings using scripts/build-rag.py
  • haven-local-rag - Browser-based semantic search and local RAG pipeline background

Skills are located in .agents/skills/ and provide context-aware assistance for specific tasks.