open-index/open-npm huggingface dataset:
npm package: @retroswap/eslint-config
Description: Eslint config for RetroSwap
Author: notspookyspacekook
Latest version: 1.0.0

# eslint-config-retro

Retro Eslint config with:

- Airbnb config
- Typescript
- Prettier

## Usage

```
npx install-peerdeps --dev @retroswap/eslint-config-retro
```

Add `"extends": "@retroswap/eslint-config-retro"` to your eslint config file.
npm package: @retroswap/retro-sdk
Description: 🛠 An SDK for building applications on top of Retroswap.
Latest version: 1.0.0

# Retroswap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://docs.uniswap.org/sdk/2.0.0/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/retroswap/retro-swap-sdk.git
```

Move into the retroswap-sdk working directory

```sh
cd retroswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @rettangoli/be
Description: Backend framework for Rettangoli JSON-RPC applications
Latest version: 1.0.3

# Rettangoli Backend (`@rettangoli/be`)

Backend framework for Rettangoli JSON-RPC applications.

## Core model

- App code lives in method folders under `src/modules/<domain>/<action>/`.
- Each method folder has:
  - `<action>.handlers.js`
  - `<action>.rpc.yaml`
  - `<action>.spec.yaml`
- `src/setup.js` exports only `{ port, deps }`.
- No user `src/index.js` or module aggregator files.

## Runtime exports

- `createApp`
- `createAppFromProject`
- `createMiddlewareChain`
- `createHttpHandler`

## CLI exports

`@rettangoli/be/cli` exports:

- `build`
- `check`
- `watch`

## Config (`rettangoli.config.yaml`)

```yaml
be:
  dirs:
    - "./src/modules"
  middlewareDir: "./src/middleware"
  setup: "./src/setup.js"
  outdir: "./.rtgl-be/generated"
  cors:
    allowedOrigins:
      - "http://localhost:3001"
    allowCredentials: true
    allowMethods:
      - "POST"
      - "OPTIONS"
    allowHeaders:
      - "Content-Type"
      - "Authorization"
    maxAgeSec: 86400
```

`be.cors` enables transport-level CORS handling for the RPC endpoint, including
`OPTIONS` preflight responses.

## Commands

With `rtgl`:

```bash
rtgl be check
rtgl be build
rtgl be watch
```

`rtgl be build` generates:

- `.rtgl-be/generated/registry.js` (auto-imported handlers + rpc + middleware modules)
- `.rtgl-be/generated/app.js` (ready-to-use `createApp(...)` entry)

This keeps wiring in the framework so users do not maintain index/registry files.

## Handler outcome contract

Success:

```js
return { session: 'created' };
```

Expected domain error:

```js
return {
  _error: true,
  type: 'AUTH_REQUIRED',
  details: { reason: 'auth_required' },
};
```

Unexpected/system failures should `throw`; runtime maps thrown errors to JSON-RPC internal error.

## Cookies in middleware

- Read incoming cookies from `ctx.cookies.request`.
- Write outgoing cookies by appending objects to `ctx.cookies.response`.
- Full cookie config is JSON-based and serialized by transport runtime.

## Docs

Application design docs are in `docs/`:

- `docs/spec.md`
- `docs/templates.md`
- `docs/questions.md`
npm package: @rettangoli/sitekit
Description: Curated Rettangoli site themes, templates, partials, and VT coverage.
Author: Luciano Hanyon Wu
Latest version: 1.0.5

# Rettangoli Sitekit

`@rettangoli/sitekit` is the curated asset package for Rettangoli sites.
It owns reusable themes, templates, partials, schemas, and the VT coverage that validates them.

`@rettangoli/sites` remains the site generator engine.

## Package Layout

```text
rettangoli-sitekit/
  sitekit/
    templates/
    partials/
    themes/
    public/
    schemas/
  src/
  vt/
    specs/
    reference/
  _site/
  rettangoli.config.yaml
```

## What Lives Here

- `sitekit/themes/`: theme CSS bundles that consumer sites copy into `static/public/`
- `sitekit/templates/`: reusable page-level YAML templates with sibling `*.schema.yaml` contract files
- `sitekit/partials/`: internal/shared building blocks used by templates
- `sitekit/public/`: small helper runtime assets required by the templates
- `sitekit/schemas/`: data-contract schemas for template and partial inputs
- `src/`: local preview site source that exercises the published assets
- `vt/`: screenshot coverage for themes and published templates
- `_site/`: generated preview output from `bun run build`

## Local Preview

From this folder:

```bash
cd /home/ubuntu/rettangoli/packages/rettangoli-sitekit
bun run watch
```

Open:
- `http://127.0.0.1:4173/`
- `http://127.0.0.1:4173/themes/slate-dark/`
- `http://127.0.0.1:4173/templates/landing-features/`
- `http://127.0.0.1:4173/templates/blog/article-list/`

Static preview flow:

```bash
cd /home/ubuntu/rettangoli/packages/rettangoli-sitekit
bun run build
bun run serve
```

Then open:
- `http://127.0.0.1:4173/`

`bun run serve` uses the local `serve` dev dependency from this package.

## VT Commands

```bash
cd /home/ubuntu/rettangoli/packages/rettangoli-sitekit
bunx rtgl vt screenshot --group themes
bunx rtgl vt screenshot --group docs-template
bunx rtgl vt screenshot --group templates
bunx rtgl vt report --group templates
bun run vt:ci
bunx rtgl vt accept
```

`bun run vt:ci` runs the stable VT screenshot smoke subset used by CI/CD.

## Local Structure

The package is split on purpose:

- `sitekit/`: publishable assets
- `src/`: preview site source
- `vt/`: screenshot specs and references only
- `_site/`: generated output

The scripts hide the generator flags so local usage stays short:

- `bun run watch`
- `bun run build`
- `bun run serve`
- `bun run vt:ci`

## Consumer Runtime Contract

The published templates assume these files exist in the consuming site's `static/public/`:

- `theme-rtgl-themes.css`
- `mobile-nav.js`
- `rtgl-icons.js`

Copy them from:

- `sitekit/themes/theme-rtgl-themes.css`
- `sitekit/public/mobile-nav.js`
- `sitekit/public/rtgl-icons.js`

UI runtime assets still come from `@rettangoli/ui` CDN inside the templates.

## Published Asset Index

See [sitekit/README.md](./sitekit/README.md) for the public template/theme/schema paths and required data contracts.
See [src/README.md](./src/README.md) for the local preview site layout.
See [vt/README.md](./vt/README.md) for VT commands and coverage structure.
npm package: @rettangoli/ui
Description: A UI component library for building web interfaces.
Author: Luciano Hanyon Wu
Latest version: 1.4.2

# Rettangoli UI

A UI component library built on Web Components with attribute-first styling.

## Quickstart

### CDN (iife)
Primitives only (lightweight):
```html
<script src="https://cdn.jsdelivr.net/npm/@rettangoli/ui@latest/dist/rettangoli-layout.iife.min.js"></script>
```

Primitives + components:
```html
<script src="https://cdn.jsdelivr.net/npm/@rettangoli/ui@latest/dist/rettangoli-ui.iife.min.js"></script>
```

### NPM (ESM)
```bash
npm install @rettangoli/ui
```

```js
import { RettangoliView } from '@rettangoli/ui';
customElements.define('rtgl-view', RettangoliView({}));
```

### Minimal usage
```html
<rtgl-view p=md g=sm>
  <rtgl-text>Hello</rtgl-text>
  <rtgl-button>Click</rtgl-button>
</rtgl-view>
```

### Stylesheet
You must load two CSS files in this order:

```html
<link rel="stylesheet" href="node_modules/@rettangoli/ui/dist/themes/base.css">
<link rel="stylesheet" href="node_modules/@rettangoli/ui/dist/themes/theme-rtgl-slate.css">
```

`base.css` is required for base HTML normalization. Then choose exactly one theme file.

Available prebuilt themes:

- `dist/themes/theme-rtgl-slate.css`
- `dist/themes/theme-rtgl-mono.css`
- `dist/themes/theme-catppuccin.css`

---

For development workflows, component architecture, and interface rules, see `DEVELOPMENT.md`.
npm package: @rettswebapp/nestjs-libs-shared
Description: NestJS shared library for common utilities, decorators, filters, and more
Author: RET Technology Solutions
Latest version: 1.0.4

# @rettswebapp/nestjs-libs-shared

Shared libraries and utilities for NestJS applications.

## Installation

```bash
npm install @rettswebapp/nestjs-libs-shared
```

## Features

This package provides:

- **Common Decorators**: API Swagger Response, Request decorators, Text Format decorators
- **DTOs**: Default Request/Response DTOs
- **Filters**: Exception filters for HTTP, gRPC, and global exceptions
- **Interceptors**: Cache clearing, gRPC client retry, and more
- **Helpers**: App, Cast, Check, Cookies, Cron, Crypto, Env, Moment, Notification, Object, Peruri, String, TypeORM, Upload helpers
- **Configurations**: Pre-configured modules for Azure AD, Cache, Cookie, Database, JWT, Redis, Swagger, and more
- **Types**: Common types, enums, and interfaces

## Usage

```typescript
import { 
  ApiSwaggerResponseDecorator,
  RequestDefaultDto,
  ResponseDefaultDto,
  AllExceptionFilter,
  AppHelper,
  CryptoHelper
} from '@rettechnologys/nestjs-libs-shared';
```

## License

MIT
npm package: @retune.so/tokenizer
Description: GPT-3 encoder/decoder for Typescript based project
Latest version: 0.4.0

# GPT-3-Encoder
GPT-3 Encoder/Decoder for Typescript based project

## About
GPT-2 and GPT-3 use byte pair encoding to turn text into a series of integers to feed into the model. This is a javascript implementation of OpenAI's original python encoder/decoder which can be found [here](https://github.com/openai/gpt-2)
npm package: @returngo-ai/eslint-config
Description: Shared ESLint configuration for personal projects
Author: ReturnGO
Latest version: 1.0.2


# How to use

```shell
npm install --save-dev @returngo-ai/eslint-config
```


- Create .eslintrc.json in the root of your project with the following content
```json
{
  "extends": "@returngo-ai/eslint-config"
}
```
Configure Your Project - add these scripts to your package.json

```json
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint --fix .",
   }
}
```
npm package: @returngo-ai/eslint-node
Description: Shared ESLint configuration for ReturnGO projects
Author: ReturnGO
Latest version: 1.0.16


# How to use

```shell
npm install --save-dev @returngo-ai/eslint-node
```

## Installation error?
If you encounter issues with installation - you might need to remove some packages from your package.json, 
as now they will be served from @returngo-ai/eslint-node
```
npm uninstall @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint
npm install --save-dev @returngo-ai/eslint-node
```


- Create .eslintrc.json in the root of your project with the following content
```json
{
  "extends": "./node_modules/@returngo-ai/eslint-node"
}
```
Configure Your Project - add these scripts to your package.json

```json
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint --fix ."
   }
}
```
npm package: @returngo-ai/eslint-react
Description: Shared ESLint configuration for personal projects
Author: ReturnGO
Latest version: 1.0.3


# How to use

```shell
npm install --save-dev @returngo-ai/eslint-react
```


- Create .eslintrc.json in the root of your project with the following content
```json
{
  "extends": "@returngo-ai/eslint-react"
}
```
Configure Your Project - add these scripts to your package.json

```json
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint --fix ."
   }
}
```
npm package: @returngo-ai/prettier-config
Description: Shared Prettier configuration for ReturnGO projects
Latest version: 1.0.4

# How to use Prettier

- Run
```shell
npm install --save-dev @returngo-ai/prettier-config prettier
```


- Create prettier.config.cjs in the root of your project
- Add the following
```js
module.exports = require('@returngo-ai/prettier-config');
```
npm package: @returnless/focus-ui
Description: A clean, opinionated, and functional UI library for Vue3.
Latest version: 0.0.66

# Returnless Focus-UI

A clean, opinionated, and functional UI library for Vue3.

https://returnless-com.github.io/focus-ui/

## Installation

Install the package via npm:

```bash
npm install @returnless/focus-ui
```

### Run the docs

```bash
npm run docs:dev
```

## License

Source code is licensed under the [MIT license](https://github.com/Returnless-com/focus-ui/blob/main/LICENSE.md).
npm package: @returnlogic/trade-gecko-api
Description: ## Installation:
Author: Jiyoon Kim
Latest version: 1.0.4

# TradeGecko API Node.js

## Installation:

```shell
$ npm install --save @returnlogic/trade-gecko-api

// Using Yarn

$ yarn add @returnlogic/trade-gecko-api
```


## API

Constructor Function That Takes an AccessToken Argument

### `TradeGecko(accessToken)`

Creates a new TradeGecko Instance

#### Arguments

- `accessToken` - Required - A unique key used to make request to the TradeGecko API.

### Resources

Resources are accessed through a TradeGecko instance

```js 
const tradeGecko = require('trade-gecko-api-client')({
    accessToken
});
```

All tradeGecko resource methods return a promise

```js 
tradeGecko.address.list().then(result => {

}).catch(err => {

});
```
### Resource Names and Methods
  
- address
  - `create([bodyParams])`
  - `retrieve(address_code)`
  - `list([queryParams])`
  - `update(address_code [, bodyParams])`
  - `remove(address_code)`
- company
  - `create([bodyParams])`
  - `retrieve(company_code)`
  - `update(company_code [, bodyParams])`
  - `remove(company_code)`
- currency
  - `create([bodyParams])`
  - `retrieve(currency_code)`
  - `list([queryParams])`
  - `update(currency_code [, bodyParams])`
  - `remove(currency_code)`
- fulfillmentReturn
  - `create([bodyParams])`
  - `retrieve(fulfillment_return_code)`
  - `list([queryParams])`
  - `update(fulfillment_return_code [, bodyParams])`
  - `remove(fulfillment_return_code)`
- invoice
  - `create([bodyParams])`
  - `retrieve(invoice_code)`
  - `list([queryParams])`
  - `update(invoice_code [, bodyParams])`
  - `remove(invoice_code)`
- order
  - `create([bodyParams])`
  - `retrieve(order_code)`
  - `list([queryParams])`
  - `update(order_code [, bodyParams])`
  - `remove(order_code)`
  - `actions(id, action)`
- orderLineItem
  - `create([bodyParams])`
  - `retrieve(order_line_item_code)`
  - `list([queryParams])`
  - `update(order_line_item_code [, bodyParams])`
  - `remove(order_line_item_code)`
- product
  - `create([bodyParams])`
  - `retrieve(product_code)`
  - `list([queryParams])`
  - `update(product_code [, bodyParams])`
  - `remove(product_code)`
- purchaseOrder
  - `create([bodyParams])`
  - `retrieve(purchase_order_code)`
  - `list([queryParams])`
  - `update(purchase_order_code [, bodyParams])`
  - `remove(purchase_order_code)`
  - `actions(id, action)`
- stockAdjustmentLineItem
  - `create([bodyParams])`
  - `retrieve(stock_adjustment_line_item_code)`
  - `list([queryParams])`
  - `remove(stock_adjustment_line_item_code)`
- stockLevel
  - `list([queryParams])`
  - `retrieve(stock_level)`
- taxType
  - `create([bodyParams])`
  - `retrieve(tax_type_code)`
  - `list([queryParams])`
  - `update(tax_type_code [, bodyParams])`
  - `remove(tax_type_code)`
- user
  - `create([bodyParams])`
  - `retrieve(user_code)`
  - `list([queryParams])`
  - `update(user_code [, bodyParams])`
  - `remove(user_code)`
  - `current()`  
- variant
  - `create([bodyParams])`
  - `retrieve(variant_code)`
  - `list([queryParams])`
  - `update(variant_code [, bodyParams])`
  - `remove(variant_code)`
npm package: @returnx-sa/svelte-daterange-selector
Description: this project is for building a component library for Returnx SA using [Storybook](https://storybook.js.org/)
Latest version: 1.0.27

## Project

this project is for building a component library for Returnx SA using [Storybook](https://storybook.js.org/)

## Developing

Run the following cmds to start up the [storybook](https://storybook.js.org/) server:

```bash
#install node modules
npm install # once off command to install dependency packages

# start storybook
npm run storybook # port specified in package.json script
```

## Building

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.


## Usage

To use the daterange component in another project make sure to install: 

```bash
npm install @returnx-sa/svelte-daterange-selector@1.0.25
```

once the component is installed, make sure to import both the component and the css file to allow for the css to work on the component: 

```bash
import DateRangeSelector from "@returnx-sa/svelte-daterange-selector";
import "@returnx-sa/svelte-daterange-selector/returnxstyles.css";
```

## Releasing to NPM: 

In order to release the package to npm (after doing an npm login via the CLI to your domain):
1. Make sure the package is in line with the name you want to give your package name in the repo, i.e `"name": "@returnx-sa/svelte-daterange-selector"` in the package.json file will allow you to download it as `npm i @returnx-sa/svelte-daterange-selector`

2. run `npm run package` to package your component and you will see it packaged in a `dist` folder.

3. Once satisfied there are no errors for the package, run `npm publish`

4. Done !  you should be able to consume your product in an app