open-index/open-npm huggingface dataset:
npm package: @stubbycms/ui
Description: This library is a collection of UI components designed to be used in MDX pages. It provides a set of reusable and customizable components to enhance your content with interactive and visually appealing elements.
Author: Siddhartha Gudipati
Latest version: 1.3.0

# Stubby CMS | UI Components

This library is a collection of UI components designed to be used in MDX pages. It provides a set of reusable and customizable components to enhance your content with interactive and visually appealing elements.

## Installation

To install the library, use npm or yarn:

```bash
npm install @stubbycms/ui
# or
yarn add @stubbycms/ui
```

## Components
* Accordion: A collapsible content panel.
* Tabs: A tabbed navigation component.
* Tip, Note, Warning, Error, Success: A highlighted section for important information.
* Steps: To showcase sequence eof 

## License
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more details.

## Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
npm package: @stubbydigits/aspect-ratio
Description: Calculate aspect ratios based on the dimensions x and y
Author: Shubhranshu
Latest version: 1.0.5

# Aspect ratio

[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/shubhranshu/aspect-ratio/Build)](https://github.com/shubhranshu/aspect-ratio/actions?query=workflow%3ABuild)
[![GitHub issues](https://img.shields.io/github/issues/shubhranshu/aspect-ratio?style=flat)](https://github.com/shubhranshu/aspect-ratio/issues)
[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/shubhranshu/aspect-ratio)](https://github.com/shubhranshu/aspect-ratio)
[![npm (scoped)](https://img.shields.io/npm/v/@stubbydigits/aspect-ratio)](https://www.npmjs.com/package/@stubbydigits/aspect-ratio)
[![npm](https://img.shields.io/npm/dt/@stubbydigits/aspect-ratio)](https://www.npmjs.com/package/@stubbydigits/aspect-ratio)

[NPM Package](https://www.npmjs.com/package/@stubbydigits/aspect-ratio)

Calculate aspect ratios.

## Usage

Library exports a single function `calculateRatio(x, y)` which returns the result object.
x and y are numbers. X is always the bigger number.

### Result object

The program returns an object with two properties

```javascript
  {
    match : {},
    sortedRatios : [],
  }
```

- ```match``` : Calculated aspect ratio if there is an exact match
- ```sortedRatios``` : List of aspect ratios ordered by proximity to the original dimensions

#### Result format

Result for both match and sortedRatios is of the following format

```javascript
{
  name: "19by16", // usable name for program literals
  ratio: "19:16", // Common name for the aspect ratio, if any
  proximity : "0.123", // ascending numeric valu to represent closeness to the dimensions provided
  description: "Sometimes referred to as the Movietone ratio, this ratio was used briefly during the transitional period when the film industry was converting to sound, from 1926 to 1932 approx. It is produced by superimposing an optical soundtrack over a full-gate 1.3 aperture in printing, resulting in an almost square image. Films shot in this ratio are often projected or transferred to video incorrectly using a 1.37 mask or squashed to 1.37. Examples of films shot in the Movietone ratio include Sunrise, M, Hallelujah! and The Lighthouse."
  // Description for the aspect ratio, usages and history.
}
```
npm package: @stubrix/cli
Description: Stubrix CLI — Advanced API Engineering & Mocking Platform control plane from the terminal
Latest version: 2.6.1

# @stubrix/cli

Stubrix CLI — control your mock server platform from the terminal.

## Installation

```bash
npm install -g @stubrix/cli
# or from the monorepo
npm run build -w @stubrix/cli
```

## Commands

| Command | Description |
|---------|-------------|
| `stubrix init` | Initialize a new Stubrix project |
| `stubrix up` | Start mock engine (WireMock by default) |
| `stubrix down` | Stop all services |
| `stubrix status` | Show API status |
| `stubrix doctor` | Health check all services |
| `stubrix mock list` | List projects |
| `stubrix mock create <projectId>` | Create a mock |
| `stubrix mock import <file>` | Import HAR/Postman/OpenAPI |
| `stubrix db engines` | List DB engines |
| `stubrix db snapshot <engine>` | Create DB snapshot |
| `stubrix db restore <engine> <name>` | Restore snapshot |
| `stubrix chaos list` | List chaos profiles |
| `stubrix chaos presets` | List built-in presets |
| `stubrix chaos apply <preset>` | Apply chaos preset |
| `stubrix scenario list` | List scenarios |
| `stubrix scenario save <name>` | Capture current state |
| `stubrix scenario restore <id>` | Restore a scenario |
| `stubrix scenario diff <idA> <idB>` | Compare scenarios |

## Environment

| Variable | Default | Description |
|----------|---------|-------------|
| `STUBRIX_API_URL` | `http://localhost:9090` | API base URL |

## Examples

```bash
# Start WireMock + PostgreSQL
stubrix up --engine wiremock --postgres

# Import a Postman collection
stubrix mock import ./postman-collection.json

# Apply slow network chaos
stubrix chaos apply slow-network --url '/api/.*'

# Capture and restore scenarios
stubrix scenario save before-migration
stubrix scenario restore <uuid>
```
npm package: @stubshot/provider-openai
Description: BYOK OpenAI Stubshot provider (image generation)
Latest version: 0.1.2

# @stubshot/provider-openai

BYOK provider for Stubshot that generates placeholder images using the OpenAI Images API.

## Install

```bash
npm i -D @stubshot/provider-openai
```

## Configure (environment)

Required:

- `OPENAI_API_KEY`

Optional:

- `OPENAI_BASE_URL` (defaults to `https://api.openai.com/v1`)
- `STUBSHOT_OPENAI_MODEL` (defaults to `gpt-image-1`)
- `STUBSHOT_OPENAI_QUALITY` (`low` | `medium` | `high`, default `medium`)
- `STUBSHOT_OPENAI_BACKGROUND` (`transparent` | `opaque`, default `opaque`)
- `STUBSHOT_OPENAI_MAX_IMAGES` (non-negative integer; fails if exceeded, default: unlimited)

## Usage

```bash
stubshot generate --provider openai --format png --out public/placeholders --count 4 --sizes 1024x1024 --theme mesh-gradient --seed my-project
```

Note: the provider is **not deterministic** and does not guarantee exact pixel sizes for arbitrary `--sizes`. It will pick a supported size closest to your request.
npm package: @stubz/core
Description: [![Greenkeeper badge](https://badges.greenkeeper.io/hisco/stubz-core.svg)](https://greenkeeper.io/) [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] <!-- [![Test Coverage][coveralls-image]][coveralls-url] -->
Author: Eyald
Latest version: 0.0.14

# stubz-server

[![Greenkeeper badge](https://badges.greenkeeper.io/hisco/stubz-core.svg)](https://greenkeeper.io/)
[![NPM Version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
<!-- [![Test Coverage][coveralls-image]][coveralls-url] -->

  Stubz provides stubs
# Stubz WIP
It's still at the very first stages, help is welcomed.

## Motivation
To provide a simple but yet powerfull stubs solution to enable multi team/project parallel development.

## License

  [MIT](LICENSE)

[npm-image]: https://img.shields.io/npm/v/stubs-core.svg
[npm-url]: https://npmjs.org/package/stubs-core
[travis-image]: https://img.shields.io/travis/hisco/stubs-core/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/hisco/stubs-core
<!-- [coveralls-image]: https://coveralls.io/repos/github/hisco/stubs-core/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/hisco/stubs-core?branch=master -->