API Reference

The full TypeScript API documentation is generated using TypeDoc and available separately.

View API Documentation

The API reference includes:

  • Modules: All TypeScript files and exports
  • Classes: React components, providers, and managers
  • Interfaces: Type definitions for providers, storage, and messages
  • Functions: Utility functions and helpers
  • Types: Custom type definitions

Key Components

Providers

The extension supports multiple AI providers through a unified interface:

  • AIProvider - Base interface for all providers
  • Provider implementations for Gemini, ChatGPT, Claude, etc.
  • See providers.ts API docs for details

Storage

Local storage management for API keys and settings:

  • storage module from browser polyfill
  • Persistent settings across browser restarts
  • See storage API docs for details

Chat Manager

Handles AI chat interactions and response streaming:

Documentation Format

The API documentation uses TypeDoc to generate comprehensive references from:

  • TypeScript type signatures
  • JSDoc comments
  • Interface definitions
  • Code examples

For the complete API reference with all classes, interfaces, and functions, visit the TypeDoc documentation.