GitHub

Hypertune

The @flags-sdk/hypertune package provides:

  • An adapter for loading feature flags from this provider (coming soon).
  • A getProviderData function for use with the Flags Explorer (available today).

Learn more about Adapters

OpenFeature

Hypertune can be used with the Flags SDK through OpenFeature.

See the OpenFeature provider for more details.

Flags Explorer

View and override your Hypertune experiments using the Flags Explorer.

To make Flags Explorer aware of your Hypertune feature flags and experiments, you need to provide a route which Flags Explorer will load your experiment metadata from.

Use the getProviderData function in your Flags API endpoint to load and emit your Hypertune data. Accepts an options object with the following keys.

Options keyTypeDescription
tokenstringThe HYPERTUNE_ADMIN_TOKEN
app/.well-known/vercel/flags/route.ts
import { verifyAccess, type ApiData } from 'flags';
import { getProviderData } from '@flags-sdk/hypertune';
import { NextResponse, type NextRequest } from 'next/server';
 
export async function GET(request: NextRequest) {
  const access = await verifyAccess(request.headers.get('Authorization'));
  if (!access) return NextResponse.json(null, { status: 401 });
 
  const hypertuneData = await getProviderData({
    token: process.env.HYPERTUNE_ADMIN_TOKEN,
  });
 
  return NextResponse.json<ApiData>(hypertuneData);
}

Learn more about the Flags Explorer