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

@matteoaliano/forest-ui

v1.2.0

Published

Forest Design System — themed MUI components

Readme

Forest UI

Forest Design System — A multi-tenant MUI v7 + Emotion component library.

Installation

Install the package and its peer dependencies:

npm install @matteoaliano/forest-ui \
  @mui/material@^7 @mui/icons-material@^7 \
  @mui/x-charts@^7 @mui/x-data-grid@^7 @mui/x-date-pickers@^8 \
  @emotion/react @emotion/styled dayjs

Forest UI re-exports MUI components with Forest defaults, so you should import everything from @matteoaliano/forest-ui rather than @mui/material. The only direct MUI import you need is @mui/icons-material for icons.

Quick Start

import { ForestProvider, Button, Typography } from '@matteoaliano/forest-ui';
import '@matteoaliano/forest-ui/fonts/aeonik/aeonik.css';

function App() {
  return (
    <ForestProvider>
      <Typography variant="h1">Hello Forest</Typography>
      <Button>Click me</Button>
    </ForestProvider>
  );
}

Next.js setup

Forest UI works with Next.js 14 / 15 / 16 (App Router and Pages Router). For best results with Turbopack and bundle size, add the following to next.config.js:

/** @type {import('next').NextConfig} */
const nextConfig = {
  transpilePackages: ['@matteoaliano/forest-ui'],
  experimental: {
    optimizePackageImports: [
      '@matteoaliano/forest-ui',
      '@mui/material',
      '@mui/icons-material',
    ],
  },
};

module.exports = nextConfig;

Because ForestProvider is a client component, wrap your app in a client boundary (a 'use client' component or a dedicated providers.tsx) before mounting it inside the App Router root layout.

Known issue: some @mui/x-* packages have intermittent Turbopack issues upstream that are unrelated to Forest UI. If you hit one, falling back to webpack (next dev without --turbo) usually clears it.

Theme Presets

The built-in preset is forest-alkemy-plus, which is also the default theme applied when no preset is set. Register your own with registerPreset().

Using a Preset

import { ForestProvider } from '@matteoaliano/forest-ui';

<ForestProvider preset="forest-alkemy+">
  {/* Your app */}
</ForestProvider>

Using a Custom Theme

import { ForestProvider, buildTheme, getPreset } from '@matteoaliano/forest-ui';

const preset = getPreset('forest-alkemy+');
const theme = buildTheme(preset.tokens, preset.tokensDark);

<ForestProvider theme={theme}>
  {/* Your app */}
</ForestProvider>

Dark Mode

forest-alkemy-plus ships a dark color scheme built on MUI's colorSchemes (CSS variables). It activates on a .dark class, the same convention as @matteoaliano/forest-web.

Recommended: useColorScheme() (below) — it puts the class on <html> for you, so portaled components (Modal, Menu, Tooltip, Popover, which render at document.body) switch too.

// Manual class toggle: put `dark` on <html> (not a deep wrapper) so portaled
// content inherits it. A wrapper only darkens its own subtree, leaving
// modals/menus light.
document.documentElement.classList.toggle("dark", isDark);

Set the initial scheme with defaultMode ("light" default, "dark", or "system" to follow prefers-color-scheme):

<ForestProvider preset="forest-alkemy+" defaultMode="system">
  {/* Your app */}
</ForestProvider>

Toggle programmatically with the re-exported MUI hook:

import { useColorScheme } from '@matteoaliano/forest-ui';

function ThemeToggle() {
  const { mode, setMode } = useColorScheme();
  return (
    <button onClick={() => setMode(mode === 'dark' ? 'light' : 'dark')}>
      {mode === 'dark' ? '☀️' : '🌙'}
    </button>
  );
}

Next.js App Router — render InitColorSchemeScript at the top of <body> to prevent a flash of the wrong scheme on load:

import { InitColorSchemeScript } from '@matteoaliano/forest-ui';

// app/layout.tsx, first child of <body>
<InitColorSchemeScript attribute="class" />

Components

40+ wrapped MUI components with Forest defaults. See Storybook for all components.

Inputs

  • Button, ButtonGroup
  • TextField, Select, MultiSelect
  • Checkbox, RadioGroup, Switch
  • ToggleButton
  • DatePicker
  • Autocomplete
  • Search

Data Display

  • Typography
  • Table, DataGrid
  • Chip, Badge
  • Tooltip
  • List
  • Divider
  • Skeleton

Surfaces

  • Card, Paper
  • AppBar
  • Accordion

Feedback

  • Alert, Snackbar
  • Dialog, Modal, Popover
  • Progress (Linear, Circular)
  • Backdrop

Navigation

  • Tabs, Stepper
  • Pagination
  • Breadcrumbs
  • Link
  • Menu
  • SidebarNav

Charts

  • LineChart, BarChart, PieChart

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Storybook
npm run storybook

License

MIT