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

moraine

v0.7.0

Published

Comprehensive SolidJS component library with atomic class styling.

Readme

Moraine

Inspired by Nuxt UI and shadcn, Moraine is a comprehensive SolidJS component library with atomic class styling.

[!important] Status: Beta. Breaking changes are allowed between minors before v1.0.0. Use at your own risk.

Documentation

Full guide and examples: https://moraine.subf.dev

Quick Start

  1. Install moraine in a Solid project
npm add moraine solid-js
  1. Configure UnoCSS or Tailwind CSS. Moraine needs the integration and a scan of its published classes to render styles.

For UnoCSS, use Wind4 with the Moraine preset:

// unocss.config.ts
import { defineConfig, presetWind4 } from '@subf/unocss'
import { presetMoraine } from 'moraine/unocss'

export default defineConfig({
  presets: [presetWind4(), presetMoraine()],
  content: {
    filesystem: [
      './index.html',
      './src/**/*.{js,ts,jsx,tsx}',
      './node_modules/moraine/dist/**/*.{mjs,jsx}',
    ],
    pipeline: {
      include: [/\.(?:mjs|js|ts|jsx|tsx|mdx?|html)(?:\?|$)/],
    },
  },
})

For Tailwind CSS v4, add the plugin and a source path relative to your stylesheet:

@import 'tailwindcss';
@plugin 'moraine/tailwind';
@source '../node_modules/moraine/dist';

Import moraine/icon.css only when you want the optional bundled icon masks. It does not replace the required preset/plugin configuration.

  1. Render a component. Built-in styles work without a Provider.
import { Button, Input } from 'moraine'

function App() {
  return (
    <>
      <Input placeholder="Enter text" />
      <Button variant="outline">Save changes</Button>
    </>
  )
}
  1. See the component guides for usage and Customization for style overrides. Components use built-in styles by default. Add MoraineProvider for Theme or class-merging overrides; Theming explains inheritance and composition.

Package entry points

Import components and MoraineProvider from moraine. Component subpaths and internal files are not supported entry points.

Use moraine/theme for Theme authoring, moraine/utils for composable behavior primitives, and moraine/unocss or moraine/tailwind for styling integration. moraine/virtualizer provides the optional createListVirtualizer adapter and requires @tanstack/virtual-core.

Development

This repository is a pnpm workspace with the publishable moraine package at the root and the private documentation app in docs/. Run commands from the repository root.

pnpm install
pnpm run dev
pnpm run test
pnpm run qa
pnpm run docs:build

License

MIT

Credits