SDKs
Available Toggle SDKs
Hyphen has built out SDK's for go, python, react, nodejs, javascript, and swift either via our native support or via Open Feature.
Native SDK's
@hyphen/sdk
Server-side Node.js SDK for feature flag evaluation and management. Ideal for backend services, APIs, and server-rendered applications.
Simple use case:
import { HyphenClient } from '@hyphen/sdk';
const client = new HyphenClient({ apiKey: 'your-api-key' });
await client.initialize();
const isEnabled = await client.isEnabled('new-feature', { userId: '123' });
if (isEnabled) {
// Execute new feature code
}@hyphen/browser-sdk
Client-side JavaScript SDK for web browsers. Optimized for client-side feature flag evaluation with minimal bundle size.
Simple use case:
import { HyphenBrowserClient } from '@hyphen/browser-sdk';
const client = new HyphenBrowserClient({ apiKey: 'your-client-key' });
await client.initialize();
const showNewUI = await client.isEnabled('new-ui-design', {
userId: user.id
});@hyphen/react-sdk
React-specific SDK with hooks and components for seamless feature flag integration in React applications.
Simple use case:
import { HyphenProvider, useFeatureFlag } from '@hyphen/react-sdk';
function App() {
return (
<HyphenProvider apiKey="your-client-key">
<MyComponent />
</HyphenProvider>
);
}
function MyComponent() {
const isEnabled = useFeatureFlag('new-feature');
return isEnabled ? <NewFeature /> : <OldFeature />;
}We are currently planning to support native sdk's for python, go, .net, and java in the near future.
Open Feature SDK's
OpenFeature is an open standard that provides a vendor-agnostic, unified API for feature flagging. Hyphen supports OpenFeature through providers for multiple languages and frameworks.
Hyphen has made the following open feature providers for you to use:
Updated about 14 hours ago
