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

flootlets

v0.2.3

Published

Accessible, themeable SolidJS components for Astro, Solid SSR and static sites

Readme

flootlets

Accessible, themeable SolidJS components for Astro, Solid SSR and static sites: the essential building blocks (buttons, forms, dialogs, toasts), plus product, price and cart pieces for shops.

  • Tailwind CSS v4 and shadcn/ui conventions. Components are styled with Tailwind classes (cva + cn()), shadcn's variant names and its theme variables (--primary, --muted-foreground, --radius…), so any shadcn or tweakcn theme drops in.
  • Install or copy in. Use the npm package and get updates, or copy any component's code into your app with npx shadcn add and own it, like shadcn/ui.
  • Your classes win. The class you pass is merged last with tailwind-merge, so class="rounded-full" replaces the component's radius instead of fighting it.
  • Server-rendered first. Works in Astro, SolidStart and other Solid SSR setups, and in static builds: static components ship no JavaScript, and interactive ones hydrate as islands.
  • Accessible by default. Keyboard support, focus management and ARIA come from Kobalte for interactive pieces; every component is checked with axe.
  • Light and dark follow the visitor's system setting, or .dark / data-theme="dark".

Status: all planned components are in: basics, forms, feedback and overlays, and shop components. Pre-1.0, so props may still change between minor versions.

Documentation and live examples: https://dyeoh.github.io/flootlets/

Components

| Component | What it's for | | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Button | Actions; with href, a link styled as a button. Variants default, destructive, outline, secondary, ghost, link; loading keeps focus and width | | Link | Inline text links; external opens a new tab safely and says so | | Price | Money as { amount, currency } in minor units, with an optional struck-through compareAt price | | Badge | Short labels: default, secondary, destructive, outline, success, warning | | Spinner, Skeleton | Loading states | | Stack, Cluster, Grid | Layout: column, wrapping row, responsive grid (gaps from the spacing scale) | | VisuallyHidden | Text for screen readers only | | TextField, TextArea, Select, Checkbox, RadioGroup | Form controls with label, description and error wired for screen readers | | QuantityStepper | Choose a quantity within stock limits; arrow keys and typing work | | Alert | Inline messages (errors are announced straight away) | | toast() + Toaster | Short, temporary messages like "Added to cart" | | Dialog | Modal confirmations with focus trapping and return | | EmptyState | An empty cart or no search results, with a way forward | | ProductCard, ProductImage, StockBadge | Products in grids and carousels, with responsive thumb/large images | | Carousel | A row of items that pages left and right, built on scroll-snap | | Pagination | Page links (or buttons), numbered or "has more" style |

Helpers: formatMoney(money, locale), currencyDigits(currency), cn(...classes), and each component's class recipe (buttonVariants, badgeVariants…).

import { Button, Price } from 'flootlets';

<Price amount={{ amount: 2500, currency: 'MYR' }} compareAt={{ amount: 3500, currency: 'MYR' }} locale="en-MY" />
<Button onClick={addToCart}>Add to cart</Button>

Always pass the same locale on the server and in the browser, so server-rendered prices hydrate without a mismatch.

Theming

Colours and radius are shadcn/ui theme variables; the defaults are shadcn's neutral theme. Override variables in your own CSS, or paste in any shadcn or tweakcn theme:

:root {
  --primary: #0064ff; /* buttons, links, sale prices */
  --ring: #0064ff;
  --radius: 0.375rem; /* squarer corners */
}

Light and dark follow the visitor's system setting. Put class="dark" or data-theme="dark" (or light) on <html>, or any element, to force one. Keep colours used as text at 4.5:1 contrast with their backgrounds; bun run check:theme theme.css checks every pair, and flootlets' own theme is tested for it.

Install

flootlets needs Tailwind CSS v4 in your app.

bun add flootlets solid-js        # or npm / pnpm

In your main CSS file, after Tailwind, import the theme and let Tailwind see the components' classes (the @source path is relative to this file):

@import 'tailwindcss';
@import 'flootlets/theme.css';
@source '../node_modules/flootlets/dist';

Or copy components into your app with the shadcn CLI (it needs a components.json; see Installation):

npx shadcn@latest add https://dyeoh.github.io/flootlets/r/button.json

Troubleshooting

Astro: "Client-only API called on the server side". Astro must compile Solid libraries for the server, and it finds them through your app's dependencies. If a page using a form component (Select, QuantityStepper…) fails like this, add Kobalte to your app's own dependencies: bun add @kobalte/core.

Development

You need Bun 1.3+.

bun install          # also installs the commit-msg hook
bun run test         # component tests in jsdom + server-rendering tests
bun run lint         # eslint + prettier
bun run typecheck
bun run build        # dist/: browser bundle, JSX source for Solid apps, types, theme.css
bun run commit       # write a commit message interactively (commitizen)
bun run docs:dev     # the docs site at http://localhost:4321/flootlets/, using live source
bun run docs:build   # builds the library and the registry, then the docs from what the package ships
bun run registry:smoke  # installs every registry item into a fresh app with the shadcn CLI

Releases are automatic: release-please keeps a Release PR open on main with the next version and changelog, worked out from the commit messages, and merging it publishes to npm.

Read AGENTS.md before changing code: it covers the design decisions, conventions and the accessibility checklist.

License

MIT