open-index/open-npm huggingface dataset:
npm package: @shoxsoft/fitness-calculators
Description: Calculators for sport and nutrition
Author: Mateusz Stanuch
Latest version: 1.1.0
Deprecated: Deprecated

# Nutrition formulas

## General info

Default units are metric (centimeters, kilogram). For imperarial units defaults are feets and pounds.

## Supported formulas

Following formulas are supported:

* Health:
  * BMI (Body Mass Index)
  * BMR (Basal Metabolic Rate)
    * Harris-Benedict equations (default)
    * Harris-Benedict equations revised by Roza and Shizgal
    * Harris-Benedict equations revised by Mifflin and St Jeor
  * Total Intake based on BMR
* Sport:
  * Maximum Heart Rate
  * Optimal weight for different type of runners
    * Stillman formula

## Results interpretation

Calculating optimal weight gives difference between this optimal weight and your actual weight.
* If the difference is less than zero then you're overweight for given runner type.
* If greater than zero then you're underweight forgiven runner type.


## Need to calculate something else?

Create an issue or merge reuqest!
npm package: @shoyunft/airdrop
Description: Contracts for airdropping shoyu NFTs
Author: LevX
Latest version: 1.2.0

# Shoyu Airdrop

Contracts for airdropping shoyu NFTs

## License

Distributed under the MIT License. See `LICENSE` for more information.

## Contact

* [LevX](https://twitter.com/LevxApp/)
npm package: @shoyunft/contracts
Description: ShoyuNFT
Author: 0xMasayoshi
Latest version: 2.0.5

# ShoyuNFT [![Coverage Status](https://coveralls.io/repos/github/shoyunft/shoyu-contracts/badge.svg)](https://coveralls.io/github/shoyunft/shoyu-contracts)

The purpose of the ShoyuNFT contracts is to add features of Sushi products to NFT marketplaces.

The main point of entry is the `cook()` function, which allows a user to provide a sequence of actions to be executed. Each action is composed of an adapter identifier and the ABI encoded function data to be executed. The adapter identifier refers to the index of the contract in the `AdapterRegistry` which contains the implentation for the given action.

Currently the `AdapterRegistry` contains 2 entries:

1. `TransformationAdapter`
   - Responsible for transfers, swapping ERC20s, wrapping/unwrapping ETH.
   - Composed of multiple Adapters
     - `TransferAdapter`
       - Includes functions to transfer tokens from the caller's wallet or from Shoyu contract. Users can utilize Shoyu's Seaport Conduit when transferring assets from their wallet.
     - `LegacySwapAdapter`
       - Swaps ERC20s via Sushiswap legacy pools.
2. `SeaportAdapter`
   - Fulfills a single or multiple orders on Seaport.

Example use cases:

- Purchase one or many listed NFTs with combination of ETH & ERC20s
- Accept one or many offers on NFTs and receive any ERC20/ETH

When more marketplaces are supported, it will be possible to trade across multiple markets in a single transaction. For example,

- NFT AMM has floor price at 1.5ETH
- Seaport order has item listed for 1.0 ETH
- User could buy the item on Seaport and sell it to AMM, while taking profits in a single transaction.

## Install

To install dependencies and compile contracts:

```bash
git clone https://github.com/shoyunft/shoyu-contracts && cd shoyu-contracts
yarn install
yarn build
```

## Usage

To run hardhat tests written in javascript:

```bash
yarn test
yarn coverage
```
npm package: @shoyunft/graphql-types
Description: GraphQL scalar types for Shoyu NFT Platform
Author: LevX
Latest version: 1.0.0-alpha.1

# Shoyu GraphQL Scalar Types

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## License

Distributed under the MIT License. See `LICENSE` for more information.
npm package: @shozonraj143/pro-setup
Description: A CLI tool for setting up new modules in projects
Author: Shozon Raj
Latest version: 1.0.4

# @shozonraj/pro-setup

A CLI tool for setting up new modules in projects.

## Installation

You can install `@shozonraj/pro-setup` globally using npm:

```bash
npm install -g @shozonraj/pro-setup
```

Or using Yarn:

```bash
yarn global add @shozonraj/pro-setup
```

## Usage

After installation, you can use the pro-setup command to create a new module:

```bash
 npm run pro-setup  <module-name>
```

or

```bash
 yarn pro-setup  <module-name>
```
npm package: @shpaw415/cloudflare-api
Description: To install dependencies:
Author: justin halle
Latest version: 0.0.7

# cloudflareapi

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

This project was created using `bun init` in bun v1.0.15. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
npm package: @shpaw415/next-login
Description: manage login and session for next with server-action
Author: justin halle
Latest version: 1.1.1

## ENV variables

- JWT_SECRET=<random 32 char>

## -- Exemple --

### Credential Login

1. create ( server.ts & client.ts )

2. in server.ts

```TypeScript
"use server";
import { credentialsLogin } from "@shpaw415/next-login";

async function logOpts() {
  return await credentialsLogin<{
    username: string;
    password: string;
  }>({
    loginCallback: async (data) => {
      return { username: data.username };
    },
  });
}

export const Login = async (data: { username: string; password: string }) =>
  (await logOpts()).login(data);

export const Logout = async () => (await logOpts()).logout();

export const getSession = async () => (await logOpts()).getSession();


```

3. in client.ts

```TypeScript
import { handleLogin, getSessionData, Logout } from "./server";
import { useSession } from "@shpaw415/next-login";

export default ReactElement() {
	const session = useSession(false);
	const serverAction_makeLogin = async () => {
		const logopts
		const loginStatus = await LogOpts({
			username: "JohnDoe",
			password: "Pa33w0rd"
		});
		if(!loginStatus) { /*login did not work...*/ }
		else {
			/*Login Success*/
			session.setSessionData(await getSessionData());
		}
	};
	const serverAction_logout = async () => {
		await Logout();
		session.logout();
	}
}
```

## Feature Docs

### useSession

- Every React-Components using: useSession(true)
  will be reRendered with the call of method ( session.setStatus(), session.setSessionData() or session.logout() )
npm package: @shpear/bus
Description: Message Bus service for @shpear Microservice platform
Author: Tim Roberts
Latest version: 0.0.0-development.2

# @shpear/bus

> Message bus for the @shpear microservice framework

## Usage

```js
// Import our factory function
const makeBus = require('@shpear/bus')

// Some cache interface
// Has no Default value
const cache = {
  get: id => Promise.resolve(address),
  set: (id, address) => Promise.resolve(),
  has: id => Promise.resolve(boolean),
  delete: id => Promise.resolve()
}

// Bus Server Interface
// can be created via `makeServer` from `@shpear/utils`
// Has no default value
const server = {
  _server: net.Server,
  messages: Observable<Actions>
}

// A function that given a JSON object,
// will return an Observable of a TCP message
// Defaults to Observable.of(JSON.stringify(msg))
const encode = msg => Observable<EncodedValue>
// A function that given a TCP message,
// will return an Observable of a JSON object
// Defaults to Observable.of(JSON.parse(msg))
const decode = msg => Observable<DecodedValue>

// Our logging interface for the Bus
// Defaults to console
const logger = {
  log: (...args) => void,
  warn: (...args) => void,
  error: (...args) => void,
  info: (...args) => void
}

// our bus instance
const bus = makeBus({
  cache,
  server,
  decode,
  encode,
  logger,
})

// Start the bus
bus.start()

// Sometime later...
// stop the bus
bus.stop()
```

## Schema

```
type INTERNAL_BUS_COMMAND =
    'REGISTER_ACTOR' |
    'UPDATE_ACTOR_ADDRESS' |
    'DEREGISTER_ACTOR'

type ActorID = string
type ActorAddress = string

interface Action {
  type: string;
  payload: any;
}

interface InternalCommandMessage {
  type: INTERNAL_BUS_COMMAND;
  payload: {
    actor_id: ActorID,
    actor_address?: ActorAddress
  }
}

interface ExternalMessage {
  action: Action;
  receiver_id: ActorID
}
```

## Example Commands

_**Register Actor to be able to receive messages**_

```
{
  type: 'REGISTER_ACTOR',
  payload: {
    actor_id: '1234',
    actor_address: 'localhost:5000'
  }
}
```

_**Update Actor's address**_

```
{
  type: 'UPDATE_ACTOR_ADDRESS',
  payload: {
    actor_id: '1234',
    actor_address: 'localhost:5000'
  }
}
```

_**Remove Actor from bus**_

```
{
  type: 'DEREGISTER_ACTOR',
  payload: {
     actor_id: '1234',
  }
}
```

_**Send Actor a message**_

```
{
  action: {
    type: 'Some action that means something to that person',
    payload: {
      some: {
        payload: 'stuff'
      }
    }
  },
  reciever_id: '1234'
}
```
npm package: @shpear/utils
Description: Utility functions for the @shpear microservice framework
Author: Tim Roberts
Latest version: 0.0.0-development.1

# @shpear/utils

> Utility functions for the @shpear microservice framework

## Usage
```js
const { makeServer, sendMessageAcrossTCP } = require('@shpear/utils')

// Creates a Server instance for our Message Bus
const { _server, messages } = makeServer()

// Send a message to a TCP server
sendMessageAcrossTCP({
  host: 'localhost',
  port: 5001
}, 'some value able to be sent to net.Socket.end')
```
npm package: @shqld/ts-node
Description: Let's use `babel-node` for TypeScript as easy as `ts-node`.
Latest version: 1.0.2

# `ts-node` with Babel.

Let's use `babel-node` for TypeScript as easy as `ts-node`.

NOTE: this is just a small wrapper for `babel-node` and only resolves verbose arguments passed to `babel-node`. See the core [`/ts-node.sh`](https://github.com/shqld/ts-node/blob/master/ts-node.sh).

### Install

```sh
npm i -D @shqld/ts-node
yarn add -D @shqld/ts-node
```

### Usage

```json
{
  "scripts": {
    "do-task": "ts-node tasks/some-task.ts"
  },
  "devDepedencies": {
    "@babel/core": "7.x",
    "@babel/preset-typescript": "7.x",
    "@shqld/ts-node": "1.x"
  }
}
```

```sh
npx do-task
yarn do-task
```
npm package: @shravan06/my-npm-package
Description: A simple math utility
Author: shakottary@gmail.com
Latest version: 1.0.0

# my-npm-package

A simple math utility.

## Installation
npm install my-npm-package

## Usage
const { add, subtract } = require('my-npm-package');
add(2, 3);       // 5
subtract(5, 2);  // 3
```

---

## 7. Add a .gitignore & .npmignore
**.gitignore** — keeps git clean:
```
node_modules/
.env
```
**.npmignore** — controls what gets uploaded to npm (exclude test files, etc.):
```
node_modules/
test/
.env
*.test.js