# @snapshot-labs/lock

> Web3 connector library for Snapshot's Vue app. It bundles concrete implementations for common wallets (injected, WalletConnect, Coinbase, Safe, Sequence, Argent X, Unicorn) plus a `Guest` connector and an EIP-6963 provider discovery helper used internally

Latest version **0.3.2** (published 2026-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @snapshot-labs/lock
pnpm add @snapshot-labs/lock
yarn add @snapshot-labs/lock
bun add @snapshot-labs/lock
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2026-05-14 |
| First published | 2021-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 10 |
| Unpacked size | 47.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 55 |
| Maintainers | chaituvr, bonustrack |

## Links

- npm: https://www.npmjs.com/package/@snapshot-labs/lock
- Repository: https://github.com/snapshot-labs/sx-monorepo
- Homepage: https://github.com/snapshot-labs/sx-monorepo#readme
- Issues: https://github.com/snapshot-labs/sx-monorepo/issues
- npm.io page: https://npm.io/package/@snapshot-labs/lock

## Dependencies (10)

- [events](https://npm.io/package/events.md) ^3.3.0
- [starknet](https://npm.io/package/starknet.md) 7.6.4
- [thirdweb](https://npm.io/package/thirdweb.md) ^5.88.6
- [0xsequence](https://npm.io/package/0xsequence.md) ^2.2.10
- [starknetkit](https://npm.io/package/starknetkit.md) ^1.1.9
- [@reown/appkit](https://npm.io/package/@reown/appkit.md) ^1.8.8
- [@coinbase/wallet-sdk](https://npm.io/package/@coinbase/wallet-sdk.md) ^4.3.0
- [@ethersproject/address](https://npm.io/package/@ethersproject/address.md) ^5.8.0
- [@safe-global/safe-apps-sdk](https://npm.io/package/@safe-global/safe-apps-sdk.md) ^9.1.0
- [@safe-global/safe-apps-provider](https://npm.io/package/@safe-global/safe-apps-provider.md) ^0.18.6

## Recent versions

- 0.3.2 (latest) — 2026-05-14
- 0.3.1 — 2026-05-07
- 0.2.11 — 2025-02-06
- 0.2.10 — 2024-12-01
- 0.2.9 — 2024-12-01
- 0.2.8 — 2024-10-07
- 0.2.7 — 2024-09-18
- 0.2.6 — 2024-08-01
- 0.2.5 — 2024-07-27
- 0.2.4 — 2024-04-13
- 0.2.3 — 2024-01-31
- 0.2.2 — 2023-12-15
- 0.2.1 — 2023-11-20
- 0.2.0 — 2023-08-08
- 0.1.1019 — 2023-06-28
- … 35 more at https://npm.io/package/@snapshot-labs/lock/versions

## README

# @snapshot-labs/lock

Web3 connector library for Snapshot's Vue app. It bundles concrete
implementations for common wallets (injected, WalletConnect, Coinbase,
Safe, Sequence, Argent X, Unicorn) plus a `Guest` connector and an
EIP-6963 provider discovery helper used internally by the Vue composable.

Heavy wallet SDKs are loaded on demand inside each connector's
`connect()` method, so consumers only pay the download cost for the
connector the user actually picks.

## Usage

### Vue

```ts
import { useLock, ConnectorDetail } from '@snapshot-labs/lock/vue';
import type { ConnectorType } from '@snapshot-labs/lock';

const CONNECTOR_DETAILS: Record<ConnectorType, ConnectorDetail> = {
  injected: {},
  walletconnect: { info: { name: 'WalletConnect' }, options: { projectId: '...' } }
  // ...
};

const { connectors } = useLock(CONNECTOR_DETAILS);
```

`useLock` handles EIP-6963 discovery of injected wallets and returns a
reactive list of instantiated connectors ready for login flows.

The package root currently exposes only the shared `Connector` and
`ConnectorType` types:

```ts
import type { Connector, ConnectorType } from '@snapshot-labs/lock';
```

---
_Source: https://npm.io/package/@snapshot-labs/lock · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
