PostHog joins the Vercel Marketplace
Source: Vercel Blog


PostHog is now available in the Vercel Marketplace as a feature‑flags, experimentation, and analytics provider.
Features
- Declare flags in code using the Flags SDK and the
@flags-sdk/posthogadapter. - Toggle features in real time for specific users or cohorts.
- Roll out changes gradually with percentage‑based rollouts.
- Run A/B tests to validate impact before a full release.
This integration helps teams building on Vercel ship with more confidence: test in production, reduce release risk, and make data‑driven decisions based on real user behavior, all within your existing Vercel workflows.
Getting Started
Create a flags.ts file with an identify function and a flag definition:
import { postHogAdapter } from '@flags-sdk/posthog';
import { flag, dedupe } from 'flags/next';
import type { Identify } from 'flags';
export const identify = dedupe(async () => ({
distinctId: 'user_distinct_id' // replace with real user ID
})) satisfies Identify;
export const myFlag = flag({
key: 'my-flag',
adapter: postHogAdapter.isFeatureEnabled(),
identify,
});
Check out the PostHog template to learn more about this integration.