Direct SDK

The direct SDK is the shortest path when you want TrueClara to receive route-aware runtime information without asking the app team to rebuild its analytics stack.

Typical install flow

  1. Add the package to the application.
  2. Configure the middleware or runtime bridge that understands route context.
  3. Use the route-aware hooks inside the React tree where flags or variants are consumed.
Terminal
npm install @trueclara/next
TSX
import { useFlag, useVariant } from "@trueclara/next";

export function UpgradeBanner() {
  const enabled = useFlag("upgrade_banner");
  const variant = useVariant("pricing_layout");

  if (!enabled) return null;

  return <section data-variant={variant}>...</section>;
}

What changes after install

  • route patterns and feature usage can be reconciled
  • rollouts stay attached to real navigation surfaces
  • runtime context stops looking like disconnected config edits