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

@vectros-ai/react

v0.6.1

Published

Vectros React toolkit — the auth stack, Vectros API token cache, MFA, and UI primitives shared by the Vectros reference apps (admin-app, app.vectros.ai). Provider-agnostic by design: swap Cognito for Auth0/Clerk/OIDC behind a single adapter.

Downloads

748

Readme

@vectros-ai/react

npm license

The shared React toolkit behind the Vectros reference apps — admin-app (control plane) and app.vectros.ai (data plane). It packages the parts both apps need to look and behave the same without copy-paste:

  • Provider-agnostic auth — an AuthProviderAdapter interface plus a CognitoAuthProvider reference implementation (sign-in/up, password reset, multi-membership, and TOTP MFA). Swap Cognito for Auth0/Clerk/OIDC by implementing the adapter; nothing else changes.
  • Vectros API token cache — short-lived st_* bearers minted on demand and cached per (tenant, context), with concurrent-mint coalescing and a clear-during-mint race guard. The mint function is injected, so the /developer/* call stays inside the swap point.
  • MFA — a TOTP enrollment wizard and the /account 2FA pattern.
  • UI primitivesAuthCard, PasswordField (+ strength meter), AppLayout chrome, IntlProvider scaffolding, and the tenant/context switchers.
  • Version-update bannerVersionUpdateBanner polls a version.json manifest and offers a user-initiated refresh when a newer build is deployed, so a long-open tab never strands on a stale shell.

Install

npm install @vectros-ai/react

This is a toolkit for an existing app, so it expects a set of peer dependencies the app already provides (React, MUI, TanStack Query, the Vectros SDK, and more) — see Peer dependencies below.

Status

Pre-1.0. The API may change between minor versions until the first stable release.

Peer dependencies

The consuming app supplies React 19, MUI 7, Emotion, TanStack Query 5, react-intl, react-router 7, aws-amplify, and @vectros-ai/sdk (all peerDependencies). The small leaf utilities (jose, qrcode.react, @zxcvbn-ts/*) ship as regular dependencies.

Security & trust

These components reach Vectros with least-privilege scoped keys over a secure, per-customer-isolated back-end. For the platform's full security and trust posture, see the compliance and trust guide.

License

Apache-2.0.