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

@moontra/moonui

v2.4.13

Published

Premium React component library with modern design and customization

Readme

MoonUI 🌙

A premium React component library built for modern web applications. MoonUI provides beautifully designed, accessible, and highly customizable components that help you build stunning user interfaces faster.

npm version License: MIT TypeScript

✨ Features

🎨 Beautiful Design

  • 50+ Premium Components - Carefully crafted with attention to detail
  • Modern Aesthetics - Clean, minimalist design that works everywhere
  • Consistent Typography - Harmonious text hierarchy and spacing
  • Smooth Animations - Delightful micro-interactions powered by Framer Motion

🌙 Dark Mode Ready

  • Built-in Dark Mode - Seamless light/dark theme switching
  • CSS Variables - Easy customization with design tokens
  • Theme Provider - Consistent theming across your application
  • Custom Themes - Create your own color palettes

Accessibility First

  • WCAG Compliant - Meets accessibility standards
  • Keyboard Navigation - Full keyboard support
  • Screen Reader Friendly - Proper ARIA labels and descriptions
  • Focus Management - Intuitive focus handling

🔧 Developer Experience

  • TypeScript - Full type safety and IntelliSense
  • Tree Shaking - Import only what you use
  • Zero Config - Works out of the box
  • CLI Tool - Easy installation with moonui CLI
  • Storybook - Interactive component documentation

📱 Responsive & Performance

  • Mobile First - Optimized for all screen sizes
  • Lightweight - Minimal bundle impact
  • React 18+ Compatible - Latest React features
  • SSR Ready - Next.js and other SSR frameworks

🚀 Quick Start

Installation

# Install the package
npm install @moontra/moonui

# Or use the CLI (recommended)
npx @moontra/moonui-cli@latest init

CDN Usage (Browser/Artifacts)

For quick prototyping or artifact environments:

<!-- Dependencies -->
<script
    crossorigin
    src="https://unpkg.com/react@18/umd/react.production.min.js"
></script>
<script
    crossorigin
    src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"
></script>

<!-- MoonUI -->
<script src="https://cdn.jsdelivr.net/npm/@moontra/[email protected]/dist/index.global.js"></script>

<script>
    const { Button, Card } = window.MoonUI;

    function App() {
        return React.createElement(
            Card,
            null,
            React.createElement(Button, { variant: "default" }, "Hello MoonUI!")
        );
    }

    ReactDOM.render(React.createElement(App), document.getElementById("root"));
</script>

Setup

  1. Configure Tailwind CSS (required)
// tailwind.config.js
module.exports = {
    content: [
        "./src/**/*.{js,ts,jsx,tsx}",
        "./node_modules/@moontra/moonui/**/*.{js,mjs}",
    ],
    theme: {
        extend: {},
    },
    plugins: [],
};
  1. Import styles (in your main CSS file)
@import "@moontra/moonui/styles";
@tailwind base;
@tailwind components;
@tailwind utilities;
  1. Start using components
import { Button, Card, Input } from "@moontra/moonui";

function App() {
    return (
        <Card className="p-6">
            <h1 className="text-2xl font-bold mb-4">Welcome to MoonUI</h1>
            <div className="space-y-4">
                <Input placeholder="Enter your name" />
                <Button variant="default" size="lg">
                    Get Started
                </Button>
            </div>
        </Card>
    );
}

📚 Components

Layout & Structure

  • Card - Flexible content containers
  • Separator - Visual content dividers
  • AspectRatio - Responsive aspect ratio containers
  • ScrollArea - Custom scrollable areas

Navigation

  • Breadcrumb - Hierarchical navigation
  • Pagination - Page navigation controls
  • Tabs - Tabbed interfaces
  • Navigation Menu - Complex navigation structures

Form Controls

  • Button - Interactive buttons with variants
  • Input - Text input fields
  • Textarea - Multi-line text input
  • Select - Dropdown selections
  • Checkbox - Boolean selections
  • RadioGroup - Single choice selections
  • Switch - Toggle controls
  • Slider - Range inputs
  • Label - Form field labels

Feedback & Overlays

  • Dialog - Modal dialogs
  • AlertDialog - Confirmation dialogs
  • Toast - Notification messages
  • Alert - Inline notifications
  • Tooltip - Contextual information
  • Popover - Floating content panels
  • HoverCard - Hover-triggered content

Data Display

  • Avatar - User profile images
  • Badge - Status indicators
  • Progress - Loading indicators
  • Skeleton - Loading placeholders
  • Table - Structured data display
  • DataTable - Advanced data tables
  • Accordion - Collapsible content

Media & Graphics

  • Calendar - Date selection
  • DatePicker - Date input controls
  • ColorPicker - Color selection
  • FileUpload - File upload interface

Advanced

  • Command - Command palette interface
  • Collapsible - Expandable content
  • DropdownMenu - Context menus
  • Menubar - Application menu bars

🎨 Theming

CSS Variables

MoonUI uses CSS variables for easy theming:

:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    /* ... more variables */
}

.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    /* ... dark theme variables */
}

Theme Provider

import { ThemeProvider } from "@moontra/moonui/theme";

function App() {
    return (
        <ThemeProvider attribute="class" defaultTheme="system">
            <YourApp />
        </ThemeProvider>
    );
}

Custom Colors

:root {
    --primary: 142 76% 36%; /* Custom green */
    --secondary: 210 40% 95%;
}

🔧 CLI Tool

The MoonUI CLI helps you add components easily:

# Initialize MoonUI in your project
npx @moontra/moonui-cli@latest init

# Add specific components
npx @moontra/moonui-cli@latest add button
npx @moontra/moonui-cli@latest add card input

# Add multiple components
npx @moontra/moonui-cli@latest add button card input dialog

📖 Documentation

🤖 AI Integration

MoonUI includes MCP (Model Context Protocol) support for AI assistants:

# Install MCP Server
npm install -g @moontra/moonui-mcp-server

# Configure in Claude Desktop
{
  "mcpServers": {
    "moonui": {
      "command": "npx",
      "args": ["@moontra/moonui-mcp-server"]
    }
  }
}

AI assistants can then help you:

  • 🎯 Find the right components for your use case
  • 🔧 Generate component code automatically
  • 🐛 Fix import issues
  • 🎨 Configure theming and customization
  • 📱 Detect environment (CDN vs NPM) automatically

💼 Pro Version

Upgrade to MoonUI Pro for advanced components:

  • DataTable - Advanced data grids with sorting, filtering, pagination
  • Charts - Beautiful data visualizations
  • RichTextEditor - WYSIWYG editor
  • FormWizard - Multi-step forms
  • Calendar - Advanced date/time pickers
  • DragDropList - Sortable lists
  • TreeView - Hierarchical data display
  • Timeline - Event timelines
  • VideoPlayer - Custom video controls
  • CodeEditor - Syntax-highlighted code input

Learn more about Pro →

🛠️ Development

Requirements

  • Node.js 18+
  • React 18+
  • TypeScript 5+
  • Tailwind CSS 3+

Local Development

git clone https://github.com/moontra/moonui
cd moonui/packages/moonui
npm install
npm run dev

Building

npm run build      # Build for production
npm run build:dts  # Generate type definitions
npm run lint       # Lint code
npm run test       # Run tests

🤝 Contributing

We welcome contributions! See our Contributing Guide for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests and documentation
  5. Submit a pull request

Component Guidelines

  • Follow accessibility best practices
  • Include TypeScript types
  • Add Storybook stories
  • Write comprehensive tests
  • Document props and usage

📦 Package Details

  • Bundle Size: ~460KB (ESM), ~485KB (CJS)
  • CDN Bundle: ~742KB (includes all dependencies)
  • Type Definitions: Full TypeScript support
  • Tree Shaking: Import individual components
  • Side Effects: false (webpack optimization)

🔗 Ecosystem

📄 License

Licensed under the MIT License.

🙏 Acknowledgments

Built with:


WebsiteDocumentationComponentsGitHub

Made with ❤️ by the MoonUI team