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

amrit-math-ui-library

v0.1.5

Published

A React component library for building math-related user interfaces, including calculators, input fields, and utility functions. This library is designed to be modular, easy to use, and customizable for math-focused web applications.

Readme

Amrit Math UI Library

A React component library for building math-related user interfaces, including calculators, input fields, and utility functions. This library is designed to be modular, easy to use, and customizable for math-focused web applications.

Features

  • AdditionUI: A simple calculator for summing numbers.
  • Input: Customizable input fields for numeric and text data.
  • Button: Styled button components for UI interactions.
  • Math Utilities: Helper functions for mathematical operations.
  • Validation Utilities: Functions for input validation.

Installation

Install the library using npm:

npm install amrit-math-ui-library

Usage

Import and use components in your React app:

import { AdditionUI } from 'amrit-math-ui-library';
import "amrit-math-ui-library/dist/index.css";

function App() {
  return (
    <div>
      <AdditionUI /> 
    </div>
  );
}

AdditionUI Props

| Prop | Type | Description | |-------------------|---------------------------|--------------------------------------------------| | onResult | (value: number) => void | Callback when sum is calculated | | className | string | Custom class for the calculator container | | style | React.CSSProperties | Inline styles for the calculator container | | inputClass | string | Custom class for input fields | | buttonClass | string | Custom class for the button | | inputStyle | React.CSSProperties | Inline styles for input fields | | buttonStyle | React.CSSProperties | Inline styles for the button | | buttonLabel | string | Text for the button (default: "Add") | | inputLabelNum1 | string | Label for first input (default: "First Number") | | inputLabelNum2 | string | Label for second input (default: "Second Number")| | placeholderNum1 | string | Placeholder for first input | | placeholderNum2 | string | Placeholder for second input |

Example usage with props:


<AdditionUI
  onResult={(sum) => alert(sum)}
  className="my-sum-calc"
  style={{ margin: '20px' }}
  inputClass="my-input"
  buttonClass="my-btn"
  buttonLabel="Calculate Sum"
  inputLabelNum1="Num 1"
  inputLabelNum2="Num 2"
  placeholderNum1="Type first number"
  placeholderNum2="Type second number"
/>

Project Structure

amrit-math-ui-library/
├── src/
│   ├── components/
│   │   ├── Button/
│   │   ├── Input/
│   │   └── AdditionUI/
│   ├── utils/
│   │   ├── mathutils.ts
│   │   └── validation.ts
│   ├── App.tsx
│   └── main.tsx
├── package.json
├── README.md
└── ...

License

MIT

Author

Amrit Pal