# privy-sdk

> PrivyID Software Development Kit

Latest version **2.0.5** (published 2026-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install privy-sdk
pnpm add privy-sdk
yarn add privy-sdk
bun add privy-sdk
```

## Health

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

Positive: has types; no vulnerabilities; recently updated; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2026-07-14 |
| First published | 2018-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 190.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ade Novid |
| Maintainers | adenvt, privy, dipadipprv |

## Links

- npm: https://www.npmjs.com/package/privy-sdk
- npm.io page: https://npm.io/package/privy-sdk

## Dependencies (4)

- [jquery](https://npm.io/package/jquery.md) ^3.4.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [bootstrap](https://npm.io/package/bootstrap.md) ^4.3.1
- [@types/node](https://npm.io/package/@types/node.md) ^13.13.5

## Recent versions

- 2.0.5 (latest) — 2026-07-14
- 2.0.0-alpha.1 (next) — 2019-05-08
- 2.0.4 — 2024-10-11
- 2.0.3 — 2021-09-10
- 2.0.2 — 2020-05-08
- 2.0.0 — 2019-07-10
- 2.0.0-alpha.0 — 2019-05-08
- 2.0.0-alpha — 2019-05-07
- 1.1.3 — 2019-04-18
- 1.1.2 — 2019-04-18
- 1.1.1 — 2018-09-27
- 1.1.0 — 2018-07-10
- 1.0.0 — 2018-06-25

## README

# PRIVY SDK
> Privy ID Software Development Kit

[![npm version](https://badge.fury.io/js/privy-sdk.svg)](https://badge.fury.io/js/privy-sdk)

## Login with PrivyID Button

### Step 1: Include Privy SDK

```html
<script src="http://unpkg.com/privy-sdk"></script>
```

### Step 2: Init SDK and place your `Merchant Key`
```js
Privy.init({
  merchantKey: '< Your Merhant Key>',
})
```

### Step 3: Place this code in wherever you want login button appear in your page

```html
<div class="privy-login-btn" data-width="inline" data-size="medium"></div>
```

## Options

### data-size
* small
* medium
* large

### data-width
* inline
* full

### data-color
* red
* white

### data-style
* solid
* outline

### data-lang
* en
* id

## Custom Button
You can create custome login button

```html
<button onclick="loginWithPrivy">
  Login with Privy
</button>
...
...
<script>
  Privy.init({
    merchantKey: '< Your Merhant Key>',
  })

  function loginWithPrivy () {
    Privy.login()
  }
</script>
```

## Development Mode
Add `dev: true` to change endpoint to development
```js
Privy.init({
  merchantKey: '< Your Merhant Key>',
  dev: true,
})
```

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

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