open-index/open-npm huggingface dataset:
npm package: 3commas-js
Description: Easy to use javascript library to consume 3commas API including typescript support
Author: Francois Boiteux
Latest version: 1.0.0

# 3commas-js

An unofficial 3Commas API wrapper featuring:

- typescript typings
- all endpoints supported
- can be run in node or the browser

Have a look at the official API documentation [here](https://github.com/3commas-io/3commas-official-api-docs).

# Installation

```bash
npm install 3commas-js
```

or

```bash
yarn add 3commas-js
```

# Using in your project

TODO

# Roadmap

| API          | Overall Typing | Overall progress |
| ------------ | :------------: | ---------------: |
| Accounts     |      80%       |             100% |
| Bots         |      80%       |             100% |
| Deal         |      80%       |             100% |
| Grid bots    |      80%       |             100% |
| Marketplace  |      80%       |             100% |
| Users        |      80%       |             100% |
| Smart trades |      WIP       |              WIP |

# Test

Create a .env file with the following content:

```bash
API_KEY=<your_3comma_api_key>
API_SECRET=<your_3comma_api_secret>
```

Finally run `yarn` then `yarn test`
npm package: 3cplusv2-sdk-js
Description: The 3cplus V2 js sdk
Author: Mauri de Souza Nunes
Latest version: 0.3.0

# 3Cplus SDK JS

A SDK used internally to contact the api and socket of the 3cplusv2 exposing a consistent and reusable interface.

## Installation

```bash
yarn add 3cplusv2-sdk-js --save
```

## Usage

```js
import TcSDK from '3cplusv2-sdk-js'

// The constructor receives the same options as axios.create
const sdk = new TcSDK({
  baseURL: "https://app.3c.fluxoti.com"
})
.v1()
.withAuth('your_api_token_here')
.socket('https://socket.3c.fluxoti.com')

# Http Api
sdk.user().me()
.then((response) => console.log(response.data))
.catch((err) => console.log(err.response.data))

# Realtime integration
const socket = sdk.realtime().integration()

socket.on('connect', (event) => console.log('Listening for events'))
socket.on('integration', (event) => console.log(event))
socket.on('error', (err) => console.log(err))
```

All available api endpoints are under `.vX()`, separated by sections. Each method return an axios promise.

Please refer to the [Api Documentation](http://api-docs.3c.fluxoti.com) for more info about the conventions of the request parameters, responses and errors.
npm package: 3d-adjacency
Description: find clusters of adjacent cells from a 3d array.
Author: cdaringe
Latest version: 0.0.2

# 3d-adjacency

[ ![Codeship Status for cdaringe/3d-adjacency](https://codeship.com/projects/9480c8b0-0977-0134-9cd2-02b70758e3b0/status?branch=master)](https://codeship.com/projects/155284) [![Coverage Status](https://coveralls.io/repos/github/cdaringe/3d-adjacency/badge.svg?branch=master)](https://coveralls.io/github/cdaringe/3d-adjacency?branch=master) <img src="https://img.shields.io/badge/standardjs-%E2%9C%93-green.svg" />

find "clusters" of adjacent cells from a 3d array.  the array does _not_ need to be cubic, but it does need to be a rectangular prism.

## example

suppose you had a three dimensional array, full of 0s and 1s.  0s are white, and 1s are green.  graphically, it may look like:

<img style="max-height: 125px" src="https://raw.githubusercontent.com/cdaringe/3d-adjacency/master/img/green-white-array.png" />

what you desire is the sets of connected green cells.  graphically, it may look like:

<img style="max-height: 125px" src="https://raw.githubusercontent.com/cdaringe/3d-adjacency/master/img/green-clusters.png" />

well, that's exactly what this module provides!  yahoo!

```js
const adj3d = require('3d-adjacency')
const exampleCube = [ // as shown above
	[
	  [1, 0, 1], [0, 0, 0], [1, 0, 1],
	],
	[
	  [1, 0, 1], [0, 0, 0], [1, 0, 1],
	],
	[
	  [1, 0, 1], [0, 0, 0], [1, 0, 2],
	],
]
const groups = adj3d.find(exampleCube)
// ==>
/*
[ // four groups of green blocks
  [
    { x: 0, y: 0, z: 0, value: 1 },
    { x: 1, y: 0, z: 0, value: 1 },
    { x: 2, y: 0, z: 0, value: 1 }
  ],
  [
    { x: 0, y: 0, z: 2, value: 1 },
    { x: 1, y: 0, z: 2, value: 1 },
    { x: 2, y: 0, z: 2, value: 1 }
  ],
  [
    { x: 0, y: 2, z: 0, value: 1 },
    { x: 1, y: 2, z: 0, value: 1 },
    { x: 2, y: 2, z: 0, value: 1 }
  ],
  [
    { x: 0, y: 2, z: 2, value: 1 },
    { x: 1, y: 2, z: 2, value: 1 },
    { x: 2, y: 2, z: 2, value: 2 }
  ]
]
*/
```

_"Hey, why is output not matching the same form as the input?"_

Valid question.  Specifically, the output is a set of objects that are coordinates+values. the input is the actual data.  Although one might expect the output to be something like `[ [0, 1, 2] ]`, where `0, 1, 2` are coordinates, the input was not coordinate sets to begin with.

## install

`npm install --save 3d-adjacency`

## usage

See example above and the [offcial API docs](http://cdaringe.github.io/3d-adjacency)


### changelog

- 0.0.3 handle much larger arrays. remove recursive calls to keep stack down
npm package: 3d-ar-product-card
Description: A lightweight React component for displaying products in both Augmented Reality (AR) and 3D. Perfect for eCommerce applications where you want to showcase your products in an immersive and interactive way.
Latest version: 3.4.27


# AR 3D Product Card 

A lightweight React component for displaying products in both Augmented Reality (AR) and 3D. Perfect for eCommerce applications where you want to showcase your products in an immersive and interactive way.

## Installation

You can install the package via npm or yarn:

```bash
npm install 3d-ar-product-card
```

## Usage

```bash
import { AR3DProductCard } from '3d-ar-product-card';
```
## Basic Example
```bash
import React from 'react';
import { AR3DProductCard } from '3d-ar-product-card';

function App() {
  return (
    <div>
      <AR3DProductCard 
        gltfPath="/models/indoor_plant/scene.gltf" 
        imageSrc="/image/1.png" 
      />
    </div>
  );
}

export default App;

```

## Props
- gltfPath (string): The path to the 3D model file (GLTF format).

- imageSrc (string): The image to display on the product card.


## Setup Require
Make this src/components folder
name as Arcomponent.jsx

```bash
import { XrHitModelContainer } from '3d-ar-product-card';
```

```bash
import { useLocation } from 'react-router-dom';
import { XrHitModelContainer } from '3d-ar-product-card';

const Arcomponent = () => {
  const location = useLocation();
  const params = new URLSearchParams(location.search);
  const gltfPath = params.get('gltfPath') || './models/default.gltf';

console.log(gltfPath);


  console.log("gltfPath:", gltfPath); // Log the gltfPath for debugging

  return (
    <>
      {gltfPath ? (
        <XrHitModelContainer gltfPath={gltfPath} />
      ) : (
        <p>Error: No valid GLTF path provided.</p>
      )}
    </>
  );
};

export default Arcomponent;


```

Make route 'xr' of this component

Example
```bash


import Arcomponent from "./components/Arcomponent";

const App = () => {
  return(
  <Routes>
   <Route path="/xr" element={<Arcomponent />} />
  </Routes>
 
)};

export default App;
```
## Features

- **AR and 3D views**: Allows users to view products in Augmented Reality or 3D directly in their browser.
- **Customizable product card**: Easily add products to the card with customizable properties like model path, scale, position, and image.
- **Mobile and Desktop Support**: Automatically adjusts based on the device (mobile devices for AR and desktops for 3D).
- **Easy Integration**: Simple to use in any React application.

## License
MIT License.
npm package: 3d-array-to-string
Description: Convert an array to a string
Author: Tomomi Takenaga
Latest version: 1.0.2

# 3d-array-to-string

A small library which converts an array to a string.

## Usage

### Install

Install via npm or yarn: `npm install 3d-array-to-string`

### Example

`arrayToString(array, width, height, nSlices, original, conversion, spacePaddingNumber, linePaddingNumber, sliceSeparation)`

#### Parameters

- `array`: input array (3 dimensional)
- `width`: width of array
- `height`: height of array
- `nSlices`: number of slices of array
- `original`: the unique elements of array
- `conversion`: the string corresponding to original
- `spacePaddingNumber`: number of space following a string
- `linePaddingNumber`: line spacing
- `spaceSeparation`: slice separator string

```js
import { arrayToString } from "array-to-string";
// OR:
// const arrayToString = require('3d-array-to-string').arrayToString;

const array = [
  1, 1, 1, 1, 1, 0, 2, 3, 0, 3, 0, 2, 2, 0, 0, 0, 0, 2, 2, 0, 1, 0, 0, 2, 2, 1,
  1, 1, 1, 2,
];
console.log(
  arrayToString(array, 6, 5, 1, [0, 1, 2, 3], ["0", "1", "2", "3"], 1)
);
// 111110
// 230302
// 200002
// 201002
// 211112

console.log(
  arrayToString(array, 6, 5, 1, [0, 1, 2, 3], [" ", "_", "|", "."], 1)
);
// _____
// |. . |
// |    |
// | _  |
// |____|
```
npm package: 3d-assets
Description: Procedural 3D assets
Author: Pavel Boytchev
Latest version: 0.8.0

# 3D Assets

Procedural 3D assets. Work in progress. Check the website at
[https://boytchev.github.io/3d-assets/](https://boytchev.github.io/3d-assets/)
for the currently available assets:

* [Bookshelf](https://boytchev.github.io/3d-assets/online/bookshelf.html)
* [Chair](https://boytchev.github.io/3d-assets/online/chair.html)
* [Doorframe](https://boytchev.github.io/3d-assets/online/doorframe.html)
* [Drawer](https://boytchev.github.io/3d-assets/online/drawer.html)
* [Drink can](https://boytchev.github.io/3d-assets/online/drink-can.html)
* [Monitor](https://boytchev.github.io/3d-assets/online/monitor.html)
* [Mug](https://boytchev.github.io/3d-assets/online/mug.html)
* [Photo Frame](https://boytchev.github.io/3d-assets/online/photo-frame.html)
* [Plate](https://boytchev.github.io/3d-assets/online/plate.html)
* [Round Box](https://boytchev.github.io/3d-assets/online/round-box.html)
* [Speaker](https://boytchev.github.io/3d-assets/online/speaker.html)
* [Stool](https://boytchev.github.io/3d-assets/online/stool.html)
* [Table](https://boytchev.github.io/3d-assets/online/table.html)
* [Wardrobe](https://boytchev.github.io/3d-assets/online/wardrobe.html)
* [Wine bottle](https://boytchev.github.io/3d-assets/online/wine-bottle.html)
* [Wine glass](https://boytchev.github.io/3d-assets/online/wine-glass.html)

#### Demo with mugs and plates

Uses [mug.js](https://boytchev.github.io/3d-assets/docs/mug.html) and
[plate.js](https://boytchev.github.io/3d-assets/docs/plate.html) to make a scene
of two mugs and two plates. They change radomly at irregular intervals.

Textures work well on Chromium-based browsers or browsers that support WebGPU
(at the time of writing this sentence, Firefox chokes on textures).

[<img src="https://boytchev.github.io/3d-assets/demos/demo-mugs.jpg">](https://boytchev.github.io/3d-assets/demos/demo-mugs.html)