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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@shaes-farm/mui-mas

v0.0.6

Published

The SHAES Farm UI component library based on MUI

Downloads

4

Readme

mui-mas

A Material UI-based component library for SHAES Farm's applications.

build status coverage status vulnerabilities

https://nodei.co/npm/@shaes-farm/mui-mas.png?downloads=true&downloadRank=true&stars=true

Getting Started

This package is intended for use by SHAES Farm's applications to ease the integration of our platform requirements. We currently use the following technology stack in our application suite (we are not affiliated with any of these projects):

pnpm create next-app myapp \
  --app \
  --eslint \
  --src-dir \
  --typescript \
  --use-pnpm
  ...
cd myapp
pnpm add @shaes-farm/mui-mas

Motivation

In Spanish "mui mas" means "much more", and that's what we provide with this component library; much more than the basic set of Material UI components.

We've developed a library of React components based on MUI templates that allow us to construct applications with built-in support for MUI, Next, and Supabase. With mui-mas we can spike an app in minutes, instead of hours, quickly getting functional concepts up and customized to our design workflows.

Early Release

We are releasing mui mas as an open-source component library because others may find it useful to quickly build high-quality applications. However, these components are customized for our design system and our back-end systems, and they may not be generally applicable for your needs. We've decided to release the library in this state as an Alpha release to gather feedback and to see if others find a library such as this useful.

Help Us Improve

You can help us make this library better by creating a pull request with suggestions. We gladly accept bug fixes, improvements, or just show us how you would make the library better able to support a wider choice of use cases. Any ideas, suggestions, and critical reviews are all welcomed as we continue to improve this package for our own needs, open an issue to send us your feedback.

Development Environment Setup

We use the Node Version Manager to manage our Javascript development environments. See the documentation for more information on installing nvm and getting set up.

Storybook

To start the Storybook workbench run the following commands:

cd mui-mas
nvm use
npm i
npm run storybook

Once running, visit http://localhost:6006/ in your browser to open the storybook workbench.

Building the Example Application

After installing nvm, and cloning the mui-mas repository, the component library and the example application are built. To run the example in a development environment, perform the following commands:

cd mui-mas
nvm use
npm i
npm run build
npm link
npm run db:start
npm run db:reset
cd example
npm i
npm link @shaes-farm/mui-mas
npm run dev

Main Component Library

To automatically see the results of development changes to mui-mas components in the example application, open another terminal window, and run:

cd mui-mas
nvm use
npm run dev

This will start the Typescript compiler in watch mode, automatically building any changes to the core components as they occur.

Supabase

To use Supabase in a local development environment, you must have Docker installed. If you need Docker, one possible route is the Docker Engine Install, follow the documentation that is appropriate for your platform. Be sure to add your user to the docker group in order to be able to run without root privileges. To test your Docker setup, run the following:

docker run hello-world

You should see the output of the Hello World container. If there are errors, consult the troubleshooting section of the documentation.

See the instructions for Getting Started with the Supabase CLI, and consult the detailed instructions in the official documentation for more information on what a local environment is.

Most of the setup has already been performed to use Supabase locally, and once docker is installed, the containers are started with:

npm run db:start

When the command completes, you should see a message similar to the following:

Seeding data supabase/seed.sql...
Started supabase local development setup.

         API URL: http://localhost:54321
     GraphQL URL: http://localhost:54321/graphql/v1
          DB URL: postgresql://postgres:postgres@localhost:54322/postgres
      Studio URL: http://localhost:54323
    Inbucket URL: http://localhost:54324
      JWT secret: super-secret-jwt-token-with-at-least-32-characters-long
        anon key: <secret>
service_role key: <secret>

To see this information again after starting, run the following:

npm run db:status

You should be able to access the local Postgres instance using psql or any other Postgres client, such as pgadmin. For example:

psql 'postgresql://postgres:postgres@localhost:54322/postgres'