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

@kiponos/react

v0.2.0

Published

Kiponos real-time React/Node SDK — createFromEnv (Java parity), get/set path, after* listeners

Readme

@kiponos/react

Production install

npm install @kiponos/react

Also on GitHub release / monorepo source under sdks/kiponos-react-sdk.

Install

npm install @kiponos/react
# peer: react >= 17 (for hooks/provider); Node >= 18; optional peer: ws

Quick start (Node)

export KIPONOS_ID=…          # Connect UI
export KIPONOS_ACCESS=…
export KIPONOS="['MyApp']['1.0']['Dev']['base']"
# optional: KIPONOS_ENV_FILE=/path/to/dotenv
import { Kiponos } from '@kiponos/react';

// New instance from env
const kip = Kiponos.createFromEnv();
// or Java-style process singleton:
// const kip = Kiponos.createForCurrentTeam();

await kip.connect();
await kip.ensurePath('ui');
await kip.path('ui').set('theme', 'light');
console.log(kip.get('theme', undefined, 'ui'));

kip.afterValueUpdated((e) => console.log(e.key, e.value));

Browser handshake (createFromHandshake)

Do not bake Connect tokens into static HTML. Fetch them over HTTPS, then:

import { Kiponos } from '@kiponos/react';

const hs = await fetch('/api/hevruta/handshake').then((r) => r.json());
const kip = Kiponos.createFromHandshake({
  idToken: hs.idToken,
  accessToken: hs.accessToken,
  profile: hs.profile,
  serverUrl: hs.serverUrl, // same-origin WS proxy if the hub rejects query-auth
  authMode: 'auto',        // query in the browser, headers in Node
});
await kip.connect();

authMode: 'auto' is the default for handshake clients.

React on a server / BFF pattern

Browser SPAs must not embed Connect tokens in the bundle. Pattern:

Browser React  ↔  HTTPS handshake  ↔  Kiponos.createFromHandshake  ↔  hub WS
// Node only — create client once
import { Kiponos, KiponosProvider } from '@kiponos/react';
const client = Kiponos.createForCurrentTeam();
await client.connect();

// Pass client into server-rendered tree, or expose SSE to the SPA
<KiponosProvider client={client}>…</KiponosProvider>

KiponosProvider without client + fromEnv only works in Node (reads env). In the browser, inject client from your backend session or use SSE (see Mirror Phone service).

Env vars

| Variable | Required | Purpose | |----------|----------|---------| | KIPONOS_ID | yes | Connect identity token | | KIPONOS_ACCESS | yes | Connect access token | | KIPONOS | recommended | Profile ['App']['rel']['env']['cfg'] | | KIPONOS_ENV_FILE | no | Dotenv path (e.g. otp-listener.env) | | KIPONOS_SERVER | no | Default wss://kiponos.io/api/io-kiponos-sdk |

Not supported

  • Passing tokens into new KiponosClient({ idToken, accessToken })throws
  • Browser createFromEnvthrows (use BFF)

Tests

npm test          # unit
npm run test:e2e  # live PROD via createFromEnv

Design / QA

License

MIT