Sign In

@shipeasy/react

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@shipeasy/react

Shipeasy React adapter — <ShipeasyProvider>, useFlag, useConfig, useExperiment, useShipEasyI18n, plus the devtools overlay loader.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@shipeasy/react

React adapter for the Shipeasy SDK. Provider, hooks, devtools overlay integration, and i18n.

Source-available under the Shipeasy-SAL 1.0.

Install

npm install @shipeasy/sdk @shipeasy/react
# or
pnpm add @shipeasy/sdk @shipeasy/react

Quickstart

// app/providers.tsx
"use client";
import { ShipeasyProvider, ShipEasyI18nProvider } from "@shipeasy/react";

export function Providers({ children, user }) {
  return (
    <ShipeasyProvider
      sdkKey={process.env.NEXT_PUBLIC_SHIPEASY_CLIENT_KEY!}
      adminUrl="https://shipeasy.ai"
    >
      <ShipEasyI18nProvider>
        {/* call identify() once on mount with whatever session info you have */}
        {children}
      </ShipEasyI18nProvider>
    </ShipeasyProvider>
  );
}
// any client component
import { useFlag, useConfig, useExperiment, useShipEasyI18n } from "@shipeasy/react";

function CheckoutButton() {
  const newCheckout = useFlag("new_checkout");
  const limits = useConfig<{ max: number }>("upload_limits");
  const { params } = useExperiment("hero_cta", { label: "Sign up" });
  const { t } = useShipEasyI18n();
  return <button>{t("checkout.cta")}</button>;
}

All hooks honor URL-driven session overrides set by the devtools overlay (?se_ks_<gate>=true, ?se_config_<name>=…, ?se_exp_<name>=variant_b), so your QA team can flip values per session without touching the dashboard.

Devtools overlay

Press Shift+Alt+S (or append ?se=1) to mount the overlay. The provider boots the devtools script lazily — no asset cost on a normal page load.

Documentation

docs.shipeasy.ai

License

Shipeasy-SAL 1.0.

FAQs

Package last updated on 27 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts