open-index/open-npm huggingface dataset:
npm package: @lfewallet/lfe
Description: Javascript sdk for lfe APIs
Author: lfe
Latest version: 1.0.1

# Lfe Javascript SDK

### About

This is the Javascript SDK for the Lfe API.

## Installation

via NPM:

`npm install @lfewallet/lfe`

via CDN:

`https://cdn.jsdelivr.net/npm/@lfewallet/lfe@{version_number}/build/lfe.min.js`

or use the minified file in the `build` folder

## Getting started

### Client Side 

Initialize the SDK with: 

`window.lfe = new Lfe(config);` 

or 

`const lfe = new Lfe(config);`(NodeJS)

Your `config` object should contain:

* `storageMethod` - Options are `session` for `sessionStorage` and `local` for `localStorage`

* `apiVersion` - Default is `3` (Version 3 is the only currently supported version)

* `apiToken` - Your Lfe API token

Example:

```
	var config = {
		apiVersion: 3, 
		storageMethod: "local",
		apiToken: "authenticationTokenHere"
	}

```

### Server Side (NodeJS)

Initialize the sdk with: 
`const lfe = new Lfe(config);`

Your `config` object should contain:

* `apiVersion` - Default is `3` (Version 3 is the only currently supported version)

* `apiToken` - Your Lfe API token

Example:

```
	var config = {
		apiVersion: 3, 
		apiToken: "authenticationTokenHere"
	}

```

### Custom API url

To use this SDK with a custom API url, your `config` object should contain `customAPIURL`

Example:

```
	var config = {
		...,
		customAPIURL: "https://whatever.stuff/
	}

```



### Documentation and usage

For more detailed documentation and usage [Docs](https://docs.lfe-token.com/).

License
-------------
<a href=/LICENSE target="_blank">MIT</a> license.
npm package: @lffg-scripts/rm-pg-dbs
Description: Drop PostgreSQL databases—in bulk, as you select.
Latest version: 2.0.0

# 🐘 `rm-pg-dbs`

[![NPM](https://img.shields.io/npm/v/@lffg-scripts/rm-pg-dbs.svg?logo=npm)](https://www.npmjs.com/package/@lffg-scripts/rm-pg-dbs)

Drop PostgreSQL databases—in bulk, **as you select**.  
[Watch an introduction video here.](https://www.youtube.com/watch?v=9qz3EuNMDfU)

```
yarn global add @lffg-scripts/rm-pg-dbs
```

And run it via:

```
rm-pg-dbs
```

Be default, this CLI will connect to the `localhost:5432` PostgreSQL database as `postgres` user with `postgres` password. The default database which will be connected is `postgres`.

You can override the default connection options with the following environment variables:

- `PGHOST`;
- `PGPORT`;
- `PGUSER`;
- `PGPASSWORD`;
- `PGDATABASE`.

You can set the `ALLOW_ANY_DROP` environment variable to `true` to enable the deletion of the `postgres`, `<your-os-username>`, `template1` and `template0` databases, which are filtered out of the selection list by default. You should not do this, though.

---

License MIT.  
Copyright &copy; [Luiz Felipe Gonçalves](https://luizfelipe.dev).
npm package: @lffg/charcode-sequence
Description: Charcode sequence encoder / decoder.
Author: Luiz Felipe Gonçalves
Latest version: 1.0.2

# `@lffg/charcode-sequence`

📜 Character code sequence encoder and decoder.

[![Build Status](https://circleci.com/gh/lffg/charcode-sequence.svg?style=svg)](https://circleci.com/gh/lffg/charcode-sequence)
[![NPM](https://img.shields.io/npm/v/@lffg/charcode-sequence.svg?logo=npm)](https://npmjs.org/package/@lffg/charcode-sequence)
![Uses TypeScript](https://img.shields.io/badge/Uses-Typescript-294E80.svg)

## Installing

```shell
yarn add @lffg/charcode-sequence

# If you're using NPM:
# npm install @lffg/charcode-sequence --save
```

## Basic Usage

```typescript
import { encode, decode } from '@lffg/charcode-sequence';

encode('Luiz'); // [76, 117, 105, 122]
decode([76, 117, 105, 122]); // "Luiz"
```

## Authors and License

[lffg](https://github.com/lffg) and [contributors](https://github.com/lffg/charcode-sequence/graphs/contributors).

MIT License, see the included [MIT](https://github.com/lffg/charcode-sequence/blob/master/LICENSE) file.
npm package: @lfflorian/platzom
Description: traductor de idioma platzom
Author: lfflorian4@gmail.com
Latest version: 0.1.0

# Plarzom

Platzom es un idioma inventado para el [curso de fundamentos de JavaScrit ] (platzi.com) de platzi, educacion online

## Descripcion de idioma

- Si la palabra termina con "ar", se le quitan esas dos letras
- Si la palabra inicia con Z, se le añade "pe" al final
- Si la palabra traducida tiene 10 o más letras, se debe partir en dos por la mitad y unir con un guión medio
- Por último, si la palabra original es un palíndromo, ninguna regla anterior cuenta y se devuelve la misma palabra pero intercalando letras mayúsculas y minúsculas

## instalacion

```
npm install platzom

```

## Como usar

```
import platzom from 'platzom'

platzom("Programar") // Program
platzom("Zorro") // Zorrope
platzom("Zarpar") // Zarppe
platzom("abecedario") // abece-dario
platzom("sometemos") // SoMeTeMoS

## Creditos

- Sacha Lifszyc
- Luis Fernando

## licencia

[MIT]
npm package: @lfgf/cube-helper-web
Description: Web Bluetooth helper for GAN smart cubes (moves stream)
Author: lfgf
Latest version: 0.1.4

# cube-helper-web

This library was created as part of a personal experiment with smart cubes and Web Bluetooth.

A small, focused helper library that connects a **GAN smart cube** via **Web Bluetooth**
and exposes cube movements as simple, semantic events.

This library intentionally abstracts away Bluetooth, encryption and device-specific
protocols, allowing applications to consume cube moves (`R`, `U'`, `F2`, etc.)
with a minimal and stable API.

---

## ✨ Motivation

Working directly with smart cubes in the browser is harder than it should be.

Even with existing low-level libraries, applications still need to deal with:
- Web Bluetooth APIs
- RxJS event streams
- Device-specific event formats
- Noise and connection lifecycle

This project exists to **separate concerns**:

> Device & protocol complexity → **library**  
> Application logic → **consumer**

---

## 🧩 What this library does

- Connects to a **GAN smart cube** using Web Bluetooth
- Listens to cube movement events
- Emits **normalized cube moves** (`R`, `U'`, `F2`)
- Exposes a **small, framework-agnostic API**

---

## ❌ What this library does NOT do

- No UI
- No DOM access
- No game logic
- No cube state solving
- No Bluetooth abstractions for non-GAN devices

This is a **thin, intentional adapter**, not a full cube SDK.

---

## 🚀 Installation

```bash
npm install @lfgf/cube-helper-web
```
Requires a browser with Web Bluetooth support (Chrome / Edge, HTTPS or localhost).

---

🛠️ Usage

```ts
import { connectGanCubeMoves } from "@lfgf/cube-helper-web";

const cube = await connectGanCubeMoves();

const unsubscribe = cube.onMove(({ move }) => {
  console.log("Cube move:", move);
});

// later
await cube.disconnect();
```

---

🧠 API
connectGanCubeMoves(): Promise<CubeConnection>

Returns a connection object with:

```ts
type CubeConnection = {
  onMove(cb: (m: { move: string; ts: number }) => void): () => void;
  disconnect(): Promise<void>;
};
```

---

⚠️ Browser requirements

- Chrome or Edge (Chromium)
- User must explicitly allow Bluetooth access
- Device selection is user-driven (browser security model)

---

🔧 Internals

Internally, this library wraps gan-web-bluetooth, translating
low-level BLE/RxJS events into a stable, callback-based API.

This design allows applications to remain decoupled from:
- Bluetooth APIs
- RxJS
- Device-specific event shapes

---

📦 Use cases

- Cube training or analytics tools
- Creative or experimental browser-based projects
- Rapid prototyping with physical input devices

---

📄 License

MIT
npm package: @lfgroup/codegen-js-converter
Description: Micro (1.8 kB) `graphql-codegen` plugin, that converts enums from provided GraphQL server schema to a file with JS objects.
Latest version: 0.0.4

# @lfgroup/codegen-js-converter

Micro (1.8 kB) `graphql-codegen` plugin, that converts enums from provided GraphQL server schema to a file with JS objects.

### Example

Taking following gql schema, this plugin would generate code below. It is convinient to use generated result in a pre-compiled enviroment such as `next.config.js`

```gql
enum WowRole {
  Healer
  Damage
  Tank
}
```

```js
const WowRole = {
  Healer: 'Healer',
  Damage: 'Damage',
  Tank: 'Tank'
};
```

### Usage

In your YAML config file add a new generated file with this plugin as stated:

```yml
generates:
  src/generated/types.js:
    plugins:
      - '@lfgroup/codegen-js-converter'
```
npm package: @lfgzcl/gala-wallet-sdk
Description: To install dependencies:
Latest version: 0.0.1

# gala-wallet-sdk

To install dependencies:

```bash
bun install
```

To run:

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

This project was created using `bun init` in bun v1.1.26. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.