Internal Hooks
Hooks used internally by GenCN UI components for AI-powered features.
Documentation Coming Soon: Detailed documentation for these internal hooks is currently being prepared. Check back soon for comprehensive guides, API references, and usage examples.
Overview
GenCN UI includes several internal hooks that power the AI features throughout the component library. These hooks are used internally by the components and provide the underlying functionality for various AI-powered capabilities.
Available Internal Hooks
The following hooks are available for internal use:
Core AI Hooks
use-gencn-ui-writer- Hook for AI-powered text generation and writing assistanceuse-gencn-ui-rewriter- Hook for rewriting and improving text contentuse-gencn-ui-translator- Hook for translating text between languagesuse-gencn-ui-proofreader- Hook for grammar checking and proofreadinguse-gencn-ui-language-detector- Hook for detecting the language of textuse-gencn-ui-language-model- Hook for interacting with language models
Specialized Hooks
use-gencn-ui-structured-api- Hook for structured API interactions with schema validationuse-gencn-ui-human-verification- Hook for human verification workflowsuse-gencn-ui-suggestions- Hook for generating AI-powered suggestions using structured outputuse-gencn-ui-summarizer- Hook for AI-powered text summarization
Usage
These hooks are primarily used internally by GenCN UI components. They handle the complex logic for:
- Managing AI model availability (local vs. remote)
- Handling transport switching between Chrome's LanguageModel API and server endpoints
- State management for AI operations
- Error handling and fallback mechanisms
- Download and initialization of AI models
Documentation Status
Full documentation including API references, usage examples, and integration guides for these hooks will be available soon. In the meantime, you can explore the hook implementations in the registry.

