open-index/open-npm huggingface dataset:
npm package: @mentemaker/equations
Description: equations resolver
Author: mentemaker
Latest version: 1.3.0

### Documentação para `equations`

#### Instalação

```bash
npm install equations
```

#### Uso

```typescript
// Importe a biblioteca
import { solveCubicEquation, solveQuadraticEquation } from '@mentemaker/equations';

// Exemplo de uso para equação cúbica
const raizesCubicas = solveCubicEquation(1, -6, 11, -6);
console.log('Raízes Cúbicas:', raizesCubicas);

// Exemplo de uso para equação quadrática
const raizesQuadraticas = solveQuadraticEquation(1, -3, 2);
console.log('Raízes Quadráticas:', raizesQuadraticas);
```

#### Funções

##### `solveCubicEquation(a: number, b: number, c: number, d: number): number[]`

Resolve uma equação cúbica \(ax^3 + bx^2 + cx + d = 0\) e retorna um array com as raízes.

- Parâmetros:
  - `a`: Coeficiente para \(x^3\).
  - `b`: Coeficiente para \(x^2\).
  - `c`: Coeficiente para \(x\).
  - `d`: Termo constante.

- Retorna:
  - Um array contendo as raízes da equação cúbica.

##### `solveQuadraticEquation(a: number, b: number, c: number): number[]`

Resolve uma equação quadrática \(ax^2 + bx + c = 0\) e retorna um array com as raízes.

- Parâmetros:
  - `a`: Coeficiente para \(x^2\).
  - `b`: Coeficiente para \(x\).
  - `c`: Termo constante.

- Retorna:
  - Um array contendo as raízes da equação quadrática.

#### Exemplos

```typescript
const raizesCubicas = solveCubicEquation(1, -6, 11, -6);
console.log('Raízes Cúbicas:', raizesCubicas);

const raizesQuadraticas = solveQuadraticEquation(1, -3, 2);
console.log('Raízes Quadráticas:', raizesQuadraticas);
```

#### Observações

- Certifique-se de fornecer os coeficientes na ordem correta.
- Se não houver raízes reais, um array vazio será retornado.

#### Contribuições

Sinta-se à vontade para contribuir para esta biblioteca enviando problemas (issues) ou solicitações de mesclagem (pull requests) no [repositório do GitHub](https://github.com/Makerjunior/equations).

#### Licença

Esta biblioteca é licenciada sob a Licença MIT - consulte o arquivo [LICENSE](https://github.com/seu-usuario/seu-repositorio/blob/main/LICENSE) para obter detalhes.

---



Clique aqui 👇 :point_down:👇 :point_down:👇 :point_down:👇 :point_down:


[![Mente Maker](logo.png)](https://www.youtube.com/channel/UCdHR_M4vqK1rtKo56RMQ9tQ)
npm package: @menteora/vuetify-extra
Description: Vue library with common used components based on Vuetify.
Latest version: 1.0.0-beta.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# vuetify-extra
Vue library with common used components based on Vuetify.

Demo here: https://menteora.github.io/vuetify-extra/

2020/11/03 - [**NEW!** Docker Integration](#Docker-Integration)

## Project setup
### Install Library
- Install Vuetify 2 ([see documentation](https://vuetifyjs.com/en/getting-started/quick-start))
- Install Vuetify Extra:

```
npm install @menteora/vuetify-extra
```

### Use Plugin

- Use Vuetify-Extra plugin after Vuetify
- Example of `/src/main.js` with Vuetify and Vuetify-Extra plugins:

```javascript
import Vue from 'vue'
import App from './App.vue'
import vuetify from './plugins/vuetify'
import './plugins/vuetify-extra'

Vue.config.productionTip = false

new Vue({
  vuetify,
  render: h => h(App)
}).$mount('#app')
```

- Example of standard Vuetify plugin installation in `plugins/vuetify.js`:

```javascript
import Vue from 'vue'
import Vuetify from 'vuetify/lib'

Vue.use(Vuetify)

export default new Vuetify({
  icons: {
    iconfont: 'mdi'
  }
})
```

- Example Vuetify-Extra plugin installation in `plugins/vuetify-extra.js`:

```javascript
import Vue from 'vue'
import VuetifyExtra from '@menteora/vuetify-extra'
import '@menteora/vuetify-extra/dist/menteora.css'

Vue.use(VuetifyExtra)
```

## Docker Integration
- Install Docker (refer to official Guide)
- Install "Docker" Extension on VSCode
- Open Folder with VSCode
- Answer "Reopen in Container" 

![reopen inside docker button](docs/reopen-inside-docker.png)

## Project setup

### See demo in action:
```
npm run serve
```

### Compiles and minifies Library for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).


## Update workflow

1. Update & commit code

### Github pages updates
2. Update demo `npm run deploy:demo`
3. Test demo

### Github updates
4. Update release inside package.json
5. Tag commit `git tag v0.3.1`
6. Push Tags `git push origin --tags`

### Npm updates
7. Update build `npm run build`
8. Login on npm `npm login`
8. Update package on npm `npm publish`
npm package: @menthays/easystate
Description: Easy state management based on React Context and Hooks
Latest version: 0.2.1

# EasyState
> Easy state management based on React Context and Hooks

[![npm package][npm-badge]][npm]

## Install
```bash
npm install @menthays/easystate
```

## Example
```javascript
// store.js
import EasyState from '@menthays/easystate'
const CounterStore = EasyState({
  state: {
    count: 0
  },
  actions: {
    increment(state, {number}) {
      return {
        count: state.count + number
      }
    }
  }
});

export default CounterStore
```

```jsx
// component
import CounterStore from 'path/to/store.js'
const {Provider, getState, getDispatcher} = CounterStore;

function CounterComponent() {
  const state = getState();
  const dispatch = getDispatcher();
  return (
    <Provider>
      <div onClick={() => dispatch('increment', {number: 3})}>Increment</div>
      <div>{state.count}</div>
    </Provider>
  )
}

```

[npm-badge]: https://img.shields.io/npm/v/@menthays/easystate.png?style=flat-square
[npm]: https://www.npmjs.org/package/@menthays/easystate
npm package: @mentimeter/eslint-config-base
Description: Shareable eslint config for JavaScript applications here at Mentimter.
Author: Christofer Olaison
Latest version: 4.3.1

---
name: eslint-config-base
menu: Configs
---

# @mentimeter/eslint-config-base

## Description

Shareable eslint config for JavaScript applications here at Mentimter.

## Table of Contents

- Installation
- Usage
- Related projects
- Further reading

## Installation

```bash
yarn add @mentimeter/eslint-config-base eslint@5.8.0 --dev
```

## Usage

```json
{
  "extends": "@mentimeter/eslint-config-base"
}
```

## Related projects

- [@mentimeter/eslint-config](https://github.com/mentimeter/mm-js/tree/master/packages/eslint-config)
- [@mentimeter/eslint-config-import](https://github.com/mentimeter/mm-js/tree/master/packages/eslint-config-import)
- [@mentimeter/eslint-config-flow](https://github.com/mentimeter/mm-js/tree/master/packages/eslint-config-flow)
- [@mentimeter/eslint-config-react](https://github.com/mentimeter/mm-js/tree/master/packages/eslint-config-react)

## Further reading

- [Shareable configs](https://eslint.org/docs/developer-guide/shareable-configs)
npm package: @mentimeter/eslint-config-import
Description: Shareable eslint config for JavaScript applications here at Mentimter.
Author: Christofer Olaison
Latest version: 4.3.1

---
name: eslint-config-import
menu: Configs
---

# @mentimeter/eslint-config-import

## Description

Shareable eslint config for JavaScript applications here at Mentimter.

## Table of Contents

- Installation
- Usage
- Related projects
- Further reading

## Installation

```bash
yarn add @mentimeter/eslint-config-import eslint@5.8.0 eslint-plugin-import@2.14.0 babel-eslint@10.0.1 --dev
```

## Usage

```json
{
  "extends": "@mentimeter/eslint-config-import",
  "parser": "babel-eslint"
}
```

## Related projects

- [@mentimeter/eslint-config](https://github.com/mentimeter/mm-js/tree/master/packages/eslint-config)
- [@mentimeter/eslint-config-base](https://github.com/mentimeter/mm-js/tree/master/packages/eslint-config-base)
- [@mentimeter/eslint-config-flow](https://github.com/mentimeter/mm-js/tree/master/packages/eslint-config-flow)
- [@mentimeter/eslint-config-react](https://github.com/mentimeter/mm-js/tree/master/packages/eslint-config-react)

## Further reading

- [Shareable configs](https://eslint.org/docs/developer-guide/shareable-configs)
npm package: @mentiumio/mentium-pay
Description: ## Getting started
Author: matthieuberger
Latest version: 1.0.8

# Mentium Pay

## Getting started

How to use mentium pay

1 - Install required packages

```
$ npm install @mentiumio/mentium-pay
```

or

```
$ yarn add @mentiumio/mentium-pay
```

2 - On your website, add a container to hold mentium widget. The id attribute must be `mentium-pay` e.g:

```html
<div id="mentium-pay"></div>
```

3 - Create a checkout session in your backend using the API key provided in your dashboard.

4 - Open the widget with your session token

> **_NOTE:_** If you are working on `sandbox` environment, you can add `environment: "sandbox"` to your config.

```html
<script type="module">
  import MentiumPay from '/src/index.tsx';
  const config = {
    session: '<session_token>',
    onSuccess: function () {
      console.log('Success!');
    },
    onFailure: function () {
      console.log('Failure!');
    },
    onExit: function () {
      console.log('Exit!');
    },
  };
  MentiumPay.open(config);
</script>
```
npm package: @mento-protocol/ui-toolkit
Description: A comprehensive UI component library for web3 applications, built with React, Radix UI, and Tailwind CSS.
Latest version: 0.1.5

# UI Toolkit

A comprehensive UI component library for web3 applications, built with React, Radix UI, and Tailwind CSS.

## Overview

This library provides standardized UI components, theming, and utilities shared across web3 applications. It includes:

- Accessible UI Components (powered by Radix UI)
- Dark/Light Theme System
- Web3 Components & Integrations (Wagmi, RainbowKit)
- Responsive Layout Components
- Form Components & Validation
- Common Utilities

## Components Under Development

The following components are currently under development and not available in the public API:

- **Markdown Editor**: A WYSIWYG markdown editor component is being developed but is currently disabled due to styling and SSR compatibility issues.

## Installation


```bash
npm install @mento-protocol/ui-toolkit
```

or

```bash
pnpm add @mento-protocol/ui-toolkit
```

## Development

1. Install dependencies:

```bash
pnpm install
```

2. Start development server:

```bash
pnpm dev
```

3. Build the library:

```bash
pnpm build
```

## Project Structure

- `src/components/ui`: Base UI components
- `src/components/web3`: Web3 components and integrations
- `src/themes`: Theme configurations and providers
- `src/utils`: Shared utilities
- `src/app`: Component playground/documentation

## Contributing

1. Create a feature branch
2. Make your changes
3. Run tests and linting
4. Submit a PR

## Requirements

### Peer Dependencies
- React >=19.0.0
- Next.js >=15.1.2
- Tailwind CSS >=3.4.17

## Key Features

### Core Components
- Buttons (multiple variants)
- Forms & Inputs
- Cards & Containers
- Navigation (Header, Footer)
- Modals & Sheets
- Accordions & Dropdowns
- Data Display Components

### Web3 Integration
- Wallet Connection
- Network Switching
- Transaction Handling
- Address Display & Formatting

### Theme System
- Dark/Light Mode Support
- Customizable Color Schemes
- Consistent Typography
- Responsive Design Utilities

## Usage

### Basic Component Usage

## Future Improvements

### Color System Enhancement

The current theme system uses HEX colors for simplicity and ease of adoption. A planned enhancement is to migrate to an HSL (Hue, Saturation, Lightness) color system, which would offer several advantages:

- **Dynamic Theme Generation**: Easier creation of light/dark themes by manipulating lightness values
- **Programmatic Color Manipulation**: Simple adjustments to create consistent color variations
- **Improved Accessibility**: Better control over contrast ratios through lightness values
- **Semantic Color Relationships**: Maintain color harmony through consistent hue values

This enhancement would require:
1. CSS variable system for HSL values
2. Migration guide for existing implementations
3. Theme generation utilities
4. Backwards compatibility layer

The migration would be implemented as a major version update to maintain compatibility with existing implementations.

## License

MIT
npm package: @mentoor.io/hazelnut-client
Description: Web Client SDK for Hazelnut
Author: hassanzohdy
Latest version: 1.2.0

# Hazelnut Browser SDK

This is a simple SDK that allows you to interact with Hazelnut for event and errors tracking.

## Installation

`yarn add @mentoor.io/hazelnut-client`

Or

`npm i @mentoor.io/hazelnut-client`

Or

`pnpm add @mentoor.io/hazelnut-client`

## Configurations

In your entry point of the project, you can initialize the SDK with the following code:

```ts
import { hazelnut } from "@mentoor.io/hazelnut-client";

hazelnut.init({
  apiKey: "YOUR_API_KEY",
  captureUncaughtErrors: true, // default to true
  environment: process.env.NODE_ENV, // default to "production"
  get user() {
    return {
      id: "USER_ID",
      email: "USER_EMAIL",
      // any other user data
    };
  },
});
```

## Usage

Now usage is pretty much straight forward. You can use the SDK to track events and errors.

```ts
import { hazelnut } from "@mentoor.io/hazelnut-client";

hazelnut.track("event_name", {
  // any event data
});
```

By default hazelnut fires a `session.started` `session.ended` and `app.closed` events.

For tracking errors, pass the `Error` instance to the `error` method.

```ts
import { hazelnut } from "@mentoor.io/hazelnut-client";

try {
  // some code that might throw an error
} catch (error: Error) {
  hazelnut.error(error);
}
```

## License

This SDK is licensed under the MIT License.

### TODO

- [ ] Add tests
- [ ] Add more options to control default fired events names
npm package: @mentor-inc/ui
Description: ## Installation
Latest version: 0.4.1

# Mentor Inc. UI Library

## Installation

This package can be used for Nextjs project

```bash
pnpm add -D tailwindcss postcss autoprefixer
pnpm add @mentor-inc/ui
```

## Usage

- Create tailwind.config.ts in root directory and paste the following code:

```ts
import configSrc from '@mentor-inc/ui/tailwind.config';
import path from 'path';
const modulePath = require.resolve('@mentor-inc/ui/tailwind.config');
const config: Config = {...configSrc};

config.content = [
  ...(config.content as string[]),
  path.join(path.dirname(modulePath), 'src/**/*.tsx'),
];

export default config;
```

You can modify the config, this is the example

```ts
if (!config.theme) {
  config.theme = {};
}
if (!config.theme.extend) {
  config.theme.extend = {};
}
config.theme.extend.keyframes = {
  ...config.theme.extend.keyframes,
  'floatUp': {
    '0%': {transform: 'translateY(100%)'},
    '100%': {transform: 'translateY(0)'},
  },
  'zoom': {
    '0%': {transform: 'scale(0)'},
    '100%': {transform: 'scale(1)'},
  },
  'zoom-pulse': {
    '0%': {transform: 'scale(1)'},
    '50%': {transform: 'scale(1.1)'},
    '100%': {transform: 'scale(1)'},
  },
  'btn-pulse': {
    '0%': {boxShadow: '0 0 0 0 #25d366', opacity: '1'},
    '100%': {boxShadow: '0 0 0 15px #25d366', opacity: '0'},
  },
};
```

- Create postcss.config.js in root directory and paste the following code:

```js
module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
};
```

- Make sure the `moduleResolution` option in `tsconfig.json` is set to `Bundler`

- Import the globals.css in root layout and add Inter font

```tsx
import {Metadata} from 'next';
import {Inter} from 'next/font/google';
import '../../globals.css';

const inter = Inter({subsets: ['latin'], variable: '--font-inter'});

export default function RootLayout({children}: {children: React.ReactNode}) {
  return (
    <html lang="en">
      <body className={inter.variable}>{children}</body>
    </html>
  );
}
```

- Import the component you want to use

```tsx
import {Button} from '@mentor-inc/ui/button';
```

- To use the SvgLink component, you need to make the api route. Create file app/icons/[url]/route.ts and paste the following code

```ts
export * from '@mentor-inc/ui/svg-api';
```