open-index/open-npm huggingface dataset:
npm package: @mattmazzola/azure-functions-typescript
Description: Helper library for using TypeScript with Azure Functions
Author: Matt Mazzola
Latest version: 0.0.2

# TypeScript libraries for Azure Functions

> :construction: This library is still in alpha and not supported by the Azure Functions team for any use. :construction:

These are some helper libraries for folks trying to use TypeScript with Azure Functions

`npm install --save @mattmazzola/azure-functions-typescript`

```typescript
import { IHttpContext, IFunctionRequest, HttpStatusCodes } from 'azure-functions-typescript'

export function index(context: IHttpContext, req: IFunctionRequest) {
    if(req.method == "GET")
    context.res.status = HttpStatusCodes.OK;
    context.done(null, {});
}
```

You can use the `entryPoint` property in your `function.json` to specify the name of the function, if you have more than one export.

```json
"entryPoint": "index", 
```

## Development patterns

Because the Azure Functions portal doesn't support TypeScript yet, you have to manage the compilation yourself. 

If you develop locally, you can run your local host (see [azurefunctions](https://www.npmjs.com/package/azurefunctions) CLI), which will look for js files, and also `tsc -w`, which will look for ts files. Be sure you have sourcemaps turned on if you want nice debugging experiences.

If you develop remotely, you can create a PowerShell function which will run npm scripts for you, but `tsc -w` doesn't work very reliably due to the transient nature of the compute.

## Contributing

File issues on GitHub with description/code samples. 

You're also welcome to send a PR after following the instructions below. If it's a large change, please open an issue to discuss first.

### Settings up development environment

1. Use node version 5.9.1
2. Clone repo:

    `git clone https://github.com/christopheranderson/azure-functions-typescript.git` 
    `cd azure-functions-typescript`

3. Install dependences - `npm install`

### Test

1. Navigate to `./samples`
2. Test - `npm test`

If you see no errors, you're fine to send a PR.

## License

[MIT](LICENSE)
npm package: @mattmazzola/perceptron
Description: Perceptron library written in TypeScript
Author: Matt Mazzola
Latest version: 0.3.0

# perceptron
[![Build Status](https://travis-ci.org/mattmazzola/perceptron.svg?branch=master)](https://travis-ci.org/mattmazzola/perceptron)

Perceptron library written in TypeScript

## Installation
```
npm install --save @mattmazzola/perceptron
```

## Usage
```javascript
const and = new Perceptron(0.5, 0.1);

and.train([
  { vector: [0,0], output: false },
  { vector: [1,0], output: false },
  { vector: [0,1], output: false },
  { vector: [1,1], output: true }
]);

and.perceive([0,1]); // false
```
npm package: @mattmessinger/refund-guard
Description: TypeScript port of refund-guard — same behavior as the Python package (shared parity fixtures).
Latest version: 0.3.0

# @mattmessinger/refund-guard

TypeScript implementation of [refund-guard](https://github.com/MattMessinger1/agentic_refund_guardrail) -- safe refund policy enforcement for AI agents.

## Install

```bash
npm install @mattmessinger/refund-guard
```

## Quick example

```typescript
import { Refunds, DENIAL_MESSAGES } from "@mattmessinger/refund-guard";

const refunds = new Refunds({ skus: { shampoo: { refund_window_days: 30 } } });

const refund = refunds.makeRefundTool({
  sku: order.sku,
  transactionId: order.transactionId,
  amountPaidMinorUnits: order.amountCents,  // library divides by 100
  purchasedAt: order.purchasedAt,
  refundedAt: order.refundedAt,             // null or Date
  providerRefundFn: (amount, transactionId, currency) =>
    yourPaymentProvider.refund({ amount, transactionId, currency }),
});

const result = await refund();       // full refund -- or refund(50) for partial
// { status: "approved", refunded_amount: 80, ... }
// { status: "denied", reason: "already_refunded", ... }
const message = DENIAL_MESSAGES[result.reason as string];
```

The returned callable is **async**. Call with no argument for a full refund, or pass an amount for a partial refund. `providerRefundFn` can return a Promise or a plain value.

## Full docs

[GitHub repo](https://github.com/MattMessinger1/agentic_refund_guardrail) · [Integration guide](https://github.com/MattMessinger1/agentic_refund_guardrail/blob/main/docs/INTEGRATION_GUIDE.md) · [PyPI (Python)](https://pypi.org/project/refund-guard/)

## License

MIT
npm package: @mattmorgis/level
Description: Fast & simple storage - a Node.js-style LevelDB wrapper (a convenience package bundling LevelUP & LevelDOWN)
Latest version: 1.8.1

# Level

## Why this fork?

This fork is to provide [`level-party`](https://github.com/substack/level-party) a version of [`level`](https://github.com/Level/level) that installs on Node.js v10+ without going through major upgrades.

The module `level-party` depends on `level v1`, which will fail to install on Node.js v10+ due to it's dependecy on [`leveldown v1`].

When bumping to `level v2+`, key and value encodings are moved out of `levelup` and into [`encoding-down`](https://github.com/Level/encoding-down). This causes tests to fail in `level-party`.

This is a fork of `level v1`, but updates to use `leveldown v2`. This continues to keep tests passing on `level-party`, and enables it work on Node.js v10+

<img alt="LevelDB Logo" height="100" src="http://leveldb.org/img/logo.svg">

**Fast & simple storage - a Node.js-style LevelDB wrapper**

[![Build Status](https://secure.travis-ci.org/Level/level.png)](http://travis-ci.org/Level/level)
[![dependencies](https://david-dm.org/Level/level.svg)](https://david-dm.org/level/level)

[![NPM](https://nodei.co/npm/level.png?stars&downloads&downloadRank)](https://nodei.co/npm/level/) [![NPM](https://nodei.co/npm-dl/level.png?months=6&height=3)](https://nodei.co/npm/level/)

This is a convenience package that bundles the current release of **[LevelUP](https://github.com/level/levelup)** and **[LevelDOWN](https://github.com/level/leveldown)** and exposes LevelUP on its export.

Use this package to avoid having to explicitly install LevelDOWN when you just want plain old LevelDB from LevelUP.

```js
var level = require("level");

// 1) Create our database, supply location and options.
//    This will create or open the underlying LevelDB store.
var db = level("./mydb");

// 2) put a key & value
db.put("name", "Level", function(err) {
  if (err) return console.log("Ooops!", err); // some kind of I/O error

  // 3) fetch by key
  db.get("name", function(err, value) {
    if (err) return console.log("Ooops!", err); // likely the key was not found

    // ta da!
    console.log("name=" + value);
  });
});
```

See **[LevelUP](https://github.com/rvagg/node-levelup)** and **[LevelDOWN](https://github.com/rvagg/node-leveldown)** for more details.

<a name="contributing"></a>
Contributing

---

Level is an **OPEN Open Source Project**. This means that:

> Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.

See the [`CONTRIBUTING.md`](https://github.com/Level/community/blob/master/CONTRIBUTING.md) file for more details.

<a name="license"></a>
License &amp; Copyright

---

Copyright (c) 2012-2017 **Level** [contributors](https://github.com/level/community#contributors).

Level is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included `LICENSE.md` file for more details.
npm package: @mattnucc/gribberish
Description: JavaScript bindings for gribberish, a GRIB2 parsing library
Latest version: 0.30.2

# @mattnucc/gribberish

![CI](https://github.com/mpiannucci/gribberish/actions/workflows/js.yml/badge.svg)

Node.js bindings for [gribberish](https://crates.io/crates/gribberish), a Rust GRIB2 reader.

This package is a **reader only**. Loading GRIB2 bytes from local files, object stores, or network sources is intentionally left to your application.

## Install

```bash
yarn add @mattnucc/gribberish
```

or

```bash
npm install @mattnucc/gribberish
```

## Usage

Read the first message in a GRIB2 file:

```ts
import { readFileSync } from 'node:fs'
import { GribMessageFactory } from '@mattnucc/gribberish'

const data = readFileSync('sample.grib2')
const factory = GribMessageFactory.fromBuffer(data)
const first = factory.getMessage(factory.availableMessages[0])

console.log(first.varName, first.gridShape.rows, first.gridShape.cols)
```

Common entry points:

- `parseMessagesFromBuffer(buffer)` to parse all messages.
- `GribMessage.parseFromBuffer(buffer, offset)` to parse one message at a known offset.
- `GribMessageFactory.fromBuffer` to scan and fetch messages by key.
- `GribMessageMetadataFactory.fromBuffer` for metadata-first access.

## WebAssembly targets

WebAssembly packages are optional, so install with a wasm target selector instead of adding the package explicitly.

- npm (v10.2+):

```bash
npm install --cpu=wasm32 @mattnucc/gribberish
```

- yarn v4:

```yaml
# .yarnrc.yml
supportedArchitectures:
  cpu:
    - current
    - wasm32
```

Then run `yarn install`.

In Node, set `NAPI_RS_FORCE_WASI=1` (or `NAPI_RS_FORCE_WASI=error`) if you want to force the WASM runtime path.

## Build and test

- `yarn install`
- `yarn build`
- `yarn test`

## Requirements

- Rust toolchain
- Node.js (CI validates on 20/22; release jobs run on 24)
- Yarn 4.x (`packageManager: yarn@4.12.0`)

## Release workflow

The `js` workflow publishes artifacts from GitHub Actions when you push a version tag.

1. `npm version [major | minor | patch | ...]`
2. `git push --follow-tags`

Make sure `NPM_TOKEN` is set in repository secrets.

> Do not run `npm publish` manually.
npm package: @mattnucc/gribberish-linux-x64-gnu
Description: JavaScript bindings for gribberish, a GRIB2 parsing library
Latest version: 0.30.2

# `@mattnucc/gribberish-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `@mattnucc/gribberish`
npm package: @mattnucc/gribberish-win32-x64-msvc
Description: JavaScript bindings for gribberish, a GRIB2 parsing library
Latest version: 0.30.2

# `@mattnucc/gribberish-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `@mattnucc/gribberish`
npm package: @mattoakes/bob
Description: CLI to build JavaScript files for React Native libraries
Author: Satyajit Sahoo
Latest version: 0.5.0-rc.0

# @react-native-community/bob

👷‍♂️ Simple CLI to build React Native libraries for different targets.

## Features

The CLI can build code for following targets:

- Android AAR files
- Generic CommonJS build
- ES modules build for bundlers such as webpack
- Flow definitions (copies .js files to .flow files)
- TypeScript definitions (uses tsc to generate declaration files)

## Why?

Metro handles compiling source code for React Native libraries, but it's possible to use them in other targets such as web. Currently, to handle this, we need to have multiple babel configs and write a long `babel-cli` command in our `package.json`. We also need to keep the configs in sync between our projects.

Just as an example, this is a command we have in one of the packages: `babel --extensions '.js,.ts,.tsx' --no-babelrc --config-file=./babel.config.publish.js src --ignore '**/__tests__/**' --copy-files --source-maps --delete-dir-on-start --out-dir dist && del-cli 'dist/**/__tests__' && yarn tsc --emitDeclarationOnly`. This isn't all, there's even a separate `babel.config.publish.js` file. And this only works for webpack and Metro, and will fail on Node due to ESM usage.

Bob wraps tools such as `babel` and `typescript` to simplify these common tasks across multiple projects. It's tailored specifically to React Native projects to minimize the configuration required.

## Installation

Open a Terminal in your project, and run:

```sh
yarn add --dev @react-native-community/bob
```

## Usage

To configure your project to use Bob, open a Terminal and run `yarn bob init` for automatic configuration.

To configure your project manually, follow these steps:

1. In your `package.json`, specify the targets to build for:

   ```json
   "@react-native-community/bob": {
     "source": "src",
     "output": "lib",
     "targets": [
       ["aar", {"reverseJetify": true}],
       ["commonjs", {"flow": true}],
       "module",
       "typescript",
     ]
   }
   ```

1. Add `bob` to your `prepare` step:

   ```js
   "scripts": {
     "prepare": "bob build"
   }
   ```

1. Configure the appropriate entry points:

   ```json
   "main": "lib/commonjs/index.js",
   "module": "lib/module/index.js",
   "react-native": "src/index.js",
   "types": "lib/typescript/src/index.d.ts",
   "files": [
     "lib/",
     "src/"
   ]
   ```

1. Add the output directory to `.gitignore` and `.eslintignore`

   ```gitignore
   # generated files by bob
   lib/
   ```

1. Add the output directory to `jest.modulePathIgnorePatterns` if you use [Jest](https://jestjs.io)

   ```json
   "modulePathIgnorePatterns": ["<rootDir>/lib/"]
   ```

And we're done 🎉

## LICENSE

MIT
npm package: @mattoakes/gl-react
Description: Universal React library, write and compose WebGL shaders, implement complex effects using a descriptive paradigm
Author: Gaëtan Renaudeau
Latest version: 3.18.0-alpha.0


<img width="32" alt="icon" src="https://cloud.githubusercontent.com/assets/211411/9813786/eacfcc24-5888-11e5-8f9b-5a907a2cbb21.png"> gl-react
========

`gl-react` is a [React](https://facebook.github.io/react/)  library to write and compose WebGL shaders.


## Links

- [Github](https://github.com/gre/gl-react)
- [Cookbook, examples, API](https://gl-react-cookbook.surge.sh)
- [![Join the chat at https://gitter.im/gl-react/Lobby](https://badges.gitter.im/gl-react/Lobby.svg)](https://gitter.im/gl-react/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
npm package: @mattoakes/gl-react-dom
Description: DOM implementation of gl-react, an universal React library to write and compose WebGL shaders
Author: Gaëtan Renaudeau
Latest version: 3.18.0-alpha.0

<img width="32" alt="icon" src="https://cloud.githubusercontent.com/assets/211411/9813786/eacfcc24-5888-11e5-8f9b-5a907a2cbb21.png"> gl-react-dom
========

`gl-react-dom` is the [React DOM](https://facebook.github.io/react/) implementation of [gl-react](https://github.com/gre/gl-react), library to write and compose WebGL shaders.

## Links

- [Github](https://github.com/gre/gl-react)
- [Cookbook, examples, API](https://gl-react-cookbook.surge.sh)
- [![Join the chat at https://gitter.im/gl-react/Lobby](https://badges.gitter.im/gl-react/Lobby.svg)](https://gitter.im/gl-react/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
npm package: @mattoakes/gl-react-expo
Description: React Native via Expo implementation of gl-react, an universal React library to write and compose WebGL shaders
Author: Gaëtan Renaudeau
Latest version: 3.18.0-alpha.1


<img width="32" alt="icon" src="https://cloud.githubusercontent.com/assets/211411/9813786/eacfcc24-5888-11e5-8f9b-5a907a2cbb21.png"> gl-react-expo
========

`gl-react-expo` is the [React Native](https://facebook.github.io/react-native/) via Expo implementation of [gl-react](https://github.com/gre/gl-react), library to write and compose WebGL shaders.

## Links

- [Github](https://github.com/gre/gl-react)
- [Cookbook, examples, API](https://gl-react-cookbook.surge.sh)
- [![Join the chat at https://gitter.im/gl-react/Lobby](https://badges.gitter.im/gl-react/Lobby.svg)](https://gitter.im/gl-react/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
npm package: @mattoakes/gl-react-headless
Description: headless-gl implementation of gl-react, an universal React library to write and compose WebGL shaders
Author: Gaëtan Renaudeau
Latest version: 3.18.0-alpha.0


<img width="32" alt="icon" src="https://cloud.githubusercontent.com/assets/211411/9813786/eacfcc24-5888-11e5-8f9b-5a907a2cbb21.png"> gl-react-headless
========

`gl-react-headless` is the [headless-gl](https://github.com/stackgl/headless-gl) implementation of [gl-react](https://github.com/gre/gl-react), library to write and compose WebGL shaders.

It is currently used to run the tests, but can also be used for server side rendering.

## Links

- [Github](https://github.com/gre/gl-react)
- [Cookbook, examples, API](https://gl-react-cookbook.surge.sh)
- [![Join the chat at https://gitter.im/gl-react/Lobby](https://badges.gitter.im/gl-react/Lobby.svg)](https://gitter.im/gl-react/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
npm package: @mattoakes/gl-react-native
Description: React Native standalone implementation of gl-react, an universal React library to write and compose WebGL shaders
Author: Gaëtan Renaudeau
Latest version: 3.18.0-alpha.0


<img width="32" alt="icon" src="https://cloud.githubusercontent.com/assets/211411/9813786/eacfcc24-5888-11e5-8f9b-5a907a2cbb21.png"> gl-react-native
========

`gl-react-native` is the [React Native](https://facebook.github.io/react-native/)  implementation of [gl-react](https://github.com/gre/gl-react). It is backed by [react-native-webgl](https://github.com/gre/react-native-webgl) which implements WebGL in React Native (If you are using Expo, it is recommended to use `gl-react-expo` instead).

## Install

To use this library, you will need install `gl-react` and `gl-react-native` which are pure JS libraries.
For the native WebGL implementation, you also need to install `react-native-webgl`, please refer to the [README / Install](https://github.com/gre/react-native-webgl#install).

**To summarize:**

```
yarn add gl-react@next gl-react-native@next react-native-webgl
```

and then, [**don't forget to see how to configure react-native-webgl**](https://github.com/gre/react-native-webgl#install).

## Links

- [Github](https://github.com/gre/gl-react)
- [Cookbook, examples, API](https://gl-react-cookbook.surge.sh)
- [![Join the chat at https://gitter.im/gl-react/Lobby](https://badges.gitter.im/gl-react/Lobby.svg)](https://gitter.im/gl-react/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
npm package: @mattoakes/redux-devtools-app-core
Description: Redux DevTools app core
Author: Mihail Diordiev
Latest version: 0.0.0

# Redux DevTools monitor app core

The core React component and Redux store for the Redux DevTools monitor app. It is split out to allow you to use it directly for transports other than the standard WebSocket one.

### Usage

```js
import { Provider } from 'react-redux';
import { Persistor } from 'redux-persist';
import { PersistGate } from 'redux-persist/integration/react';
import { App } from '@redux-devtools/app-core';
import { store, persistor } from "./yourStore";

export function Root() {
  return (
    <Provider store={store}>
      <PersistGate loading={null} persistor={persistor!}>
        <App />
      </PersistGate>
    </Provider>
  );
}
```

### License

MIT
npm package: @mattp0123/get-platform
Description: Get user platform (iOS, Android, Others)
Author: Matt Peng
Latest version: 1.0.3

# get-platform

## How to use

```typescript=
import getPlatform from '@mattp0123/get-platform'

const platform = getPlatform()

console.log(platform) // iOS | Android | Others
```

## Publish

```shell=
npm publish --access public
```