open-index/open-npm huggingface dataset:
npm package: @synthetixio/v3-contracts
Description: Synthetix V3 Contracts ABI and Addresses
Author: Synthetix
Latest version: 8.10.0

# v3-contracts
ABI and Adresses for Synthetix v3 contract deployments


#### Install the package:
```bash
npm install @synthetixio/v3-contracts
```
or
```bash
yarn add @synthetixio/v3-contracts
```

## Usage

Get ethers-v5 Contract instance for `CoreProxy` deployed to the `Mainnet`:
```js
const {ethers} = require('ethers');
const meta = require('@synthetixio/v3-contracts/1-main/meta.json');
const abi = require('@synthetixio/v3-contracts/1-main/CoreProxy.readable.json');

const provider = new ethers.providers.JsonRpcProvider(
  process.env.RPC_URL || 'http://127.0.0.1:8545'
);

const CoreProxy = new ethers.Contract(meta.contracts.CoreProxy, abi, provider);

const accountId = 1;
CoreProxy.getAccountOwner(accountId).then(console.log);
```

Dynamically load `CoreProxy` contract for a given chain and preset.

```ts
import {ethers} from 'ethers';

export async function importCoreProxy(chainId: number, preset: string = 'main') {
  switch (`${chainId}-${preset}`) {
    case '1-main':
      const [meta, abi] = await Promise.all([
        import('@synthetixio/v3-contracts/1-main/meta.json'),
        import('@synthetixio/v3-contracts/1-main/CoreProxy.readable.json')
      ]);
      return new ethers.Contract(meta.contracts.CoreProxy, abi, provider);

    case '10-main':
      const [meta, abi] = await Promise.all([
        import('@synthetixio/v3-contracts/10-main/meta.json'),
        import('@synthetixio/v3-contracts/10-main/CoreProxy.readable.json')
      ]);
      return new ethers.Contract(meta.contracts.CoreProxy, abi, provider);

    case '8453-andromeda':
      const [meta, abi] = await Promise.all([
        import('@synthetixio/v3-contracts/8453-andromeda/meta.json'),
        import('@synthetixio/v3-contracts/8453-andromeda/CoreProxy.readable.json')
      ]);
      return new ethers.Contract(meta.contracts.CoreProxy, abi, provider);

    default:
      throw new Error(`Unsupported chain ${chainId} for CoreProxy`);
  }
}

importCoreProxy(1, 'main')
  .then(async CoreProxy => {
    const accountId = 1;
    const address = await CoreProxy.getAccountOwner(accountId);
    console.log(address)
  })
```
npm package: @synthexia/bdfd-external
Description: A package that allows you to work with BDFD externally
Author: Kitomanari
Latest version: 4.0.1

# Introduction Note

The package was mainly created for better implementation of the Sync feature in our [VS Code Extension](https://marketplace.visualstudio.com/items?itemName=Synthexia.bdfd-extension).

## BDFD External

BDFD External is a package for web scrapping BDFD Web App and make requests to it.
Get your bot list and Get, Update, Create & Delete commands and variables externally!

```sh
npm i @synthexia/bdfd-external | pnpm add @synthexia/bdfd-external
```

## Code Example
```ts
import { type BDFDExternalRequestError, Command } from "@synthexia/bdfd-external";

Command.get(authToken, botId, commandId)
    .then((command) => {
        const { name, trigger, code, language } = command;

        console.log(`The "${name}" command's trigger is "${trigger}"`);
        console.log(`Its scripting language is ${language.name}`);
        console.log('Its code:\n', code);
    })
    .catch((e: BDFDExternalRequestError) => {
        console.error(e.statusCode, e.message);
    });
```
npm package: @synthia/simple-npm-package
Description: a simple hello world example
Author: Praveen Kumar
Latest version: 1.0.4

# simple-npm-package
A Simple Hello World Example npm package

## Installation
Install via NPM:

```bash
npm install simple-npm-package

```

## Usage

#### javascript

```javascript

var myApp = require("simple-npm-package");

myApp.printMsg(); // print and return " Hello World! " 

```

#### TypeScript

```typescript

import * as myApp from 'simple-npm-package';

myApp.printMsg(); // print and return " Hello World! " 


```

## License

This project is licensed under the terms of the
[MIT license](/LICENSE).
npm package: @synthigy/buffer
Description: WASM-powered transaction buffer for GraphQL - local state management with batched mutations
Author: Synthigy
Latest version: 0.1.4

# @synthigy/buffer

WASM-powered transaction buffer for GraphQL. Local state management with batched mutations.

## Installation

### npm (with bundler)

```bash
npm install @synthigy/buffer
```

```typescript
import { connect } from '@synthigy/buffer';

const buffer = await connect('https://api.example.com/graphql');
```

### CDN (no bundler)

```html
<script type="module">
  import { init, connect } from 'https://cdn.jsdelivr.net/gh/synthigy/buffer@v0.1.0/dist/index.mjs';

  await init({
    module: 'https://cdn.jsdelivr.net/gh/synthigy/buffer@v0.1.0/pkg-web/synthigy_wasm.js',
    wasmUrl: 'https://cdn.jsdelivr.net/gh/synthigy/buffer@v0.1.0/pkg-web/synthigy_wasm_bg.wasm'
  });

  const buffer = await connect('https://api.example.com/graphql');
</script>
```

## Quick Example

```typescript
import { connect } from '@synthigy/buffer';

// Connect (auto-fetches schema)
const buffer = await connect('https://api.example.com/graphql', {
  getAuthToken: async () => localStorage.getItem('token'),
});

// Query
const users = await buffer.search('user', { _limit: 10 }, {
  xid: null,
  name: null,
  roles: { name: null },  // simplified nested syntax
});

// Mutate locally
buffer.sync('user', { xid: 'user-1', name: 'Updated' });
buffer.stack('user', { xid: 'user-1', roles: [{ xid: 'new-role' }] });
buffer.delete('user', 'user-2');

// Commit to server
const result = await buffer.commit();
if (!result.success) {
  console.error(result.errors);
}
```

## Documentation

See [TS_GUIDE.md](./TS_GUIDE.md) for complete documentation.

## License

MIT
npm package: @synthit/nested-list
Description: Nested list Tool for EditorJS
Author: CodeX
Latest version: 0.0.1

![](https://badgen.net/badge/Editor.js/v2.19.2/blue)

# Nested List Tool for Editor.js

Multi-leveled lists for the [Editor.js](https://editorjs.io).

Use `Tab` and `Shift+Tab` keys to create or remove sublist with a padding.

![](assets/example.gif)

## Installation

### Install via NPM

Get the package

```shell
npm i --save @editorjs/nested-list
```

Or

```shell
yarn add @editorjs/nested-list
```

Include module at your application

```javascript
import NestedList from '@editorjs/nested-list';
```

### Load from CDN

Load the script from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@editorjs/nested-list) and connect to your page.

```html
<script src="https://cdn.jsdelivr.net/npm/@editorjs/nested-list@latest"></script>
```

## Usage

Add the NestedList Tool to the `tools` property of the Editor.js initial config.

```javascript
import EditorJS from '@editorjs/editorjs';
import NestedList from '@editorjs/nested-list';

var editor = EditorJS({
  // ...
  tools: {
    ...
    list: {
      class: NestedList,
      inlineToolbar: true,
    },
  },
});
```

## Config Params

This Tool has no config params

## Tool's settings

![](https://capella.pics/bf5a42e4-1350-499d-a728-493b0fcaeda4.jpg)

You can choose list`s type.

## Output data

| Field | Type      | Description                              |
| ----- | --------- | ---------------------------------------- |
| style | `string`  | type of a list: `ordered` or `unordered` |
| items | `Item[]`  | the array of list's items                |

Object `Item`:

| Field   | Type      | Description               |
| ------- | --------- | ------------------------- |
| content | `string`  | item's string content     |
| items   | `Item[]`  | the array of list's items |


```json
{
    "type" : "list",
    "data" : {
        "style" : "unordered",
        "items" : [
            {
              "content": "Apples",
              "items": [
                {
                  "content": "Red",
                  "items": []
                },
                {
                  "content": "Green",
                  "items": []
                },
              ]
            },
            {
              "content": "Bananas",
              "items": [
                {
                  "content": "Yellow",
                  "items": []
                },
              ]
            },
        ]
    }
},
```
npm package: @synthit/snapshot
Description: List Tool for Editor.js
Author: CodeX
Latest version: 0.0.1
Deprecated: false

![](https://badgen.net/badge/Editor.js/v2.0/blue)

# List Tool for Editor.js

This Tool for the [Editor.js](https://editorjs.io) allows you to add ordered or unordered (bulleted) lists to your article.

![](assets/example.gif)

## Installation

### Install via NPM

Get the package

```shell
npm i --save @editorjs/list
```
```shell
yarn add @editorjs/list
```

Include module at your application

```javascript
import List from '@editorjs/list';
```

### Download to your project's source dir

1. Upload folder `dist` from repository
2. Add `dist/bundle.js` file to your page.

### Load from CDN

Load the script from [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@editorjs/list) and connect to your page.

```html
<script src="https://cdn.jsdelivr.net/npm/@editorjs/list@latest"></script>
```

## Usage

Add the List Tool to the `tools` property of the Editor.js initial config.

```javascript
import EditorJS from '@editorjs/editorjs';
import List from '@editorjs/list';

var editor = EditorJS({
  // ...
  tools: {
    ...
    list: {
      class: List,
      inlineToolbar: true,
    },
  },
});
```

## Config Params

This Tool has no config params

## Tool's settings

![](https://capella.pics/bf5a42e4-1350-499d-a728-493b0fcaeda4.jpg)

You can choose list`s type.

## Output data

| Field | Type       | Description                            |
| ----- | ---------- | -------------------------------------- |
| style | `string`   | type of a list: `ordered` or `unordered` |
| items | `string[]` | the array of list's items              |


```json
{
    "type" : "list",
    "data" : {
        "style" : "unordered",
        "items" : [
            "This is a block-styled editor",
            "Clean output data",
            "Simple and powerful API"
        ]
    }
},
```

## I18n support

This tool supports the [i18n api](https://editorjs.io/i18n-api).
To localize UI labels, put this object to your i18n dictionary under the `tools` section:

```json
"list": {
  "Ordered": "Нумерованный",
  "Unordered": "Маркированный"
}
```

See more instructions about Editor.js internationalization here: [https://editorjs.io/internationalization](https://editorjs.io/internationalization)
npm package: @synthlet/adsr
Description: Adsr generator audio worklet
Latest version: 0.1.0

# @synthlet/adsr

> ADSR (Attack Decay Sustain Release) envelope generator module for [synthlet](https://github.com/danigb/synthlet)

```ts
import { registerAdsrWorklet, createVca } from "@synthlet/adsr";

const audioContext = new AudioContext();

await registerAdsrWorklet(audioContext);

// Create a VCA (Voltage Controlled Amplifier)
const vca = createVca({ attack: 0.1, decay: 0.1, sustain: 0.7, release: 0.3 });
// Connect the vca to the output
vca.connect(audioContext.destination);

// Connect an oscillator to the vca
const osc = new OscillatorNode(audioContext);
osc.start();
osc.connect(vca);

// Start and release the VCA
vca.gateOn(audioContext.now);
vca.gateOff(audioContext.now + 1);
```

## Install

```
npm i @synthlet/adsr
```

## Usage

### Register

You need to register the audio worklet before usage:

```ts
import { registerAdsrWorklet } from "@synthlet/adsr";
const context = new AudioContext();
await registerAdsrWorklet(context);
```

### Create

You can create the envelope generator in two modes: as modulator (to control amplitude) or generator (to control other node's parameters)

To use it as a VCA use `createVca` function:

```ts
import { createVca } from "@synthlet/adsr";

const vca = createVca({ attack: 0.1, decay: 0.1, sustain: 0.7, release: 0.2 });
```

To use it as a modulator use `createAdsr` function:

```ts
import { createAdsr } from "@synthlet/adsr";

const adsr = createAdsr({ gain: 1000, offset: 2000 });
adsr.connect(filter.frequency);
```

### Parameters

Parameters can be supplied to the create function and also accessed directly from the node:

```ts
const adsr = createAdsr({ attack: 0.1 });
adsr.attack.value = 0.2;
```

The available parameters are:

- `gate`: triggers and releases the envelope (default: 0, min: 0, max: 1)
- `attack`: duration of attack phase in ms (default: 0.min: 01, max: 0, 1)
- `decay`: duration of decay phase in ms (default: 0.min: 1, max: 0, 1)
- `sustain`: sustain value (default: 0.min: 5, max: 0, 1)
- `release`: duration or release phase in ms (default: 0.min: 3, max: 0, 1)
- `offset`: envelope value offset (default: 0, min: 0, max: 20000)
- `gain`: (default: 1, min: -20000max: , 20000)

### Trigger the attack and release

To trigger the attack phase you can use `gateOn` function with an optional time:

```ts
adsr.gateOn(audioContext.now);
```

To trigger the release phase you can use `gateOff` function with an optional time:

```ts
adsr.gateOff(audioContext.now);
```

Alternatively you can use the `gate` audio param:

```ts
// trigger attack
adsr.gate.value = 1;
// trigger release
adsr.gate.value = 0;
```

The advantage of the `gate` audio param is that it can be connected and therefore controlled from other nodes (like an LFO)

## License

MIT License
npm package: @synthlet/chorus-t
Description: A chorus (based on Tagu Audio Line) audio effect in a worklet
Latest version: 0.1.1

# @synthlet/chorus-t

> Chorus (based on TAL Noisemaker) audio effect

Part of [synthlet](https://github.com/danigb/synthlet) modular synthesis.

```ts
import { registerChorusWorklet, createChorus } from "synthlet"; // or "@synthlet/chorus-t";

const audioContext = new AudioContext();

await registerChorusWorklet(audioContext);

const osc = new Oscillator(audioContext, { frequency: 440 });
osc.start();
const chorus = createChorus(audioContext);

osc.connect(chorus).connect(audioContext.destination);
```

## References

The implementation of this Chorus is based on [TAL-Noisemaker](https://github.com/Nexbit/tal-noisemaker)
npm package: @synthlet/lfo
Description: A LFO (low frequency oscillator) generator audio worklet
Latest version: 0.1.0

# @synthlet/lfo

> [LFO](https://en.wikipedia.org/wiki/Low-frequency_oscillation) generator module for [synthlet](https://github.com/danigb/synthlet)

```ts
import { registerLfoWorklet, createLfo } from "synthlet"; // or "@synthlet/lfo";

const audioContext = new AudioContext();
await registerLfoWorklet(audioContext);

// Create a destination node
const osc = new OscillatorNode(audioContext, { frequency: 440 });

// Create the low frequency oscillator
const lfo = createLfo(audioContext, {
  type: "RandSampleAndHold"
  gain: 10,
  frequency: 1,
});

// Connect to destination parameter
lfo.connect(osc.frequency);
```

## Install

Full package:

```bash
npm i synthlet
```

Just this module:

```bash
npm i @synthlet/lfo
```

## Usage

You need to register the audio worklet before creating any instrument. See [/README.md#register] for details.
npm package: @synthlet/polyblep-oscillator
Description: PolyBLEP Oscillator module for synthlet
Author: danigb@gmail.com
Latest version: 0.2.0

# @synthlet/polyblep-oscillator

> An Oscillator module implemented with PolyBLEP algorithm for [synthlet](https://github.com/danigb/synthlet)

An oscillator implemented using the PolyBLEP (Polynomial Band-limited Step Functions -Valimaki et. al 2010) algorithm.

```js
import {} from "@synthlet/polyblep-oscillator";
```

## Install

```bash
npm i @synthlet/polyblep-oscillator
```

## References

- https://paulbatchelor.github.io/sndkit/blep/
- https://www.martin-finke.de/articles/audio-plugins-018-polyblep-oscillator/
- https://www.metafunction.co.uk/post/all-about-digital-oscillators-part-2-blits-bleps
- https://github.com/cmajor-lang/cmajor/blob/main/standard_library/std_library_oscillators.cmajor
npm package: @synthql/backend
Description: The SynthQL backend.
Latest version: 0.109.4

# @synthql/backend

The SynthQL backend.

```ts
import { QueryEngine } from '@synthql/backend';

// Initialize the query engine
const queryEngine = new QueryEngine({
    url: 'postgresql://user:password@localhost:5432/dbname',
});

// Write your query
const query = from('users')
    .columns('id', 'first_name')
    .filter({ id: { in: [1, 2, 3] } })
    .all();

// Execute the query
const result = await queryEngine.executeAndWait(query);
```

## Links

-   [Website](https://synthql.dev)
-   [Docs](https://synthql.dev/docs/getting-started)
-   [X/Twitter](https://twitter.com/fernandohur)
-   [GitHub](https://github.com/synthql/SynthQL)
npm package: @synthql/handler-express
Description: SynthQL-compatible route handler function for use in [Express.js](https://expressjs.com/en/starter/installing.html) server app.
Latest version: 0.109.4

# @synthql/handler-express

SynthQL-compatible route handler function for use in [Express.js](https://expressjs.com/en/starter/installing.html) server app.

```ts
// src/queryEngine.ts
import { QueryEngine } from '@synthql/backend';

export const queryEngine = new QueryEngine({
    url: 'postgresql://user:password@localhost:5432/dbname',
});

// src/index.ts
import express from 'express';
import { createExpressSynthqlHandler } from '@synthql/handler-express';
import { queryEngine } from './queryEngine';

const app = express();
const expressSynthqlRequestHandler = createExpressSynthqlHandler(queryEngine);

app.post('/synthql', async (req, res) => {
    return await expressSynthqlRequestHandler(req, res);
});

app.listen(3000);
```

## Links

-   [Website](https://synthql.dev)
-   [Docs](https://synthql.dev/docs/getting-started)
-   [X/Twitter](https://twitter.com/fernandohur)
-   [GitHub](https://github.com/synthql/SynthQL)
npm package: @synthql/introspect
Description: This package provides functionality to generate SynthQL schemas from a Postgres database.
Author: fhur
Latest version: 0.109.4

# @synthql/introspect

This package provides functionality to generate SynthQL schemas from a Postgres database.

If you are a SynthQL user, you're most likely looking for the `@synthql/cli` package, which gives you a CLI to generate SynthQL schemas.

## Links

-   [Website](https://synthql.dev)
-   [Docs](https://synthql.dev/docs/getting-started)
-   [X/Twitter](https://twitter.com/fernandohur)
-   [GitHub](https://github.com/synthql/SynthQL)