open-index/open-npm huggingface dataset:
npm package: @loris-sandbox/litesvm-kit
Description: <div align="center">     <img src="https://raw.githubusercontent.com/litesvm/litesvm/master/logo.jpeg" width="50%" height="50%"> </div>
Latest version: 0.5.0

<div align="center">
    <img src="https://raw.githubusercontent.com/litesvm/litesvm/master/logo.jpeg" width="50%" height="50%">
</div>

---
# LiteSVM (NodeJS)

This is the NodeJS wrapper for [LiteSVM](https://github.com/LiteSVM/litesvm). It brings best-in-class Solana testing
to NodeJS, giving you a powerful, fast and ergonomic way to test Solana programs in TS/JS.

For a standard testing workflow, LiteSVM offers an experience superior to `solana-test-validator` (slow, unwieldy)
and `bankrun` (reasonably fast and powerful, but inherits a lot of warts from `solana-program-test`).

## Minimal example

This example just transfers lamports from Alice to Bob without loading
any programs of our own. It uses the [Node.js test runner](https://nodejs.org/api/test.html).

```ts
import { test } from "node:test";
import assert from "node:assert/strict";
import { LiteSVM } from "litesvm";
import {
	PublicKey,
	Transaction,
	SystemProgram,
	Keypair,
	LAMPORTS_PER_SOL,
} from "@solana/web3.js";

test("one transfer", () => {
	const svm = new LiteSVM();
	const payer = new Keypair();
	svm.airdrop(payer.publicKey, BigInt(LAMPORTS_PER_SOL));
	const receiver = PublicKey.unique();
	const blockhash = svm.latestBlockhash();
	const transferLamports = 1_000_000n;
	const ixs = [
		SystemProgram.transfer({
			fromPubkey: payer.publicKey,
			toPubkey: receiver,
			lamports: transferLamports,
		}),
	];
	const tx = new Transaction();
	tx.recentBlockhash = blockhash;
	tx.add(...ixs);
	tx.sign(payer);
	svm.sendTransaction(tx);
	const balanceAfter = svm.getBalance(receiver);
	assert.strictEqual(balanceAfter, transferLamports);
});
```
Note: by default the `LiteSVM` instance includes some core programs such as
the System Program and SPL Token.

## Installation

```
yarn add litesvm
```

## Contributing

Make sure you have Yarn and the Rust toolchain installed.

Then run `yarn` to install deps, run `yarn build` to build the binary and `yarn test` to run the tests.
npm package: @loris-sandbox/litesvm-kit-darwin-arm64
Description: This is the **aarch64-apple-darwin** binary for `@loris-sandbox/litesvm-kit`
Latest version: 0.5.0

# `@loris-sandbox/litesvm-kit-darwin-arm64`

This is the **aarch64-apple-darwin** binary for `@loris-sandbox/litesvm-kit`
npm package: @loris-sandbox/litesvm-kit-darwin-x64
Description: This is the **x86_64-apple-darwin** binary for `@loris-sandbox/litesvm-kit`
Latest version: 0.5.0

# `@loris-sandbox/litesvm-kit-darwin-x64`

This is the **x86_64-apple-darwin** binary for `@loris-sandbox/litesvm-kit`
npm package: @loris-sandbox/litesvm-kit-linux-arm64-gnu
Description: This is the **aarch64-unknown-linux-gnu** binary for `@loris-sandbox/litesvm-kit`
Latest version: 0.5.0

# `@loris-sandbox/litesvm-kit-linux-arm64-gnu`

This is the **aarch64-unknown-linux-gnu** binary for `@loris-sandbox/litesvm-kit`
npm package: @loris-sandbox/litesvm-kit-linux-arm64-musl
Description: This is the **aarch64-unknown-linux-musl** binary for `@loris-sandbox/litesvm-kit`
Latest version: 0.5.0

# `@loris-sandbox/litesvm-kit-linux-arm64-musl`

This is the **aarch64-unknown-linux-musl** binary for `@loris-sandbox/litesvm-kit`
npm package: @loris-sandbox/litesvm-kit-linux-x64-gnu
Description: This is the **x86_64-unknown-linux-gnu** binary for `@loris-sandbox/litesvm-kit`
Latest version: 0.5.0

# `@loris-sandbox/litesvm-kit-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `@loris-sandbox/litesvm-kit`
npm package: @loris-sandbox/litesvm-kit-linux-x64-musl
Description: This is the **x86_64-unknown-linux-musl** binary for `@loris-sandbox/litesvm-kit`
Latest version: 0.5.0

# `@loris-sandbox/litesvm-kit-linux-x64-musl`

This is the **x86_64-unknown-linux-musl** binary for `@loris-sandbox/litesvm-kit`
npm package: @loris-sandbox/spl-counter-test
Description: JavaScript client for the Counter program
Latest version: 0.0.8

# JavaScript client

A generated JavaScript library for the Counter program.

## Getting started

To build and test your JavaScript client from the root of the repository, you may use the following command.

```sh
pnpm clients:js:test
```

This will start a new local validator, if one is not already running, and run the tests for your JavaScript client.

## Available client scripts.

Alternatively, you can go into the client directory and run the tests directly.

```sh
# Build your programs and start the validator.
pnpm programs:build
pnpm validator:restart

# Go into the client directory and run the tests.
cd clients/js
pnpm install
pnpm build
pnpm test
```

You may also use the following scripts to lint and/or format your JavaScript client.

```sh
pnpm lint
pnpm lint:fix
pnpm format
pnpm format:fix
```
npm package: @lorislabapp/apple-device-specs
Description: TypeScript/JavaScript client for the Apple Device Specs API by LorisLabs
Author: LorisLabs
Latest version: 1.0.0

# @lorislab/apple-device-specs

TypeScript/JavaScript client for the [Apple Device Specs API](https://api.lorislab.fr/docs/) by LorisLabs.

Look up detailed specifications, feature badges, pricing history, and depreciation estimates for any Apple device.

## Install

```bash
npm install @lorislab/apple-device-specs
```

## Quick start

```typescript
import { AppleDeviceAPI } from "@lorislab/apple-device-specs";

// Initialize with your API key (omit for free tier)
const api = new AppleDeviceAPI("your-api-key");

// Get a specific device by hardware identifier
const { data: device } = await api.getDevice("iPhone16,1");
console.log(device.name);        // "iPhone 15 Pro"
console.log(device.chip);        // "A17 Pro"
console.log(device.features);    // ["USB-C", "MagSafe", "Face ID", "5G", ...]

// Search by name
const results = await api.search("iPhone 15");
console.log(results.count);      // number of matches
console.log(results.data);       // array of DeviceSpec

// Get current market value / depreciation estimate
const { data: value } = await api.getValue("iPhone16,1");
console.log(value.launchPrice);    // 999
console.log(value.estimatedValue); // current resale estimate

// Get storefront pricing
const { data: pricing } = await api.getPricing("iPhone16,1", {
  storefront: ["US", "GB", "FR"],
});
console.log(pricing.pricing["US"].current); // { "128GB": 999, "256GB": 1099, ... }

// List all Mac devices (paginated)
const page = await api.listDevices({ category: "Mac", page: 1, limit: 20 });
console.log(page.pagination.total); // total device count
console.log(page.data);             // array of DeviceSpec

// Database stats
const { data: stats } = await api.getStats();
console.log(stats.totalDevices);  // total devices in database
console.log(stats.lastUpdated);   // ISO date of last update
```

## API reference

| Method | Description |
|--------|-------------|
| `listDevices(options?)` | List all devices with optional pagination and category filter |
| `getDevice(identifier)` | Get full specs for a device by hardware ID (e.g. `iPhone16,1`) |
| `search(query)` | Search devices by name |
| `getFeatures(identifier)` | Get feature badges only (USB-C, Face ID, 5G, etc.) |
| `getValue(identifier)` | Get launch price and current depreciation estimate |
| `getPricing(identifier, options?)` | Get storefront pricing and history |
| `getStats()` | Get database statistics |

## Pricing tiers

| Tier | Price | Rate limit | Features |
|------|-------|------------|----------|
| Free | $0 | 100 req/day | Basic specs only |
| Pro | $9.99/mo | 10,000 req/day | Full specs, features, pricing, depreciation |
| Business | $49.99/mo | 100,000 req/day | Everything + bulk export + webhooks |

Get an API key at [api.lorislab.fr/docs/#pricing](https://api.lorislab.fr/docs/#pricing).

## Full documentation

[api.lorislab.fr/docs/](https://api.lorislab.fr/docs/)

## License

MIT — LorisLabs (<support@lorislab.fr>)