open-index/open-npm huggingface dataset:
npm package: @rwinwij/safe-core-sdk-utils
Description: Safe Core SDK Utilities
Author: Safe
Latest version: 2.0.0

# Safe Core SDK Utils

[![NPM Version](https://badge.fury.io/js/%40safe-global%2Fsafe-core-sdk-utils.svg)](https://badge.fury.io/js/%40safe-global%2Fsafe-core-sdk-utils)
[![GitHub Release](https://img.shields.io/github/release/safe-global/safe-core-sdk.svg?style=flat)](https://github.com/safe-global/safe-core-sdk/releases)
[![GitHub](https://img.shields.io/github/license/safe-global/safe-core-sdk)](https://github.com/safe-global/safe-core-sdk/blob/main/LICENSE.md)

Utilities for the [Safe Core SDK](https://github.com/safe-global/safe-core-sdk) monorepo.

## Table of contents
* [Installation](#installation)
* [Build](#build)

## <a name="installation">Installation</a>

Install the package with yarn or npm:

```bash
yarn install
npm install
```

## <a name="build">Build</a>

Build the package with yarn or npm:

```bash
yarn build
npm build
```
npm package: @rwinwij/safe-ethers-adapters
Description: Safe Ethers Adapters
Author: Safe
Latest version: 2.0.0

# Safe Ethers Adapters

[![NPM Version](https://badge.fury.io/js/%40safe-global%2Fsafe-ethers-adapters.svg)](https://badge.fury.io/js/%40safe-global%2Fsafe-ethers-adapters)
[![GitHub](https://img.shields.io/github/license/safe-global/safe-core-sdk)](https://github.com/safe-global/safe-core-sdk/blob/main/LICENSE.md)

[Ethers](https://docs.ethers.io/v5/single-page/) adapter that facilitates the interaction with the [Safe Services](https://github.com/safe-global/safe-transaction-service)

## Getting Started

The only adapter currently provided is the `SafeEthersSigner` which implements the [`Signer` interface](https://docs.ethers.io/v5/api/signer/#Signer) from Ethers.

The `SafeEthersSigner` can be used with [Ethers Contracts](https://docs.ethers.io/v5/getting-started/#getting-started--contracts) to deploy and interact with them. Each of these interactions will create a Safe transaction that is published to the [Safe transaction service](https://docs.gnosis.io/safe/docs/services_transactions/). 

For this to work it is required to initialize the `SafeEthersSigner` with an account that is either an owner of the specified Safe or a [delegate](https://docs.gnosis.io/safe/docs/tutorial_tx_service_set_delegate/) of one of the owners.

An example for such an account would be the private key of one of the owners that is used with an [Ethers Wallet](https://docs.ethers.io/v5/api/signer/#Wallet)

```js
const signer = new Wallet("some_private_key", ethereumProvider)
```

It is also necessary to specify a service instance that should be used to publish the Safe transactions. An example for this would be the Mainnet instance of the [Safe Transaction Service](https://safe-transaction-mainnet.safe.global/): `https://safe-transaction-mainnet.safe.global/`

```js
const service = new SafeService("some_service_url")
```

A Safe instance must also be created before obtaining the signer.
It may be obtained with:

```js
import { ethers } from "ethers"
import Safe from "@safe-global/safe-core-sdk"
import EthersAdapter from "@safe-global/safe-ethers-lib"

const safe = await Safe.create({
  ethAdapter: new EthersAdapter({ ethers, signerOrProvider }),
  safeAddress: "some_safe_address"
})
```

Using these components it is possible to create an instance of the `SafeEthersSigner`

```js
const safeSigner = new SafeEthersSigner(safe, service, provider)
```

See [examples](/packages/safe-ethers-adapters/examples) for more information.

## Installation

Select correct nvm version:

```bash
nvm use
```

Install the package with yarn or npm:

```bash
yarn install
npm install
```

## Build

Build the package with yarn or npm:

```bash
yarn build
npm build
```

## License

This library is released under MIT.

## Contributors

- Richard Meisser ([rmeissner](https://github.com/rmeissner))
- Germán Martínez ([germartinez](https://github.com/germartinez))
npm package: @rwinwij/safe-ethers-lib
Description: Ethers library adapter to be used by Safe Core SDK
Author: Safe
Latest version: 2.0.0

# Safe Ethers Lib

[![NPM Version](https://badge.fury.io/js/%40safe-global%2Fsafe-ethers-lib.svg)](https://badge.fury.io/js/%40safe-global%2Fsafe-ethers-lib)
[![GitHub Release](https://img.shields.io/github/release/safe-global/safe-core-sdk.svg?style=flat)](https://github.com/safe-global/safe-core-sdk/releases)
[![GitHub](https://img.shields.io/github/license/safe-global/safe-core-sdk)](https://github.com/safe-global/safe-core-sdk/blob/main/LICENSE.md)

Ethers.js wrapper that contains some utilities and the Safe contracts types (generated with typechain ethers-v5). It is used to initialize the [Safe Core SDK](https://github.com/safe-global/safe-core-sdk/tree/main/packages/safe-core-sdk).

## Table of contents
* [Installation](#installation)
* [Build](#build)
* [Initialization](#initialization)
* [License](#license)
* [Contributors](#contributors)

## <a name="installation">Installation</a>

Install the package with yarn or npm:

```bash
yarn install
npm install
```

## <a name="build">Build</a>

Build the package with yarn or npm:

```bash
yarn build
npm build
```

## <a name="initialization">Initialization</a>

If the app integrating the SDK is using `Ethers` `v5`, create an instance of the `EthersAdapter`, where `signer` is the Ethereum account we are connecting and the one who will sign the transactions.

```js
import { ethers } from 'ethers'
import EthersAdapter from '@safe-global/safe-ethers-lib'

const web3Provider = // ...
const provider = new ethers.providers.Web3Provider(web3Provider)
const safeOwner = provider.getSigner(0)

const ethAdapter = new EthersAdapter({
  ethers,
  signerOrProvider: safeOwner
})
```

Depending on whether the `ethAdapter` instance is used to sign/execute transactions or just call read-only methods, the `signerOrProvider` property can be a `Signer` or a `Provider`.

## <a name="license">License</a>

This library is released under MIT.

## <a name="contributors">Contributors</a>

- Germán Martínez ([germartinez](https://github.com/germartinez))
npm package: @rwirnsberger/git-tools
Description: A collection of git tools
Author: Raphael Wirnsberger
Latest version: 1.6.2

# Installation

Install the CLI globally:
```bash
npm install -g @rwirnsberger/git-tools
```

---

# Prerequisites

- **Node.js** >= 22
- **Git** >= 2.30
- Active internet connection
- **Groq API key** (can be generated for free [here](https://console.groq.com/keys)

---

# Commands

## auto-commit

Generate clean, conventional Git commit messages automatically from your staged changes — with an interactive feedback loop when you want fine-tuning.
![auto-commit-usage.gif](assets/auto-commit-usage.gif)

---

## auto-branch

Generate a Git branch with an automatically generated name based on the given issue. 
![auto-branch-usage.gif](assets/auto-branch-usage.gif)

Currently, the following issue providers are supported:
- GitHub
- GitLab
- Jira (Personal Access Token & API Token)

The tool prompts you at the first startup for your credentials. Make sure to grant the required scopes.

---

## branch-cleanup

Analyzes your local branches and tries to find branches which are obsolete.
![branch-cleanuo-usage.gif](assets/branch-cleanup-usage.gif)

This is done by checking the merge status, last commit date and the remote tracking status. The tool will not delete any branches without your confirmation.

---

## Configuration (Global vs. Repository)
For the commands `auto-commit` and `auto-branch`, you can configure the tool to use your preferred output style. There is one global configuration file which is shared across all repositories, but this can be overwritten per repository.

To locate or edit the config, run this inside a repository:
```bash
git-tools auto-commit config

# or
git-tools auto-branch config
```

### Recommended setup

#### Global config:
- Groq API key
- issue provider credentials
- Your default instructions & examples

#### Repository config:
- overrides for special commit conventions
- repository-specific examples or wording rules

This keeps sensitive data and defaults in one place, while allowing fine-grained control per project.
npm package: @rwirnsberger/ink-text-input
Description: Fork of ink-text-input: Text input component for Ink
Author: Raphael Wirnsberger
Latest version: 1.0.0

# ink-text-input ![test](https://github.com/vadimdemedes/ink-text-input/workflows/test/badge.svg)

> Text input component for [Ink](https://github.com/vadimdemedes/ink).

## Install

```sh
npm install ink-text-input
```

## Usage

```jsx
import React, {useState} from 'react';
import {render, Box, Text} from 'ink';
import TextInput from 'ink-text-input';

const SearchQuery = () => {
	const [query, setQuery] = useState('');

	return (
		<Box>
			<Box marginRight={1}>
				<Text>Enter your query:</Text>
			</Box>

			<TextInput value={query} onChange={setQuery} />
		</Box>
	);
};

render(<SearchQuery />);
```

<img src="media/demo.gif" width="556">

## Props

### value

Type: `string`

Value to display in a text input.

### placeholder

Type: `string`

Text to display when `value` is empty.

### focus

Type: `boolean` \
Default: `true`

Listen to user's input. Useful in case there are multiple input components at the same time and input must be "routed" to a specific component.

### showCursor

Type: `boolean`\
Default: `true`

Whether to show cursor and allow navigation inside text input with arrow keys.

### highlightPastedText

Type: `boolean`\
Default: `false`

Highlight pasted text.

### mask

Type: `string`

Replace all chars and mask the value. Useful for password inputs.

```jsx
<TextInput value="Hello" mask="*" />
//=> "*****"
```

### onChange

Type: `Function`

Function to call when value updates.

### onSubmit

Type: `Function`

Function to call when `Enter` is pressed, where first argument is a value of the input.

## Uncontrolled usage

This component also exposes an [uncontrolled](https://reactjs.org/docs/uncontrolled-components.html) version, which handles `value` changes for you. To receive the final input value, use `onSubmit` prop.
Initial value can be specified via `initialValue` prop, which is supported only in `UncontrolledTextInput` component.

```jsx
import React from 'react';
import {render, Box, Text} from 'ink';
import {UncontrolledTextInput} from 'ink-text-input';

const SearchQuery = () => {
	const handleSubmit = query => {
		// Do something with query
	};

	return (
		<Box>
			<Box marginRight={1}>
				<Text>Enter your query:</Text>
			</Box>

			<UncontrolledTextInput onSubmit={handleSubmit} />
		</Box>
	);
};

render(<SearchQuery />);
```
npm package: @rwirnsberger/ink-titled-box
Description: Fork of ink-titled-box: A component for using titled borders in Ink.
Author: Raphael Wirnsberger
Latest version: 1.0.1

# ink-titled-box

A component for using titled borders in [Ink](
https://github.com/vadimdemedes/ink). It is an extension of the `Box` component
of Ink.

## Installation

The library uses the peer dependencies `react` and `ink`.

### NPM

```sh
npm i @mishieck/ink-titled-box
```

### Bun

```sh
bun add @mishieck/ink-titled-box
```

## Features

### Border Styles

![Border Styles](https://github.com/user-attachments/assets/6b255c42-114c-4cfb-bf6f-86ce6b97b787)

> Note: Arrow borders do not work with the titles.

### Positions

![Positions](https://github.com/user-attachments/assets/ee045f02-416d-4c6f-8b22-f07d04cbe6c7)

### Title Styles

![Title Styles](https://github.com/user-attachments/assets/2adcb300-8626-4013-8d08-a272a0faaa1a)

### Colors

![Image](https://github.com/user-attachments/assets/1a5a6836-f20d-4b77-8445-ac09b97bcd33)

## Props

### borderStyle

This is the same as that in Ink, except it is required.

### titles

An array of titles for the border.

### titleStyles

The styles of titles as shown in [Title Styles](#title-styles). Without styles,
the titles have a transparent background and padded on both ends with a space.
The value is an object with the following properties:

- `start`: the character before the title. 
- `end`: the character after the title.

The library provides some title styles through the export `titleStyles`. You can
create your own in addition to those. You can use the provided styles as
follows:

```tsx
import React from "react";
import {TitledBox, titleStyles} from "@mishieck/ink-titled-box";

const Demo: React.FC = () => (
    <TitledBox
        borderStyle="single"
        titles={["Demo"]}
        titleStyles={titleStyles.rectangle}
    />
);
```

> Note: apart from `titleStyles.rectangle`, all other styles use 
> [Nerd Fonts](https://www.nerdfonts.com). So, if you do not have Nerd Fonts
> installed, you will not get the expected results.
npm package: @rwk/physics-math
Description: Math for physics homework problems
Author: Bob Kerns
Latest version: 0.1.37

# Physics Math

This provides functions to support physics education, providing a library of functions to describe
typical physics homework situations, together with their derivatives and integrals. Quantities and
functions are tagged with units. Values and functions display with suitable mathematical notation.

The ultimate goal is to build an interactive environment where a student can explore and build
an intuitive understanding of the mathematical relationships and their correspondence to familiar
physical reality, rather than memorize formula.

The use of sin/cos etc. is discouraged in favor of building on vectors, as was worked out by
Heavyside et al 139 years ago. That students are still often taught clumsy sin/cos rather than
dot and cross products is a disgrace; the result is barriers to clear and intuitive understanding,
and the impression that physics is more complex than the reality it describes.

One does not even escape the use of vectors; once you hit rotation and torque, they pop up anyway.

Rotation and orientation are represented as quaternions. This is most suitable for representing
Newtonian physics, the pedagogy may favor the more general affine transform approach. However,
rotation matricies can easily be presented from underlying quaternions. Still, the simplicity
and limited scope of quaternions may win out.

This is presently targeted at building examples on ObservableHQ. For current examples of the
work-in-progress, see
[the ObservableHQ Test Page](https://observablehq.com/@bobkerns/testing-physics-math)

See the documentation at https://bobkerns.github.io/physics-math/docs/index.html (still a work in progress).

Home: https://bobkerns.github.io/physics-math/

See the [CHANGELOG](./CHANGELOG.md).