# @turnkey/indexed-db-stamper

> IndexedDB-based stamper for @turnkey/http

Latest version **1.3.14** (published 2026-11-20) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @turnkey/indexed-db-stamper
pnpm add @turnkey/indexed-db-stamper
yarn add @turnkey/indexed-db-stamper
bun add @turnkey/indexed-db-stamper
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.3.14 |
| Published | 2026-11-20 |
| First published | 2025-05-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 2 |
| Unpacked size | 52.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 104 |
| Author | Turnkey |
| Maintainers | andrewtk, r-n-o, jack-kearney-tkhq |
| Keywords | Turnkey, http, stamper |

## Links

- npm: https://www.npmjs.com/package/@turnkey/indexed-db-stamper
- Repository: https://github.com/tkhq/sdk
- Issues: https://github.com/tkhq/sdk/issues
- npm.io page: https://npm.io/package/@turnkey/indexed-db-stamper

## Dependencies (2)

- [@turnkey/encoding](https://npm.io/package/@turnkey/encoding.md) 0.6.0
- [@turnkey/sdk-types](https://npm.io/package/@turnkey/sdk-types.md) 1.13.0

## Recent versions

- 1.3.14 (latest) — 2026-11-20
- 1.2.0-beta.6 (beta) — 2025-09-05
- 1.3.13 — 2026-11-02
- 1.3.12 — 2026-10-16
- 1.3.11 — 2026-09-22
- 1.3.10 — 2026-09-22
- 1.3.9 — 2026-09-15
- 1.3.8 — 2026-09-04
- 1.3.7 — 2026-08-27
- 1.3.6 — 2026-08-14
- 1.3.5 — 2026-08-12
- 1.3.4 — 2026-08-06
- 1.3.3 — 2026-08-06
- 1.3.2 — 2026-07-16
- 1.3.1 — 2026-06-02
- … 15 more at https://npm.io/package/@turnkey/indexed-db-stamper/versions

## README

# @turnkey/indexed-db-stamper

[![npm](https://img.shields.io/npm/v/@turnkey/indexed-db-stamper?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/indexed-db-stamper)

The `@turnkey/indexed-db-stamper` package enables secure request stamping using an unextractable P-256 keypair stored in the browser’s IndexedDB. It serves the same purpose as [`@turnkey/api-key-stamper`](../api-key-stamper/), allowing you to sign and approve requests to Turnkey’s API, but without exposing the private key. This is ideal for long-lived browser sessions in progressive web apps (PWAs), wallet extensions, or any context where the key must remain secure and persistent across reloads.

The IndexedDbStamper generates the private key using SubtleCrypto and stores it in a non-exportable format, ensuring that it cannot be extracted or exfiltrated by application code. The keypair is stored in IndexedDB so that it can be reused in subsequent sessions.

Usage:

The `IndexedDbStamper` class implements the `TStamper` interface used by the `TurnkeyClient` in the [`@turnkey/http`](../http/) module. It encapsulates the logic necessary to sign activity requests and generates the appropriate HTTP headers for authentication.

```ts
import { IndexedDbStamper } from "@turnkey/indexed-db-stamper";

// Initialize the stamper and generate or load the keypair
const stamper = new IndexedDbStamper();
await stamper.init();

// Once initialized, the stamper is ready to be passed into the TurnkeyClient.
const httpClient = new TurnkeyClient(
  { baseUrl: "https://api.turnkey.com" },
  stamper,
);
```

---
_Source: https://npm.io/package/@turnkey/indexed-db-stamper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
