Like Clerk, but for everything
Installation
All UI components are included in the SDK. Import what you need:
import {
// Auth
SignInForm, SignUpForm, UserProfile,
// Billing
BillingSection, InvoiceHistory,
// AI
ChatInterface, ModelSelector,
// Analytics
AnalyticsDashboard, StatsCard,
// ... and more
} from '@sylphx/platform-sdk/react'Components by Service
Click on any service to see detailed documentation for its components.
Authentication
Sign-in, sign-up, user profile, and security components
Billing
Subscription management, invoices, and payment components
AI
Chat interfaces and model selection components
Analytics
Dashboards, charts, and event tracking components
Storage
File upload and image management components
Background Jobs
Job scheduling and cron management components
Push Notifications
Notification prompts and management components
Feature Flags
Feature gating and A/B testing components
Privacy & Consent
GDPR-compliant consent and cookie components
Error Tracking
Error boundaries and feedback collection components
Webhooks
Webhook management and delivery log components
Organizations
Multi-tenant organization management components
Referrals
Referral program components
Quick Reference
All 45 components at a glance:
| Component | Service | Docs |
|---|---|---|
<SignInForm /> | Authentication | View → |
<SignUpForm /> | Authentication | View → |
<UserProfile /> | Authentication | View → |
<SecuritySettings /> | Authentication | View → |
<AccountSection /> | Authentication | View → |
<OAuthButtons /> | Authentication | View → |
<BillingSection /> | Billing | View → |
<InvoiceHistory /> | Billing | View → |
<PaymentMethodManager /> | Billing | View → |
<UsageOverview /> | Billing | View → |
<ChatInterface /> | AI | View → |
<ChatBubble /> | AI | View → |
<ChatInput /> | AI | View → |
<ModelSelector /> | AI | View → |
<ModelCard /> | AI | View → |
<ModelGrid /> | AI | View → |
<AnalyticsDashboard /> | Analytics | View → |
<EventViewer /> | Analytics | View → |
<StatsCard /> | Analytics | View → |
<StatsGrid /> | Analytics | View → |
<SimpleChart /> | Analytics | View → |
<FileUpload /> | Storage | View → |
<ImageUploader /> | Storage | View → |
<AvatarUpload /> | Storage | View → |
<JobScheduler /> | Background Jobs | View → |
<JobList /> | Background Jobs | View → |
<CronBuilder /> | Background Jobs | View → |
<PushPrompt /> | Push Notifications | View → |
<NotificationBell /> | Push Notifications | View → |
<NotificationList /> | Push Notifications | View → |
<FeatureGate /> | Feature Flags | View → |
<FeatureVariant /> | Feature Flags | View → |
<FeatureValue /> | Feature Flags | View → |
<FlagDevTools /> | Feature Flags | View → |
<CookieBanner /> | Privacy & Consent | View → |
<ConsentPreferences /> | Privacy & Consent | View → |
<ErrorBoundary /> | Error Tracking | View → |
<SylphxErrorBoundary /> | Error Tracking | View → |
<FeedbackWidget /> | Error Tracking | View → |
<WebhookManager /> | Webhooks | View → |
<WebhookDeliveryLog /> | Webhooks | View → |
<OrganizationProfile /> | Organizations | View → |
<CreateOrganization /> | Organizations | View → |
<OrganizationList /> | Organizations | View → |
<ReferralCard /> | Referrals | View → |
Theming
All components support theming via the theme prop.
import {
SignInForm,
defaultTheme,
darkTheme,
type ThemeVariables
} from '@sylphx/platform-sdk/react'
// Use built-in themes
<SignInForm theme={darkTheme} />
// Custom theme
const myTheme: ThemeVariables = {
...defaultTheme,
colorPrimary: '#6366f1',
colorBackground: '#fafafa',
fontFamily: 'Inter, sans-serif',
borderRadius: '0.75rem',
}
<SignInForm theme={myTheme} />Theme Variables
| Property | Type | Description |
|---|---|---|
colorPrimary | string= #000000 | Primary brand color |
colorBackground | string= #ffffff | Background color |
colorText | string= #1f2937 | Primary text color |
colorMutedForeground | string= #6b7280 | Secondary text color |
colorBorder | string= #e5e7eb | Border color |
colorDestructive | string= #ef4444 | Error/destructive color |
colorSuccess | string= #22c55e | Success state color |
colorWarning | string= #f59e0b | Warning state color |
fontFamily | string= system-ui | Font family |
fontSize | string= 14px | Base font size |
borderRadius | string= 0.5rem | Border radius |
Common Patterns
With Provider
Components work best inside the Sylphx Provider, which provides authentication context and theme:
import { SylphxProvider } from '@sylphx/platform-sdk/react'
export default function RootLayout({ children }) {
return (
<SylphxProvider
appId={process.env.NEXT_PUBLIC_SYLPHX_APP_ID!}
environment={process.env.NEXT_PUBLIC_SYLPHX_ENV as 'development' | 'staging' | 'production'}
>
{children}
</SylphxProvider>
)
}Standalone Usage
Components can also be used standalone by passing required props:
import { ChatInterface } from '@sylphx/platform-sdk/react'
// Without provider - pass config directly
<ChatInterface
apiKey={process.env.NEXT_PUBLIC_SYLPHX_KEY}
model="gpt-4o"
systemPrompt="You are a helpful assistant"
/>Ready to build?
Start with authentication or explore the service that fits your needs.