open-index/open-npm huggingface dataset:
npm package: @swig-wallet/paymaster-classic
Description: Paymaster client for @solana/web3.js 1.x.
Latest version: 1.0.5

# @swig-wallet/paymaster-classic

Paymaster client for @solana/web3.js 1.x.

## Installation

```bash
npm install @swig-wallet/paymaster-classic
# or
bun install @swig-wallet/paymaster-classic
```

## Usage

```typescript
import { createPaymasterClient } from '@swig-wallet/paymaster-classic';

const paymaster = createPaymasterClient({
  apiKey: 'your-api-key',
  paymasterPubkey: 'YourPaymasterPublicKey...',
  baseUrl: 'https://paymaster-api.example.com',
  network: 'mainnet',
});

// Create legacy transaction
const tx = await paymaster.createLegacyTransaction([instruction], [signer]);

// Sign and send
const signature = await paymaster.signAndSend(tx);
```

## API

### `createPaymasterClient(config)`

Factory function to create a new paymaster client instance.

### `PaymasterClient`

**Methods:**

- `createLegacyTransaction(instructions, signers?): Promise<Transaction>`
- `createTransaction(instructions, signers?, lookupTableAddresses?): Promise<VersionedTransaction>`
- `sign(transaction): Promise<Transaction | VersionedTransaction>`
- `signAndSend(transaction): Promise<TransactionSignature>`
- `signSerializedTransaction(serializedTx): Promise<SerializedTransaction>`
- `signAndSendSerializedTransaction(serializedTx): Promise<string>`

See the [main README](../../README.md) for full documentation.

## License

Apache-2.0
npm package: @swig-wallet/paymaster-core
Description: Core paymaster client for Solana gasless transactions.
Latest version: 1.0.5

# @swig-wallet/paymaster-core

Core paymaster client for Solana gasless transactions.

## Installation

```bash
npm install @swig-wallet/paymaster-core
# or
bun install @swig-wallet/paymaster-core
```

## Usage

```typescript
import { PaymasterClient } from '@swig-wallet/paymaster-core';

const client = new PaymasterClient({
  apiKey: 'your-api-key',
  paymasterPubkey: 'YourPaymasterPublicKey...',
  baseUrl: 'https://paymaster-api.example.com',
  network: 'mainnet',
});

// Sign a serialized transaction
const signedTx = await client.signSerializedTransaction(serializedTx);

// Sign and send
const signature = await client.signAndSendSerializedTransaction(serializedTx);
```

## API

### `PaymasterClient`

**Constructor:**

```typescript
new PaymasterClient(config: PaymasterConfig)
```

**Methods:**

- `isPaymasterFeePayer(serializedTx: SerializedTransaction): boolean`
- `signSerializedTransaction(serializedTx: SerializedTransaction): Promise<SerializedTransaction>`
- `signAndSendSerializedTransaction(serializedTx: SerializedTransaction): Promise<string>`

See the [main README](../../README.md) for full documentation.

## License

Apache-2.0
npm package: @swig-wallet/paymaster-kit
Description: Paymaster client for @solana/kit (web3.js 2.0).
Latest version: 1.0.5

# @swig-wallet/paymaster-kit

Paymaster client for @solana/kit (web3.js 2.0).

## Installation

```bash
npm install @swig-wallet/paymaster-kit
# or
bun install @swig-wallet/paymaster-kit
```

## Usage

```typescript
import { createPaymasterClient } from '@swig-wallet/paymaster-kit';
import { address } from '@solana/kit';

const paymaster = createPaymasterClient({
  apiKey: 'your-api-key',
  paymasterPubkey: address('YourPaymasterPublicKey...'),
  baseUrl: 'https://paymaster-api.example.com',
  network: 'mainnet',
});

// Create transaction
const tx = await paymaster.createTransaction([instruction], [signer]);

// Sign and send
const signature = await paymaster.signAndSend(tx);
```

## API

### `createPaymasterClient(config)`

Factory function to create a new paymaster client instance.

### `PaymasterClient`

**Methods:**

- `createTransaction(instructions, signers?): Promise<Transaction>`
- `sign(transaction): Promise<Transaction>`
- `fullySign(transaction): Promise<FullySignedTransaction>`
- `signAndSend(transaction): Promise<string>`
- `signTransactionMessage(txMessage): Promise<Transaction>`
- `signSerializedTransaction(serializedTx): Promise<SerializedTransaction>`
- `signAndSendSerializedTransaction(serializedTx): Promise<string>`

See the [main README](../../README.md) for full documentation.

## License

Apache-2.0
npm package: @swim/chart
Description: Multi-plot, fully animatable, canvas rendered chart widget, suppporting line, area, and bubble graphs, with customizeable axes, and kinematic multitouch scale gestures for panning and zooming with momentum
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Chart Library

The Swim Chart library implements multi-plot, fully animatable, canvas
rendered chart widgets, supporting line, area, and bubble graphs, with
customizable axes, and kinematic multitouch scale gestures for panning and
zooming with momentum.
npm package: @swim/codec
Description: Incremental I/O; functional parsers and writers; display, debug, and diagnostic formatters; and Unicode and binary codecs
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Codec Library

The Swim Codec library implements an incremental I/O engine, providing:

- functional parsers and writers
- display, debug, and diagnostic formatters
- Unicode and binary codecs

## Overview

### Inputs and Outputs

An `Input` reader abstracts over a non-blocking token input stream, with single
token lookahead. An `Output` writer abstracts over a non-blocking token output
stream.

### Parsers and Writers

A `Parser` incrementally reads from a sequence of `Input` chunks to produce a
parsed result. A `Writer` incrementally writes to a sequence of `Output`
chunks.

### Binary codecs

The `Binary` factory has methods to create `Input` readers that read bytes out
of byte buffers, and methods to create `Output` writers that write bytes into
byte buffers.

### Text codecs

The `Unicode` factory has methods to create `Input` readers that read Unicode
code points out of strings, and methods to create `Output` writers that write
Unicode code points into strings.

The `Utf8` factory has methods to create `Input` readers that decode Unicode
code points out of UTF-8 encoded byte buffers, and methods to create `Output`
writers that encode Unicode code points into UTF-8 encoded byte buffers.

### Binary formats

The `Base10` factory has methods to create `Parser`s that incrementally parse
decimal formatted integers, and methods to create `Writer`s that incrementally
write decimal formatted integers.

The `Base16` factory has methods to create `Parser`s that incrementally decode
hexadecimal encoded text input into byte buffers, and methods to create
`Writer`s that incrementally encode byte buffers to hexadecimal encoded text
output.

The `Base64` factory has methods to create `Parser`s that incrementally decode
base-64 encoded text input into byte buffers, and methods to create `Writer`s
that incrementally encode byte buffers to base-64 encoded text output.

### Formatters

The `Display` interface provides a standard way for implementing classes to
directly output human readable display strings. Similarly, the `Debug`
interface provides a standard way for implementing classes to directly output
developer readable debug strings.

`Format` provides extension methods to output display and debug strings for all
types, including builtin JavaScript types. `OutputStyle` provides helper
functions to conditionally emit ASCII escape codes to stylize text for console
output.

### Diagnostics

A `Tag` abstracts over a source input location. A `Mark` describes a source
input position, and a `Span` describes a source input range. A `Diagnostic`
attaches an informational message to a source input location, and supports
displaying the diagnostic as an annotated snippet of the relevant source input.
npm package: @swim/collections
Description: Immutable, structure sharing collections, including B-trees and S-trees (sequence trees)
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Collections Library

The Swim Collections library implements immutable, structure sharing
collections, including B-trees and S-trees (sequence trees).

## Overview

### B-trees

The `BTree` class implements the `OrderedMap` interface from **@swim/util**,
and compares keys using `Objects.compare`, also from **@swim/util**. `BTree`
is internally immutable, enabling lightweight snapshotting via `BTree.clone`,
and non-destructive mutation via `BTree.updated`, and `BTree.removed`.

`BTree` also implements the `ReducedMap` interface from **@swim/util**,
providing storage of sub-tree reductions in b-tree nodes to support log
time recomputation of whole tree reductions after incremental updates.

### S-trees

The `STree` class implements a sequential list data type that's backed by an
implicitly indexed b-tree. Like `BTree`, `STree` supports lightweight
snapshotting via `STree.clone`.

`STree` associated a unique ID with each list item, which can be used to
reconcile concurrent, conflicting updates to the same logical list.
npm package: @swim/core
Description: Lightweight, portable, dependency-free, and strongly typed foundation framework
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Core Framework

The Swim Core framework provides a lightweight, dependency-free, strongly
typed foundation on which the Swim frontend stack is built.
npm package: @swim/dom
Description: HTML and SVG views, with procedural attribute and style animators
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim DOM Library

The Swim DOM library implements HTML and SVG views, with procedural attribute
and style animators.
npm package: @swim/esrimap
Description: @swim/map overlays for ArcGIS maps
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Esri Map Library

The Swim Esri Map library implements [Swim Map][map] overlays for ArcGIS maps.

[map]: https://github.com/swimos/swim-js/tree/main/swim-maps/@swim/map
npm package: @swim/gauge
Description: Multi-dial, fully animatable, canvas rendered gauge widget
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Gauge Library

The Swim Gauge library implements multi-dial, fully animatable, canvas
rendered gauge views.
npm package: @swim/geo
Description: Geospatial coordinate, projection, and geometry types
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Geo Library

The Swim Geo library implements geospatial coordinate, projection, and geometry types.
npm package: @swim/googlemap
Description: @swim/map overlays for Google maps
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Google Map Library

The Swim Google Map library implements [Swim Map][map] overlays for Google maps.

[map]: https://github.com/swimos/swim-js/tree/main/swim-maps/@swim/map
npm package: @swim/graphics
Description: Canvas graphics views, with procedurally animated shapes, and procedurally styled typesetters
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Graphics Library

The Swim Graphics library implements a rendering engine and synthetic event
system for canvas graphics views.
npm package: @swim/host
Description: Multiplexed streaming WARP framework that runs in Node.js and web browsers
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Host Framework

The Swim Host framework implements a multiplexed streaming API client for
communicating with stateful backend Web Agents.
npm package: @swim/leaflet
Description: @swim/map overlays for Leaflet maps
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Leaflet Library

The Swim Leaflet library implements [Swim Map][map] overlays for Leaflet maps.

[map]: https://github.com/swimos/swim-js/tree/main/swim-maps/@swim/map
npm package: @swim/map
Description: Graphics views for efficiently rendering animated geospatial map overlays
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Map Library

The Swim Map library implements graphics views for efficiently rendering
real-time geospatial map overlays.
npm package: @swim/mapbox
Description: @swim/map overlays for Mapbox maps
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Mapbox Library

The Swim Mapbox library implements [Swim Map][map] overlays for Mapbox maps.

[map]: https://github.com/swimos/swim-js/tree/main/swim-maps/@swim/map
npm package: @swim/maps
Description: Real-time geospatial map overlays, with support for Mapbox, Google, and Esri maps
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Maps Framework

The Swim Maps framework implements real-time map visualizations optimized
for streaming applications.
npm package: @swim/model
Description: Lifecycle-managed model hierarchy supporting dynamic scoping and service injection
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Model Library

The Swim Model library implements a trait-based model framework for
dynamically composed, real-time-capable models.
npm package: @swim/pie
Description: Multi-slice, fully animatable, canvas rendered pie chart widget
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Pie Library

The Swim Pie library implements multi-slice, fully animatable, canvas
rendered pie chart views.
npm package: @swim/sheet
Description: Navigation stacks, master-detail folios, and tabbed binder views and controllers
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Sheet Library

The Swim Sheet library implements navigation stacks, master-detail folios,
and tabbed binder views and controllers.
npm package: @swim/site
Description: Minimalist components that implement common dynamic website behaviors
Author: Chris Sachs
Latest version: 3.10.1

# @swim/site

[![package](https://img.shields.io/npm/v/@swim/site.svg)](https://www.npmjs.com/package/@swim/site)
[![documentation](https://img.shields.io/badge/doc-TypeDoc-blue.svg)](https://docs.swimos.org/js/latest/modules/_swim_site.html)
[![chat](https://img.shields.io/badge/chat-Gitter-green.svg)](https://gitter.im/swimos/community)

<a href="https://www.swimos.org"><img src="https://docs.swimos.org/readme/marlin-blue.svg" align="left"></a>

**@swim/site** provides minimalist components that implement common dynamic
website behaviors.  **@swim/site** is part of the
[**@swim/web**](https://github.com/swimos/swim/tree/master/swim-system-js/swim-web-js/@swim/web) framework.

## Installation

### npm

For an npm-managed project, `npm install @swim/site` to make it a dependency.
TypeScript sources will be installed into `node_modules/@swim/site/main`.
Transpiled JavaScript and TypeScript definition files install into
`node_modules/@swim/site/lib/main`.  And a pre-built UMD script can
be found in `node_modules/@swim/site/dist/main/swim-site.js`.

### Browser

Browser applications can load `swim-web.js`—which bundles the **@swim/site**
library—along with its `swim-core.js` and `swim-ui.js` dependencies, directly
from the swimOS CDN.

```html
<!-- Development -->
<script src="https://cdn.swimos.org/js/latest/swim-core.js"></script>
<script src="https://cdn.swimos.org/js/latest/swim-ui.js"></script>
<script src="https://cdn.swimos.org/js/latest/swim-web.js"></script>

<!-- Production -->
<script src="https://cdn.swimos.org/js/latest/swim-core.min.js"></script>
<script src="https://cdn.swimos.org/js/latest/swim-ui.min.js"></script>
<script src="https://cdn.swimos.org/js/latest/swim-web.min.js"></script>
```

Alternatively, the standalone `swim-system.js` script may be loaded
from the swimOS CDN, which bundles **@swim/site** together with all other
[**@swim/system**](https://github.com/swimos/swim/tree/master/swim-system-js/@swim/system)
libraries.

```html
<!-- Development -->
<script src="https://cdn.swimos.org/js/latest/swim-system.js"></script>

<!-- Production -->
<script src="https://cdn.swimos.org/js/latest/swim-system.min.js"></script>
```

## Usage

### ES6/TypeScript

**@swim/site** can be imported as an ES6 module from TypeScript and other
ES6-compatible environments.

```typescript
import * as site from "@swim/site";
```

### CommonJS/Node.js

**@swim/site** can also be used as a CommonJS module in Node.js applications.

```javascript
var site = require("@swim/site");
```

### Browser

When loaded by a web browser, the `swim-web.js` script adds all
**@swim/site** library exports to the global `swim` namespace.
The `swim-web.js` script requires that `swim-core.js` and `swim-ui.js`
have already been loaded.

The `swim-system.js` script also adds all **@swim/site** library exports
to the global `swim` namespace, making it a drop-in replacement for
'swim-core.js', `swim-ui.js`, and `swim-web.js` when additional
**@swim/system** libraries are needed.
npm package: @swim/style
Description: Font, color, gradient, shadow and related types and parsers
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Style Library

The Swim Style library implements font, color, gradient, shadow and related
types and parsers.
npm package: @swim/swim
Description: Swim Frontend Stack
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Frontend Stack&ensp;[![license](https://img.shields.io/badge/license-Apache--2.0-32c5ff)](https://github.com/swimos/swim-js/blob/main/LICENSE)&ensp;[![npm package](https://img.shields.io/badge/npm-4.0.0--dev-32c5ff)](https://npmjs.com/package/@swim/swim)

<img src="https://docs.swimos.org/readme/swim-stack-sidebar.svg" align="right">

Swim is a full stack **streaming application platform** for building
stateful services, streaming APIs, and real-time UIs.

- **Streaming applications** push data through the full application stack,
  eliminating the need for polling.
- **Stateful services** remember what they're doing between operations,
  taking queries off the critical path.
- **Streaming APIs** publish differential state changes,
  streaming only what each client chooses to observe.
- **Real-time UIs** render live views of distributed application state
  that update with half-ping latency.

The **Swim frontend stack** provides everything app developers need to build
truly real-time user interfaces that run in any modern browser, including:

- A **foundation framework** for real-time applications that runs
  in Node.js and web browsers.
- A **streaming API client** for consuming multiplexed streaming APIs.
- A **UI engine** for efficiently rendering real-time user interfaces
  at high frame rates.
- A **UX toolkit** with reusable views and controllers tailor-made
  for real-time user experiences.
- Real-time **data visualizations**, including procedurally animated graphs,
  charts, and gauges.
- Real-time **map overlays** that display live geospatial visualizations
  on top of third-party base maps.
npm package: @swim/theme
Description: Semantic looks and feels for mood-aware UX components
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Theme Library

The Swim Theme library implements semantic looks and feels for mood-aware UI
components. A mood-aware UI component is a UI view that morphs its appearance
to reflect the status of the outer application.
npm package: @swim/ui
Description: User interface toolkit for pervasively real-time applications
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim UI Framework

The Swim UI framework implements a real-time user interface engine optimized
for streaming applications.
npm package: @swim/view
Description: Unified HTML, SVG, and Canvas view hierarchy, with integrated controller architecture, animated procedural styling, and constraint-based layouts
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim View Library

The Swim View library implements a unified HTML, SVG, and Canvas view
hierarchy, with procedurally animated styling, and constraint-based layouts.
npm package: @swim/vis
Description: Procedurally animated, interactive diagrams, including gauges, pie charts, and line, area, and bubble charts
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Vis Framework

The Swim Vis framework implements real-time data visualizations optimized for
streaming applications.
npm package: @swim/window
Description: Popovers, drawers, and other view containers
Author: Chris Sachs
Latest version: 4.0.0

# [![Swim](https://docs.swimos.org/readme/breach-marlin-blue-wide.svg)](https://www.swimos.org) Swim Window Library

The Swim Window library implements popovers, drawers, and other window-like
view containers.