open-index/open-npm huggingface dataset:
npm package: @switt/react-native-leveldb
Description: Superfast React Native bindings for LevelDB
Author: GreenTriangle
Latest version: 3.0.6-alpha1

# react-native-leveldb
Sponsored by ![GreenTriangle](https://www.green-triangle.com/wp-content/uploads/2021/04/Logo-300x66.png)

Superfast React Native bindings for LevelDB:
* 2-7x faster than AsyncStorage or react-native-sqlite-storage - try the benchmarks under example/!
* completely synchronous, blocking API (even on slow devices, a single read or write takes 0.1ms)
* use it with Flatbuffers to turbo charge your app - support for binary data via ArrayBuffers

## Installation

```sh
yarn add react-native-leveldb
cd ios && pod install
```

## Usage

```ts
import {LevelDB} from "react-native-leveldb";

// Open a potentially new database.
const name = 'example.db';
const createIfMissing = true;
const errorIfExists = false;

const db = new LevelDB(name, createIfMissing, errorIfExists);

// Insert something into the database. Note that the key and the
// value can either be strings or ArrayBuffers. 

// Strings are read & written in utf8.
db.put('key', 'value');

// You can also use ArrayBuffers as input, containing binary data.
const key = new Uint8Array([1, 2, 3]);
const value = new Uint32Array([654321]);
db.put(key.buffer, value.buffer);

// Get values as string or as an ArrayBuffer (useful for binary data).
const readStringValue = db.getStr('key');
const readBufferValue = new Uint32Array(db.getBuf(key.buffer)!);
console.log(readStringValue, readBufferValue);  // logs: value [654321]

// Iterate over a range of values (here, from key "key" to the end.)
let iter = db.newIterator();
for (iter.seek('key'); iter.valid(); iter.next()) {
// There are also *Buf version to access iterators' keys & values.
  console.log(`iterating: "${iter.keyStr()}" / "${iter.valueStr()}"`);
}

// You need to close iterators when you are done with them. 
// Iterators will throw an error if used after this.
iter.close();

db.close();  // Same for databases.

```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT
npm package: @switt/react-native-tensorflow-lite
Description: Tensorflow Lite for React Native
Author: Switt Kongdachalert
Latest version: 0.5.8

# react-native-tensorflow-lite

Tensorflow Lite for React Native
(Currently iOS only).

## Installation

```sh
npm install @switt/react-native-tensorflow-lite
```

## Current features
- Documented in Typescript. Seriously, just read the types from there.
- Allow selection of model simply by local file URL (no need to add to compile-time). Was designed to be used with Expo's Asset system (resolve model file URI from Asset.fromModule(...)) 
- Input type : Image(s)
  - Input 1 or multiple images to be run on a Tensorflow Lite model.
  - Allow selecting resize mode of the images (fit vs fill)
  - Allow specifying crop areas (especially useful when using a previous model to crop out a region of interest)
- iOS :: TensorflowLite with TF Ops enabled (version 2.6.0 - 0.0.1 nightly fails linking due to duplicated symbols. Will update if stable.)
  - simply `pod install` and the linker flags are added automatically.

## Usage

```ts
import TensorflowLite from "@switt/react-native-tensorflow-lite";

// ...
const imageUris : string[] = ['local_path_to_image_1', 'local_path_to_image_2']

const modelAsset = Asset.fromModule(require('./face_landmark.tflite'));
await modelAsset.downloadAsync();

// Operation is run in batches of files. This is to minimize the number of react native bridge calls.
const results = await TensorflowLite.runModelWithFiles({
  model: modelAsset.localUri!,
  files: imageUris
});
this.setState({ results });
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT
npm package: @swittuth/mbta-tracker-sdk
Description: TypeScript SDK for MBTA Tracker API - provides easy access to MBTA routes, stops, predictions, alerts, and location services
Author: MBTA Tracker
Latest version: 1.1.3

# MBTA Tracker SDK

TypeScript/JavaScript SDK for the MBTA Tracker API. Provides easy access to MBTA routes, stops, predictions, alerts, and location services.

## Features

- 🚇 **MBTA Data**: Routes, stops, predictions, alerts, vehicles, and facilities
- 🗺️ **Location Services**: Geocoding via Nominatim API
- 🔒 **Type Safe**: Full TypeScript support with auto-generated types
- 🌐 **Universal**: Works in Node.js, browsers, and React Native
- 📦 **Zero Dependencies**: Uses native Fetch API

## Installation

```bash
npm install mbta-tracker-sdk
```

## Quick Start

```typescript
import { MbtaApi, NominatimApi, Configuration } from 'mbta-tracker-sdk';

// Configure the API client
const config = new Configuration({
  basePath: 'https://your-api-domain.com'  // Replace with your API URL
});

const mbtaApi = new MbtaApi(config);
const nominatimApi = new NominatimApi(config);

// Get all MBTA routes
const routes = await mbtaApi.getRoutes();

// Get stops for a specific route
const stops = await mbtaApi.getStops({ route: 'Red' });

// Get predictions for a stop
const predictions = await mbtaApi.getPredictions({
  route: 'Red',
  stop: 'place-sstat',
  directionId: 0,
  trip: 'trip-id',
  include: 'trip',
  sort: 'arrival_time'
});

// Search for location data
const location = await nominatimApi.getLocationData({
  street: '1 State St',
  city: 'Boston',
  state: 'MA',
  country: 'US',
  zipcode: '02109'
});
```

## API Reference

### MBTA API Methods

- `getRoutes()` - Get all MBTA routes
- `getStops(params)` - Get stops for a route
- `getPredictions(params)` - Get predictions for stops
- `getAlerts(params?)` - Get service alerts
- `getVehicleInformation(id, params)` - Get vehicle details
- `getStopFacilities(params)` - Get stop facility information
- `getRouteServiceInformation(params)` - Get route service details

### Nominatim API Methods

- `getLocationData(params)` - Geocode addresses

## Development

```bash
# Install dependencies
npm install

# Build the package
npm run build

# Clean build artifacts
npm run clean

# Prepare for publishing
npm run prepublishOnly
```

## Publishing

```bash
npm run prepublishOnly
npm publish
```

## Environment Support

- **Node.js**: ≥16.0.0
- **Browsers**: Modern browsers with Fetch API support
- **TypeScript**: ≥4.0
- **Module Systems**: CommonJS, ES6 modules

## License

MIT License - see [LICENSE](LICENSE) file for details.
npm package: @switz/eslint-config
Description: ``` $ yarn add -D eslint @switz/eslint-config # or $ pnpm install -D eslint @switz/eslint-config ```
Latest version: 13.0.0

# switz's eslint-config

## Installation

```
$ yarn add -D eslint @switz/eslint-config
# or
$ pnpm install -D eslint @switz/eslint-config
```

Update your eslint config (`eslint.config.mjs`)

```js
import main from '@switz/eslint-config';

export default [...main];
```

If you need React support, use

```js
import main from '@switz/eslint-config';
import react from '@switz/eslint-config/react.mjs';

export default [...main, ...react];
```

If you need mdx support, use

```js
import main from '@switz/eslint-config';
import mdx from '@switz/eslint-config/mdx.mjs';

export default [...main, ...mdx];
```

If you need tailwind support, use:

```js
import main from '@switz/eslint-config/main.mjs';
import react from '@switz/eslint-config/react.mjs';
import tailwind from '@switz/eslint-config/tailwind.mjs';

export default [...main, ...react, ...tailwind];
```

You should be able to combine configs just by spreading more into the array.

## Oxlint + Oxfmt (Alternative)

This package also ships oxlint and oxfmt configs as a faster alternative to ESLint + Prettier.

### Setup

Install oxlint and oxfmt, then reference the configs:

```bash
pnpm install -D oxlint oxfmt
```

Create an `oxlint.json` in your project root that extends the base config:

```json
{
  "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
  "extends": ["@switz/eslint-config/oxlint"]
}
```

For React, add the react config:

```json
{
  "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
  "extends": [
    "@switz/eslint-config/oxlint",
    "@switz/eslint-config/oxlint/react"
  ]
}
```

For Tailwind, add the tailwind config:

```json
{
  "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
  "extends": [
    "@switz/eslint-config/oxlint",
    "@switz/eslint-config/oxlint/react",
    "@switz/eslint-config/oxlint/tailwind"
  ]
}
```

Then run:

```bash
oxlint -c oxlint.json
```

**Formatting** — copy `.oxfmtrc.json` to your project root:

```bash
cp node_modules/@switz/eslint-config/.oxfmtrc.json .oxfmtrc.json
oxfmt .
```

Add scripts to your `package.json`:

```json
{
  "scripts": {
    "lint:ox": "oxlint -c oxlint.json",
    "fmt:ox": "oxfmt ."
  }
}
```

### Gaps vs ESLint configs

- **React**: oxlint covers ~20 of 80+ `eslint-plugin-react` rules. Core rules like `jsx-key`, `no-direct-mutation-state`, hooks rules, and `jsx-no-duplicate-props` are covered. Rules like `no-unstable-nested-components`, `no-array-index-key`, `jsx-handler-names` are not.
- **MDX**: oxfmt formats `.mdx` files, but does not lint embedded code blocks like `eslint-plugin-mdx` does.
- **TypeScript type-aware rules**: oxlint's type-aware checking is in alpha (~73% coverage of `typescript-eslint` recommended rules).

## Reference

https://eslint.org/docs/developer-guide/shareable-configs

## License

MIT, have fun
npm package: @swivel-admin/vue-plotly
Description: <p align="center"><img width="140"src="https://raw.githubusercontent.com/David-Desmaisons/vue-plotly/master/example/assets/logo.png"></p>
Latest version: 1.2.0


<p align="center"><img width="140"src="https://raw.githubusercontent.com/David-Desmaisons/vue-plotly/master/example/assets/logo.png"></p>

# vue-plotly
[![GitHub open issues](https://img.shields.io/github/issues/David-Desmaisons/vue-plotly.svg)](https://github.com/David-Desmaisons/vue-plotly/issues)
[![CircleCI](https://circleci.com/gh/David-Desmaisons/vue-plotly.svg?style=shield)](https://circleci.com/gh/David-Desmaisons/vue-plotly)
[![codecov](https://codecov.io/gh/David-Desmaisons/vue-plotly/branch/master/graph/badge.svg)](https://codecov.io/gh/David-Desmaisons/vue-plotly)
[![Npm version](https://img.shields.io/npm/v/vue-plotly.svg)](https://www.npmjs.com/package/vue-plotly)
[![MIT License](https://img.shields.io/github/license/David-Desmaisons/vue-plotly.svg)](https://github.com/David-Desmaisons/vue-plotly/blob/master/LICENSE)

<h2>Thin vue wrapper for <a
              href="https://plot.ly/javascript/"
              target="_blank"
            >plotly.js</a></h2>
<span>It provides:</span>
<ul>
  <li>all plotly.js methods and events</li>
  <li>data reactivity</li>
  <li>Redraw on resizing</li>
</ul>

![example](./example/assets/demo.gif)

## Live example
https://david-desmaisons.github.io/vue-plotly/

## Usage
```HTML
<Plotly :data="data" :layout="layout" :display-mode-bar="false"></Plotly>
```
```javascript
import { Plotly } from 'vue-plotly'

export default {
  components: {
    Plotly
  },
  data() {
    return {
      data:[{
        x: [1,2,3,4],
        y: [10,15,13,17],
        type:"scatter"
      }],
      layout:{
        title: "My graph"
      }
    }
  }
}
```
## API

#### Props 

- `data` ***Array*** (*optional*) 

  [Data](https://plot.ly/javascript/reference/) to be displayed

- `layout` ***Object*** (*optional*) 

  Graphic [layout](https://plot.ly/javascript/reference/#layout)

- `id` ***String*** (*optional*) 

  Id of the root HTML element of the component.

- Others:

  Plotly component implements the [transparent wrapper pattern](https://zendev.com/2018/05/31/transparent-wrapper-components-in-vue.html):<br>All other props will be passed as plotly graphic [option](https://plot.ly/javascript/configuration-options/).

## Installation
```
npm install vue-plotly
```

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

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

### Run your tests
```
npm run test
```

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

### Run your unit tests
```
npm run test:unit
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @swivel-finance/connect
Description: A flexible web3 connection service for swivel frontends and node scripting environments.
Author: Alexander Wende
Latest version: 0.0.2

# connect
A flexible web3 connection service for swivel frontends and node scripting environments.

## Features
- Supports multiple browser wallet extensions through [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963)
- Supports browser wallets, rpc providers, and mocked providers

## Installation
```bash
npm install --save @swivel-finance/connect
```

## Usage
```ts
import { WalletService } from '@swivel-finance/connect';
import { BrowserConnectionProvider } from '@swivel-finance/connect/connection/providers/browser/provider.js';

// create a wallet service instance, passing a compatible connection provider
// you could pass an rpc provider or a mock provider here as well
const walletService = new WalletService({
    connectionProvider: new BrowserConnectionProvider({
        chainId: 1,
    }),
});

// obtain a connection object by calling connect on the wallet service
// the connection object contains the following properties:
//
// interface Connection {
//     network: Network;
//     account: Account;
//     provider: Provider;
//     signer: Signer;
// }
const connection = await walletService.connect();
```

See more examples in the [examples](./examples) directory.
npm package: @swizm/react-native-template
Description: React Native Template
Author: shiwei93
Latest version: 0.0.2

# React Native Template

A minimal template with needed configurations.

1. Add `prettier` and `eslint` configuration
2. Add `husky` and `lint-staged` which I used every day
3. Add wonderful open source dependencies, such as
   - `@react-navigation/native` and `@react-navigation/native-stack` for navigating between screens.
   - `react-native-safe-area-context`
   - `react-native-gesture-handler` to handle user gesture
   - `react-native-reanimated`, this is an elegant animation libray in React Native
4. Move Gemfile into iOS folder
5. Update ruby version to `2.7.6` [Offical Ruby version](https://github.com/facebook/react-native/blob/main/template/_ruby-version)
6. Buildin Typescript

## Usage

Create a new project using this template.

```bash
npx react-native init Project --template @swi/react-native-template
```

## Credits ❤️

This template is modified from [react-native-typescript-template](https://github.com/react-native-community/react-native-template-typescript)

## Todo

- [ ] Github Actions for automated publishing.