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

@fluxwp/core

v0.4.10

Published

WordPress REST API client and sign-in toolkit (OAuth PKCE, application passwords, multi-site accounts, i18n) for browser, desktop and React Native.

Readme

@fluxwp/core

npm license

A WordPress REST client and sign-in toolkit in TypeScript, platform independent (browser, wp-admin, Tauri desktop, React Native). The base of the FluxWP apps.

  • REST client for /wp-json/: bearer tokens or application passwords, one retry after 401, extra headers (nonce), same-origin checks for every path, upload progress, typed ApiError.
  • Sign-in: OAuth 2 with PKCE, WordPress application passwords, one-time codes, API keys; site discovery.
  • Accounts: several WordPress sites side by side, token storage, sessions.
  • i18n: i18next setup with 10 languages and locale normalisation.

Install

npm i @fluxwp/core

Usage

import { createClient, ApiError } from '@fluxwp/core';

const api = createClient({
  siteUrl: 'https://example.com',
  getCredentials: async () => ({ scheme: 'basic', token: btoa('admin:' + appPassword) }),
});

const posts = await api<{ id: number }[]>('wp/v2/posts', { query: { per_page: 5 } });

Inside wp-admin (cookie + nonce):

const api = createClient({
  siteUrl: location.origin,
  getCredentials: async () => null,
  credentials: 'same-origin',
  extraHeaders: () => ({ 'X-WP-Nonce': wpApiSettings.nonce }),
});

For GraphQL, pass this client to @fluxwp/graphql.

The FluxWP packages

| Package | What it is | |---|---| | @fluxwp/plugin-kit | Build wp-admin React screens for your own WordPress plugin (Vite preset + flx-kit codegen) | | @fluxwp/graphql | Typed GraphQL client and React hooks for Flux GraphQL (WPGraphQL) | | @fluxwp/host | Host context of a screen: site client, user, locale | | @fluxwp/ui | React UI kit of FluxWP screens: Check, DatePicker, Modal, Icon … | | @fluxwp/core | WordPress REST client, sign-in (OAuth PKCE, app passwords), accounts, i18n | | @fluxwp/tokens | Design tokens: colours, spacing, radius, type, light / dark |

FluxWP is an open-source, all-in-one WordPress suite (donations, forms, e-commerce, CRM, e-mail, AI, SEO) with a desktop and mobile app. Source: github.com/FluxWP/FluxWP. Questions and ideas: [email protected].

License

GPL-2.0-or-later