Developer Guide
Pick the SDK that matches your runtime and framework. Each guide includes installation, quick start, and integration patterns.
Supported SDKs
| Runtime | SDK | Use case |
|---|---|---|
| Browser | JavaScript | Vanilla JS, SPA, or any client-side app |
| Server | Node.js | Express, Fastify, API routes, SSR |
| React | React | React apps with hooks and type safety |
| Next.js | Next.js | App Router, Pages Router, middleware |
| Gatsby | Gatsby | Gatsby sites with SSR and client hydration |
| Vue | Vue | Vue 3 apps with Composition API |
| Nuxt | Nuxt | Nuxt 3 with server plugins and API routes |
Pick your framework
- React, Next.js, or Gatsby? Use the React SDK or Next.js guide.
- Vue or Nuxt? Use the Vue SDK or Nuxt guide.
- Plain JavaScript in the browser? Use the JavaScript SDK.
- Node.js backend, API, or SSR? Use the Node.js guide.
Quick example
With the React SDK and a feature called new-dashboard:
import { useFeature } from '@supashiphq/react-sdk'
function Dashboard() {
const { feature: isEnabled, isLoading } = useFeature('new-dashboard')
if (isLoading) return <Skeleton />
return isEnabled ? <NewDashboard /> : <OldDashboard />
}Unsupported runtimes
Need to evaluate flags from a runtime not listed above? Contact support@supaship.com for guidance.
Last updated on