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

mal-ui

v0.1.5

Published

MAL UI — internal React components library for MAL Devs

Readme

mal-ui

A React component library built on Mantine v9, providing a complete design system for MAL Devs projects — components, hooks, form utilities, charts, a rich-text editor, file uploads, and more, all pre-wired to the MAL brand theme.


Table of Contents


Installation

# npm
npm install mal-ui

# bun
bun add mal-ui

# yarn
yarn add mal-ui

# pnpm
pnpm add mal-ui

Quick Start

1 — Wrap your app with MALUIProvider

// app/providers.tsx  (Next.js App Router example)
'use client';

import { MALUIProvider } from 'mal-ui/core';
import { malTheme } from 'mal-ui/theme';
import 'mal-ui/styles.css';

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <MALUIProvider theme={malTheme}>
      {children}
    </MALUIProvider>
  );
}

2 — Use components

import { Button, TextInput, Card } from 'mal-ui/core';

export function LoginCard() {
  return (
    <Card>
      <TextInput label="Email" placeholder="[email protected]" />
      <Button mt="sm" fullWidth>
        Sign in
      </Button>
    </Card>
  );
}

Subpath Imports

Import only what you need — each subpath is independently tree-shakeable:

| Subpath | What it contains | |---|---| | mal-ui | Re-exports core + hooks (most common components and hooks) | | mal-ui/core | All Mantine core components + MALUI branded aliases | | mal-ui/hooks | All Mantine hooks + MALUI branded aliases | | mal-ui/form | useForm, form fields, validation helpers | | mal-ui/charts | Line, Bar, Area, Donut, Pie, Radar, Scatter, Bubble, Sparkline | | mal-ui/notifications | Notification system (showNotification, updateNotification, etc.) | | mal-ui/modals | Modal manager (openConfirmModal, openModal, etc.) | | mal-ui/spotlight | ⌘K / Ctrl+K spotlight search | | mal-ui/code-highlight | Syntax-highlighted code blocks (powered by Shiki) | | mal-ui/tiptap | Rich-text editor (Tiptap + Mantine toolbar) | | mal-ui/dropzone | File upload dropzone | | mal-ui/carousel | Embla-powered carousel | | mal-ui/nprogress | Top-of-page progress bar | | mal-ui/dates | Date pickers, calendars, time pickers | | mal-ui/schedule | Weekly/day schedule view | | mal-ui/theme | malTheme object + raw design tokens | | mal-ui/styles.css | Required global CSS (import once at your app root) |


Peer Dependencies

Install the peer dependencies you actually use. Only react and react-dom are always required; the rest are optional and only needed if you import the corresponding subpath.

# Always required
npm install react react-dom

# Required for mal-ui/charts
npm install recharts

# Required for mal-ui/dates, mal-ui/schedule
npm install dayjs

# Required for mal-ui/carousel
npm install embla-carousel-react

# Required for mal-ui/tiptap
npm install @tiptap/react @tiptap/pm @tiptap/starter-kit @tiptap/extension-link

Theme

mal-ui/theme exports a ready-to-use Mantine theme override pre-configured with:

  • Brand colorsmal-brand (purple) and mal-secondary palettes
  • Typography — System font stack, tuned heading sizes and weights
  • Spacing & Radius — Design-token-based scale
  • Shadows — Consistent elevation scale
  • Component defaults — Buttons, inputs, cards, and modals all default to radius="md"
import { malTheme } from 'mal-ui/theme';
// malTheme is a MantineThemeOverride — pass it to MantineProvider

// Raw tokens are also exported if you need them directly:
import { malColors, malSpacingTokens, malBreakpoints } from 'mal-ui/theme';

Both Mantine names (MantineProvider, useMantineTheme) and MALUI aliases (MALUIProvider, useMALUITheme) are exported from mal-ui/core — use whichever you prefer.


Available Subpaths

Core + Hooks

import { Button, TextInput, Select, Modal, Tabs } from 'mal-ui/core';
import { useDisclosure, useLocalStorage, useMediaQuery } from 'mal-ui/hooks';

Form

import { useForm, isEmail, isNotEmpty } from 'mal-ui/form';

const form = useForm({
  initialValues: { email: '', name: '' },
  validate: {
    email: isEmail('Invalid email'),
    name: isNotEmpty('Name is required'),
  },
});

Charts

import { LineChart, BarChart, DonutChart } from 'mal-ui/charts';

<LineChart
  h={300}
  data={data}
  dataKey="date"
  series={[{ name: 'Revenue', color: 'mal-brand.5' }]}
/>

Notifications

import { notifications } from 'mal-ui/notifications';
// In your layout, render: <Notifications />

notifications.show({ title: 'Done!', message: 'Upload complete.' });

Modals

import { modals } from 'mal-ui/modals';
// In your layout, render: <ModalsProvider>

modals.openConfirmModal({
  title: 'Delete item',
  children: <Text>Are you sure?</Text>,
  onConfirm: () => deleteItem(),
});

Development

# Install dependencies
bun install

# Build the library
bun run build

# Type-check
bun run typecheck

# Run tests
bun test

# Lint & format
bun run lint
bun run format

Running the demo app

# 1. Build the library
bun run build

# 2. Start the Next.js demo
cd examples/nextjs-demo
bun install
bun run dev

Open http://localhost:3000 — every subpath has its own demo route.


Built with Mantine · Bundled with Bun