npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@wacht/jsx

v1.0.0-beta.47

Published

Shared React components and hooks for building Wacht-powered product surfaces.

Readme

@wacht/jsx

Shared React components and hooks for building Wacht-powered product surfaces.

Use @wacht/jsx when you want the core Wacht React layer without committing to a framework adapter. If you are using Next.js, React Router, or TanStack Router, you will usually install the adapter package instead and import the same primitives from there.

  • Docs: https://wacht.dev/docs
  • npm: https://www.npmjs.com/package/@wacht/jsx

What it includes

@wacht/jsx contains the shared client-side building blocks behind the framework adapters:

  • auth UI such as SignInForm, SignUpForm, WaitlistForm, SSOCallback, and MagicLinkVerification
  • control components such as SignedIn, SignedOut, SignedInAccounts, and NavigateToSignIn
  • account and tenancy components such as UserButton, UserControls, ManageAccount, ManageOrganization, ManageWorkspace, CreateOrganizationForm, and CreateWorkspaceForm
  • notifications components such as NotificationBell, NotificationPopover, and NotificationPanel
  • shared hooks for auth, session state, multi-tenancy, notifications, agents, webhooks, and API identity

Install

pnpm add @wacht/jsx @wacht/types

Basic usage

import {
  DeploymentProvider,
  SignedIn,
  SignedOut,
  SignInForm,
} from "@wacht/jsx";

export default function App() {
  return (
    <DeploymentProvider publicKey={import.meta.env.VITE_WACHT_PUBLISHABLE_KEY}>
      <SignedIn>
        <div>Signed in</div>
      </SignedIn>

      <SignedOut>
        <SignInForm />
      </SignedOut>
    </DeploymentProvider>
  );
}

What DeploymentProvider does

DeploymentProvider is the shared root for the client SDK. It:

  • resolves deployment configuration from the publicKey
  • exposes deployment-aware client state to the hooks
  • powers navigation-aware auth components through the platform adapter
  • lets you override deployment UI settings with uiOverrides when you are embedding auth UI inside your own app

Main hook families

  • state and context: useDeployment, useClient, useSession, useUser, useNavigation
  • auth flows: useSignIn, useSignUp, useSSOCallback, useMagicLinkVerification, useForgotPassword, useInvitation, useWaitlist, useUserSignins
  • multi tenancy: useOrganizationList, useActiveOrganization, useWorkspaceList, useActiveWorkspace, useActiveTenancy, useOrganizationMemberships, useWorkspaceMemberships
  • notifications: useNotifications, useNotificationStream, useNotificationUnreadCount
  • platform surfaces: agent, webhook, and API identity hooks

Framework adapters

If you are already using one of the supported router integrations, prefer importing from the adapter package instead of @wacht/jsx directly:

  • @wacht/nextjs
  • @wacht/react-router
  • @wacht/tanstack-router

Those packages re-export the shared JSX layer and add the framework-specific provider and server helpers.

Build

pnpm build

License

Apache License 2.0. See LICENSE.md.