open-index/open-npm huggingface dataset:
npm package: @onelabs/create-dapp
Description: A CLI for creating new Sui dApps
Author: Mysten Labs
Latest version: 0.3.57

# @onelabs/create-dapp

`@onelabs/create-dapp` is a CLI tool that helps you to create a new dApp project.

You can get started quickly by running the following command:

```bash
pnpm create @onelabs/dapp
```

This will prompt you through creating a new dApp project. It will ask you for the name/directory and
ask you to select from one of the provided templates.

## Templates

The following templates are available:

- `react-client-dapp`: A basic React dApp that fetches a list of objects owned by the connected
  wallet
- `react-e2e-counter`: An end to end Example with move code and UI for a simple counter app

The examples are based off the Vite TypeScript starter project, and pre-configure a few things for
you including:

- [React](https://react.dev/)
- [TypeScript](https://www.typescriptlang.org/)
- [Vite](https://vitejs.dev/)
- [Radix UI](https://www.radix-ui.com/)
- [ESLint](https://eslint.org/)
- [`@onelabs/dapp-kit`](https://sdk.mystenlabs.com/dapp-kit)

These templates are still new, and would love to get feedback and suggestions for improvements or
future templates. Please open an issue on GitHub if you have any feedback.
npm package: @onelabs/kiosk
Description: Sui Kiosk library
Author: Mysten Labs
Latest version: 0.11.4

# Kiosk SDK

This Kiosk SDK library provides different utilities to interact/create/manage a
[Kiosk](https://github.com/MystenLabs/sui/tree/main/kiosk).

[You can read the documentation and see examples by clicking here.](https://sdk.mystenlabs.com/kiosk)

[If you are migrating from `0.6.x`, you can follow these instructions](https://sdk.mystenlabs.com/kiosk/from-v1)
npm package: @onelabs/mvr-static
Description: The static generation tool for Move Registry (mvr)
Author: Mysten Labs
Latest version: 0.1.3

# mvr-static

The mvr-static tool is a typescript CLI tool to generate a static file for Move Registry (mvr)
resolution. This can be used to cache all MVR names for performance & security reasons, and used in
the `NamedPackagesPlugin` (exported from `@onelabs/sui`) in your project.

## Usage

### Generate a static file for MVR resolution

You can generate your static file by running the following command:

```bash
pnpm dlx @onelabs/mvr-static
```

Available options:

- `--directory <directory>`: The directory to run the command in (defaults to `.`)
- `--output <file-name>`: The output's file name (defaults to `mvr.ts`)
- `--depth <depth>`: The depth of recursive search for MVR names (defaults to `10`)
- `--url-mainnet <url>`: The URL to the mainnet MVR (defaults to
  `https://mainnet.mvr.mystenlabs.com`)
- `--url-testnet <url>`: The URL to the testnet MVR (defaults to
  `https://testnet.mvr.mystenlabs.com`)
- `--include <dir_patterns>`: The directory patterns to include in the search (defaults to
  `**/*.{js,ts,jsx,tsx,mjs,cjs}`)
- `--exclude <dir_patterns>`: The directory patterns to exclude in the search (defaults to
  `'node_modules/**', '**/.*'`)
- `--force`: Force overwrite the existing MVR file (useful in CI) (defaults to `false`)

### Use the static file in your project

Once you have your static file, you can use it in your project by importing it and passing it to the
`NamedPackagesPlugin` in your project.

```ts
import { NamedPackagesPlugin } from '@onelabs/sui/src/transactions';

import { getMvrCache } from './mvr.ts';

// create a cache for your network.
const cache = getMvrCache('mainnet');

const plugin = new NamedPackagesPlugin({
	// ...,
	overrides: cache,
});
```
npm package: @onelabs/suins
Description: SuiNS SDK
Author: Mysten Labs
Latest version: 0.7.8

# SuiNS SDK

> Note 1: You do not need to use the SDK for name resolution (name -> address, address -> name).
> That is already covered by JSONRPC & GraphQL.

SuiNS SDK is a convenient wrapper for querying more detailed information and building transactions
towards the Name Service.

You can find our docs [by clicking here](https://docs.suins.io).
npm package: @onelabs/suins-toolkit
Description: SuiNS TypeScript SDK
Author: Mysten Labs
Latest version: 0.5.30

# SuiNS TypeScript SDK

This is a lightweight SDK (1kB minified bundle size), providing utility classes and functions for
applications to interact with on-chain `.sui` names registered from
[Sui Name Service (suins.io)](https://suins.io).

## Getting started

The SDK is published to [npm registry](https://www.npmjs.com/package/@onelabs/suins-toolkit). To use
it in your project:

```bash
$ npm install @onelabs/suins-toolkit
```

You can also use yarn or pnpm.

## Examples

Create an instance of SuinsClient:

```typescript
import { SuiClient } from '@onelabs/sui/client';
import { SuinsClient } from '@onelabs/suins-toolkit';

const client = new SuiClient();
export const suinsClient = new SuinsClient(client);
```

Choose network type:

```typescript
export const suinsClient = new SuinsClient(client, {
	networkType: 'testnet',
});
```

> **Note:** To ensure best performance, please make sure to create only one instance of the
> SuinsClient class in your application. Then, import the created `suinsClient` instance to use its
> functions.

Fetch an address linked to a name:

```typescript
const address = await suinsClient.getAddress('suins.sui');
```

Fetch the default name of an address:

```typescript
const defaultName = await suinsClient.getName(
	'0xc2f08b6490b87610629673e76bab7e821fe8589c7ea6e752ea5dac2a4d371b41',
);
```

Fetch a name object:

```typescript
const nameObject = await suinsClient.getNameObject('suins.sui');
```

Fetch a name object including the owner:

```typescript
const nameObject = await suinsClient.getNameObject('suins.sui', {
	showOwner: true,
});
```

Fetch a name object including the Avatar the owner has set (it automatically includes owner too):

```typescript
const nameObject = await suinsClient.getNameObject('suins.sui', {
	showOwner: true, // this can be skipped as showAvatar includes it by default
	showAvatar: true,
});
```

## License

[Apache-2.0](https://github.com/SuiNSdapp/toolkit/blob/main/LICENSE)
npm package: @onelabs/wallet-standard
Description: A suite of standard utilities for implementing wallets based on the Wallet Standard.
Author: Mysten Labs
Latest version: 0.14.2

# `@onelabs/wallet-standard`

A suite of standard utilities for implementing wallets and libraries based on the
[Wallet Standard](https://github.com/wallet-standard/wallet-standard/).

**Documentation:** https://docs.sui.io/standards/wallet-standard
npm package: @onelabs/zklogin
Description: Deprecated: use @onelabs/sui/zklogin instead
Author: Mysten Labs
Latest version: 0.8.0

# `@onelabs/zklogin` (Deprecated, use @onelabs/sui/zklogin instead)

> **⚠️ This package is experimental and will change rapidly as it is being developed. Do not
> consider these APIs to be stable. If you have any feedback,
> [open an issue](https://github.com/MystenLabs/sui/issues/new/choose) or message us on
> [Discord](https://discord.gg/Sui).**