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/ui

v0.10.0

Published

React UI kit of FluxWP wp-admin screens: checkbox/switch, date picker, modal, icons, interactive charts (Chart.js), Flux Forms forms for headless sites; light and dark.

Readme

@fluxwp/ui

npm license

The React UI kit of FluxWP screens. Accessible, theme-aware components that look the same in wp-admin, the FluxWP desktop app and the web, and match the PHP side (flx_check(), the date picker of flx-brand), so classic and React screens of a plugin look alike.

| Component | | |---|---| | Check | Checkbox, radio and switch in one (switch, radio, indeterminate, note, error) | | DatePicker, DateCalendar | Date picker with quick ranges and an Apply button, a sheet on phones; formatDate, parseDate | | Modal, useOverlay | Dialogs and overlays | | Icon, MenuIcon | Icons (Lucide) and the FluxWP plugin menu icons | | Chart (@fluxwp/ui/chart) | Interactive charts on Chart.js 4: bar (stacked, horizontal), line, area, doughnut, pie, radar, polar, scatter, bubble, bar + line on two axes. Hover tooltips, legend toggles, onPoint clicks, --flux-* colours, live dark/light switch | | FluxForm (@fluxwp/ui/forms) | Flux Forms forms in React for headless sites: draws the flxForm query result (every field type, steps, widths, totals), checks it in the browser and gives you the flxFormSubmit input; server errors land on their fields. EN + TR texts, light and dark | | Avatar, Empty, Loading | Small building blocks | | sanitizeHtml, openSanitizedLink | Safe HTML from the server |

Install

npm i @fluxwp/ui react
import '@fluxwp/ui/styles.css'; // not needed inside wp-admin with Flux GraphQL: the styles are on the page

Usage

import { Check, DatePicker, Modal } from '@fluxwp/ui';

<Check checked={on} onChange={setOn} switch>Send e-mail</Check>
<DatePicker value={date} onChange={setDate} />
import { Chart } from '@fluxwp/ui/chart'; // own entry: Chart.js loads only with the screens that draw charts

<Chart
  kind="bar"
  stacked
  labels={days}
  series={[
    { label: 'One-time', data: oneTime },
    { label: 'Recurring', data: recurring, color: 'var(--flux-info)' },
  ]}
  format={(v) => money(v)}
/>
'use client';
import { FluxForm } from '@fluxwp/ui/forms';
import '@fluxwp/ui/forms.css';

// form = data.flxForm from the FlxForm query (Flux Forms persisted query)
<FluxForm
  form={form}
  lang="tr"
  onSubmit={async (input) => (await gql(FlxFormSubmit, { input })).flxFormSubmit}
  onUpload={async (file) => uploadToFluxForms(file)} // POST /wp-json/Emsfb/v1/forms/file/upload → URL
/>

Each field type also has its own component (TextField, ChoicesField, ImageChoiceField, RatingField, …); pass components={{ choices: MyChoices }} to replace one. Field types the GraphQL submit does not take (signature, map, card payment) show a short "fill it on the website" note.

Colours, spacing and dark mode come from @fluxwp/tokens CSS variables (--flux-*).

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