Skip to main content

Overview

sunpeak provides a multi-platform abstraction layer that lets you build widgets once and potentially deploy them across different AI chat platforms like ChatGPT, Gemini, and Claude.

Why Multi-Platform?

Write Once, Deploy Everywhere

Build your widget logic once, run it on multiple platforms without rewriting

Consistent Developer Experience

Same React hooks and patterns across all platforms

Future-Proof

Automatically support new platforms as they emerge

Easy Migration

Switch platforms without major code changes

React Hooks

sunpeak provides platform-agnostic React hooks for common runtime features:
import { useTheme, useDisplayMode, useWidgetState } from 'sunpeak';

function MyWidget() {
  const theme = useTheme();                    // 'light' | 'dark'
  const displayMode = useDisplayMode();        // 'mobile' | 'tablet' | 'desktop'
  const [data, setData] = useWidgetState('key', defaultValue);

  return <div className={theme === 'dark' ? 'dark-mode' : 'light-mode'}>...</div>;
}

Dive Deeper

Hooks

All hooks provided by sunpeak.